Error in Xml definition in gatein_objects_1_0 / visibility options do not include the
default : VISIBLE value
-------------------------------------------------------------------------------------------------------------
Key: GTNPORTAL-1648
URL:
https://jira.jboss.org/browse/GTNPORTAL-1648
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Common integration
Affects Versions: 3.1.0-GA
Environment: GateIn 3.1.0-GA, jboss 5.1.0-GA, linux, eclipse
Reporter: Antoine Herzog
The file :
http://www.gatein.org/xml/ns/gatein_objects_1_0 is used for definition of the
xml allowed in files such as navigation.xml and pages.xml.
There is an error in line 69 :
The element named "visibility" is described with the default value : VISIBLE
but this value is not in the options given for the optionType for visibility.
Only "DISPLAYED", "HIDDEN", "TEMPORAL", "SYSTEM"
are allowed.
see in this file :
<xs:element name="visibility" type="visibility"
default="VISIBLE" minOccurs="0" maxOccurs="1"/>
and
<xs:simpleType name="visibility">
−
<xs:restriction base="xs:string">
<xs:enumeration value="DISPLAYED"/>
<xs:enumeration value="HIDDEN"/>
<xs:enumeration value="TEMPORAL"/>
<xs:enumeration value="SYSTEM"/>
</xs:restriction>
</xs:simpleType>
Adding the VISIBLE value is necessary.
The problem can be seen using eclipse.
An error is triggered (and prevents from compiling the whole eclipse project).
The error detail is : "e-props-correct.2: Invalid value constraint value
'VISIBLE' in element 'visibility'
Location : line 69.
Workaround : download the file, modify it, and use this file url in the xsi:schemaLocation
etc... in your pages.xml files and navigation.xml files. Not nice but should work (I have
not tried it yet).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira