Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-421

<h:message> errorClass attribute does nothing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.9m9
    • 1.1.0
    • General
    • None
    • Jboss 4.0.2, Linux

    Description

      When an error message is displayed after a conversion error, the <h:message> tag isn't rendered in the appropriate css class, as specified by the errorClass attribute.

      For example:

      <h:outputLabel id="datumLabel" for="datumInput">
      <h:outputText value="#

      {bundle.DatumLabel}

      "/>
      </h:outputLabel>
      <h:panelGrid columns="1" cellpadding="0" cellspacing="0">
      <h:inputText id="datumInput"
      size="10"
      required="true"
      value="#

      {converters.datum}

      "
      >
      <f:convertDateTime pattern="dd/MM/yyyy" />
      </h:inputText>
      <h:message id="datumMessage" for="datumInput" errorClass="error"
      fatalClass="error" infoClass="message"
      warnClass="message"/>
      </h:panelGrid>

      When an invalid date is entered here, the resulting HTML for the message looks like this:

      <span id="body:_id4:datumMessage">ongeldige datum</span>

      No trace of 'class="error"'

      I have also tried the <x:message> tag, with the same result

      Attachments

        Activity

          People

            mmarinschek Martin Marinschek
            jlust Jurgen Lust
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: