You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Pavel Arnošt <pa...@loutka.cz> on 2012/06/29 23:57:21 UTC
Message order in h:messages does not match component order
Hi,
with template:
<h:form>
<h:messages />
<h:inputText required="true" label="1" />
<h:inputText required="true" label="2" />
<h:inputText required="true" label="3" />
<h:commandButton value="Submit" />
</h:form>
messages in h:messages does not match order of components, h:messages
will show:
2: Validation error
3: Validation error
1: Validation error
It looks like that problem occurs where h:messages is wrapped in
another component, this works:
<h:messages />
<h:form>
<h:inputText required="true" label="1" />
<h:inputText required="true" label="2" />
<h:inputText required="true" label="3" />
<h:commandButton value="Submit" />
</h:form>
but this doesn't:
<h:panelGroup>
<h:messages />
<h:form>
<h:inputText required="true" label="1" />
<h:inputText required="true" label="2" />
<h:inputText required="true" label="3" />
<h:commandButton value="Submit" />
</h:form>
</h:panelGroup>
With Mojarra h:messages or PrimeFaces p:messages message order does
match component order. Should I file this as bug?
Regards,
Pavel