[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3741) It is now invalid to write an an EL expression inside view-id!
Francisco Jose Peredo Noguez (JIRA)
jira-events at lists.jboss.org
Mon Dec 1 13:07:36 EST 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12440623#action_12440623 ]
Francisco Jose Peredo Noguez commented on JBSEAM-3741:
------------------------------------------------------
Now when I put xsi:schemaLocation="http://jboss.com/products/seam/pages http://anonsvn.jboss.org/repos/seam/trunk/src/main/org/jboss/seam/pages-2.1.xsd" as a header in my xml everything works fine. Thanks.
Just one question... Is there a way to tell Eclipse to validate this xml using a local pages-2.1.xsd file?
> It is now invalid to write an an EL expression inside view-id!
> --------------------------------------------------------------
>
> Key: JBSEAM-3741
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3741
> Project: Seam
> Issue Type: Bug
> Affects Versions: 2.1.0.SP1
> Reporter: Francisco Jose Peredo Noguez
> Assignee: Norman Richards
> Fix For: 2.1.1.CR2
>
>
> I am hitting this issue JBIDE-3248, at first I thougth it was an incompatiblity problem between JBoss Tools 2.1.2, and Seam 2.1.x, but now I think it is an error in http://jboss.com/products/seam/pages-2.1.xsd.
> In pages-2.1.xsd we have this code (that didnt exist in 2.0):
> <xs:simpleType name="view-id">
> <xs:restriction base="xs:string">
> <xs:pattern value="(/.*)|\*"/>
> </xs:restriction>
> </xs:simpleType>
> That is limiting view-id by preventing it from using EL expressions inside it, but EL expression do work inside view-id:
> <navigation from-action="#{someEntityHome.persist}">
> <rule if-outcome="persisted" if="#{not empty someEntityFrom}">
> <end-conversation/>
> <redirect view-id="{#someEntityFrom}"/>
> </rule>
> <rule if-outcome="persisted" if="#{empty someEntityFrom}">
> <end-conversation/>
> <redirect view-id="/Crud/SomeEntityList.xhtml"/>
> </rule>
> </navigation>
> The line <redirect view-id="{#someEntityFrom}"/> is being reported as an error, but it is perfectly fine. I think the <xs:pattern value="(/.*)|\*"/> specified for view-id in pages-2.1.xsd is an error.
--
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