[seam-issues] [JBoss JIRA] Commented: (SEAMFACES-93) UIInputContainer loses component state after process validation failure

Brian Leathem (JIRA) jira-events at lists.jboss.org
Wed Jun 1 13:26:01 EDT 2011


    [ https://issues.jboss.org/browse/SEAMFACES-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605856#comment-12605856 ] 

Brian Leathem commented on SEAMFACES-93:
----------------------------------------

Let's resolve this in the short term by modifying the inputContainer to use the facet if it's present, otherwise use the direct children.  If no facet is present, and the mojarra version running is known to be problematic, then log a message.

This way we have an immediate solution, and don't have to support any redundant components in the long term.

As an example, both these would be valid uses of the components, and achieve the same result:
{code}
<sc:inputContainer label="Name" required="true">
    <f:facet name="inputContainerFacet">
        <h:inputText id="name" required="true" size="50" maxlength="50" value="#{testBean.name}" label="Name"/>
    </f:facet> 
</sc:inputContainer>
{code}

and:

{code}
<sc:inputContainer label="Name" required="true">
    <h:inputText id="name" required="true" size="50" maxlength="50" value="#{testBean.name}" label="Name"/>
</sc:inputContainer>
{code}

> UIInputContainer loses component state after process validation failure
> -----------------------------------------------------------------------
>
>                 Key: SEAMFACES-93
>                 URL: https://issues.jboss.org/browse/SEAMFACES-93
>             Project: Seam Faces
>          Issue Type: Bug
>          Components: UI Components
>    Affects Versions: 3.0.0.CR1
>         Environment: JBoss AS6 Final
>            Reporter: Andrew Wheeler
>            Assignee: José Freitas
>             Fix For: 3.0.2
>
>         Attachments: input.xhtml, test.xhtml, TestBean.java
>
>
> When posting a form using a composite of type org.jboss.seam.faces.InputContainer and the process validation fails (required field) then the form values are not restored. Instead the fields are rendered with blank values.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the seam-issues mailing list