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