webtier@glassfish.java.net

jsf2 labels disappear when validation fails

From: <webtier_at_javadesktop.org>
Date: Tue, 09 Feb 2010 00:48:09 PST

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