[seam-issues] [JBoss JIRA] (JBSEAM-5002) Components included with ui:include src="#{pageScopedViewId} broken

Marek Novotny (JIRA) jira-events at lists.jboss.org
Mon Dec 2 06:49:06 EST 2013


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

Marek Novotny resolved JBSEAM-5002.
-----------------------------------

    Resolution: Done


Works with JSF 2.1.19, upgrade it in JBoss AS 7.1.1.Final or download EAP 6.1.0 free for development purposes - http://www.jboss.org/products/eap 
                
> Components included with ui:include src="#{pageScopedViewId} broken
> -------------------------------------------------------------------
>
>                 Key: JBSEAM-5002
>                 URL: https://issues.jboss.org/browse/JBSEAM-5002
>             Project: Seam 2
>          Issue Type: Bug
>          Components: JSF Integration
>    Affects Versions: 2.3.0.BETA2, 2.3.0.Final
>         Environment: JBoss AS 7.1.2, Seam 2.3.0.CR1-SNAPSHOT (r14986)
>            Reporter: Marek Schmidt
>            Assignee: Marek Novotny
>             Fix For: 2.3.2.CR1
>
>         Attachments: JBSEAM-5002.ear, JBSEAM-5002.tar.gz
>
>
> The following scenario that used to work in AS5/Seam2.2 doesn't work anymore in AS7/Seam2.3 for page-scoped and conversation-scoped "viewId" components:
> index.xhtml:
> {code}
> <h:form>
>         <h:commandButton action="#{viewId.component1}" value="Component 1" />
>         <h:commandButton action="#{viewId.component2}" value="Component 2" />
> </h:form>
>    
> <ui:include src="#{viewId.viewId}"/>
> {code}
> {code}
> @Scope(ScopeType.PAGE)
> @Name("viewId")
> public class ViewIdComponent implements Serializable
> {
>    private String viewId = "/component1.xhtml";
>    
>    public void setViewId(String viewId) {
>       this.viewId = viewId;
>    }
>    
>    public String getViewId() {
>       return viewId;
>    }
>    
>    public void component1() {
>       setViewId("/component1.xhtml");
>    }
>    
>    public void component2() {
>       setViewId("/component2.xhtml");
>    }
> }
> {code}
> (compoent1 and 2 are redacted, contain a simple form)
> Only the first component works properly, actions in "component2" doesn't seem to be called after switching to "Component 2".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list