[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-4120) pages-2.1.xsd doesn't allow parameterized from-action

Norman Richards (JIRA) jira-events at lists.jboss.org
Fri Apr 17 18:41:34 EDT 2009


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

Norman Richards closed JBSEAM-4120.
-----------------------------------

    Resolution: Done


Fixed.  Thanks.

> pages-2.1.xsd doesn't allow parameterized from-action
> -----------------------------------------------------
>
>                 Key: JBSEAM-4120
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4120
>             Project: Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.1.GA
>         Environment: OSX 10.5, Java 1.5, JBoss 4.2.3, Eclipse 3.4
>            Reporter: Bob Shanahan
>            Assignee: Norman Richards
>            Priority: Minor
>             Fix For: 2.1.2.CR2
>
>
> Prior to upgrading from Seam 2.0.x to 2.1.x, it was possible to define (without schema validation error) a page navigation from-action using page parameter variables. In fact, it was the only way get parameterized page from-actions to work.
> Given the following xhtml:
> <ui:include src="exportsTitleBar.xhtml">
>    <ui:param name="title" value="#{messages.acctSummaryTitle}" />
>    <ui:param name="exportActionBean" value="#{acctManager}" />
>    <ui:param name="action" value="exportAcctSummary" />
> </ui:include>
> page navigation in pages.xml is defined as follows:
> <page view-id="/view/acctSummary.xhtml">
>    <navigation from-action="#{exportActionBean[action]}">
>       <rule if-outcome="pdf">
>          <redirect view-id="/view/pdf/acctSummary.xhtml"/>
>       </rule>
>       <rule if-outcome="xls">
>          <redirect view-id="/view/xls/acctSummary.xhtml"/>
>       </rule>
>    </navigation>
> </page>
> Using the actual bean and action, as in <navigation from-action="#{acctManager.exportAcctSummary]}">, does not work. 
> While <navigation from-action="#{exportActionBean[action]}"> functions correctly with Seam 2.1.x, the pages-2.1.xsd produces a schema validation error due to restrictions of the from-action-expression... and ultimately the pages:method-expression, which is defined as follows:
> <xs:simpleType name="method-expression">
>    <xs:restriction base="xs:token">
>       <xs:pattern value="#\{.+\..+\}"/>
>    </xs:restriction>
> </xs:simpleType>
> Either the page navigation from-action should be expressible via the actual bean and action or the method-expression should allow specification of a parameterized bean and action.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list