You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by ma...@procon.co.at on 2008/03/12 11:04:04 UTC

h:message doesnt display requiredMessage

Hi!

 

<h:form id="fPlanning" enctype="UTF-8">

            <h:panelGrid id="planningPG1" columns="2">

                  <h:panelGrid id="planningPG2" columns="2"

                        styleClass="planPanelGridTransportName">

                        <h:outputText id="planTransportName"

                             value="#{labels.planTransportName}"
styleClass="outputText" />

                        <h:inputText id="planInpTransportName"

                             value="#{planningContrl.transportName}"
size="100" maxlength="100"

                             styleClass="inputTextMandatory" required="true"

 
requiredMessage="#{labels.planTranportNameRequired}">

                        </h:inputText>

                  </h:panelGrid>

                  <h:panelGroup id="errorPG1"
styleClass="errorMsgTransportNameGrid">

                        <h:message for="planInpTransportName"
styleClass="errorMsg" />

                  </h:panelGroup>

            </h:panelGrid>

</h:form

.

 

 

I get following message :

subViewPlanning:fPlanning:planInpTransportName: Validierungsfehler: Eingabe
erforderlich.

 

Instead of:

Pflichtfeld Transport Name nicht versorgt

 

Bundles:

planTranportNameRequired= Pflichtfeld Transport Name nicht versorgt

 

 

regards

markus