webtier@glassfish.java.net

Re: [webtier] jsf2 labels disappear when validation fails

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Tue, 09 Feb 2010 08:10:36 -0800

What version/implementation of JSF 2.0 are you using?

On 2/9/10 12:48 AM, webtier_at_javadesktop.org wrote:
> Hi,
>
> Whenever validations fails for a field, all labels disappear. As well, the outputText on line 3 is not rendered. I could even put some random value for the value property, it seems it isn't even interpreted. I have this problem for my whole project.
>
> <h:form id="editForm">
> <h:messages errorStyle="color: red" />
> <h:outputText value="#{loginController.username}" />
> <h:panelGrid columns="2">
> <h:outputLabel id="addressLabel" value="#{bundle.ListClient_adresse}" for="address" title="test"/>
> <h:inputText id="address" title="Address" validatorMessage="Address is required!" label="address">
> <f:validateRequired />
> </h:inputText>
> </h:panelGrid>
> <h:commandButton value="tester" />
> </h:form>
>
> Is this normal? What did I miss?
> [Message sent by forum member 'ymajoros' (yannick.majoros_at_gmail.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=385599
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>