[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3697) pages-2.1.xsd too restrictive on view-id (EL works but not allowed)

Alexander Schwartz (JIRA) jira-events at lists.jboss.org
Thu Nov 13 16:05:36 EST 2008


pages-2.1.xsd too restrictive on view-id (EL works but not allowed)
-------------------------------------------------------------------

                 Key: JBSEAM-3697
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3697
             Project: Seam
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.1.0.SP1
         Environment: JBoss Tools with Seam Tools Feature 2.1.2.GA on Eclipse 3.4 referencing and XSD via URL in XML
            Reporter: Alexander Schwartz


When using the XSD to validate pages.xml like this: 

<pages xmlns="http://jboss.com/products/seam/pages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd"
	login-view-id="/...">
</pages>

The following is marked as error:

	<exception class="java.lang.Exception" log="false">
		<redirect view-id="#{exceptionHandler.getViewId('/sportal/error.jspx')}">
                     ...
		</redirect>
	</exception>

The XSD doesn't allow for EL-Expressions in view-ids - although they work quite well. 

Here is the part from the XSD (this is form the version I downloaded from http://jboss.com/products/seam/pages-2.1.xsd)

    <xs:simpleType name="view-id">
        <xs:restriction base="xs:string">
            <xs:pattern value="(/.*)|\*"/>
        </xs:restriction>
    </xs:simpleType>

It should allow for ELs as well, like this:

            <xs:pattern value="(/.*)|#\{.*\}|\*"/>

Alexander.

-- 
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