]
Norman Richards updated JBSEAM-3697:
------------------------------------
Fix Version/s: 2.1.2.CR1
Assignee: Norman Richards
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
Assignee: Norman Richards
Fix For: 2.1.2.CR1
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: