Tiago Peruzzo created JBSEAM-5020:
-------------------------------------

             Summary: Binding component does not restore conversation
                 Key: JBSEAM-5020
                 URL: https://issues.jboss.org/browse/JBSEAM-5020
             Project: Seam 2
          Issue Type: Bug
    Affects Versions: 2.3.0.BETA2
         Environment: 2.3.0.BETA2 or 2.3.0.CR1-SNAPSHOT
            Reporter: Tiago Peruzzo


Here is a simple scenario that demonstrates that when a binding is done in some 
component of view the conversation  is no longer restored, if removed binding 
that conversation is restored with success.


{code:xml} 
<h:form>
        <h:outputText value="ConversationId: #{conversation.id}"/>
        <br/>
        <h:inputText value="#{myComponent.value}" 
binding="#{myBackingBean.input}"/>
        <br/>           
        <h:commandButton action="test" value="Submit" />
</h:form>
{code}


{code:title=MyComponent.java}
@Scope(ScopeType.CONVERSATION)
@Name("myComponent")
public class MyComponent implements Serializable {
  
        private static final long serialVersionUID = 1L;
        
        public String value;
        
        @Create
        @Begin()
        public void begin(){
                
        }

        public String getValue() {
                return value;
        }
        
        public void setValue(String value) {
                this.value = value;
        }
        
}
{code}

{code:title=MyBackingBean.java}
@Scope(ScopeType.EVENT)
@Name("myBackingBean")
public class MyBackingBean implements Serializable {
        
        private UIInput input;

        public UIInput getInput() {
                return input;
        }
        
        public void setInput(UIInput input) {
                this.input = input;
        }       
}
{code}

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

        
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to