[seam-issues] [JBoss JIRA] (JBSEAM-5020) Binding component does not restore conversation

Tiago Peruzzo (JIRA) jira-events at lists.jboss.org
Thu Aug 23 08:48:16 EDT 2012


     [ https://issues.jboss.org/browse/JBSEAM-5020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tiago Peruzzo updated JBSEAM-5020:
----------------------------------

    Attachment: Contexts.java

    
> 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
>             Fix For: 2.3.1.CR1
>
>         Attachments: Contexts.java
>
>
> 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

        


More information about the seam-issues mailing list