[ 
https://issues.apache.org/jira/browse/MYFACES-3579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leonardo Uribe resolved MYFACES-3579.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.9
                   2.0.15
         Assignee: Leonardo Uribe
    
> Inconsistent message order in h:messages
> ----------------------------------------
>
>                 Key: MYFACES-3579
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3579
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.8
>            Reporter: Pavel Arnošt
>            Assignee: Leonardo Uribe
>            Priority: Minor
>             Fix For: 2.0.15, 2.1.9
>
>
> 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 doesn't match order of components, h:messages will 
> show:
> 2: Validation error
> 3: Validation error
> 1: Validation error
> It looks like that problem occurs when h:messages element is wrapped in 
> another component, because 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 order matches component 
> order. 
> Regards,
> Pavel

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to