Uploaded image for project: 'GateIn Portal'
  1. GateIn Portal
  2. GTNPORTAL-1648

Error in Xml definition in gatein_objects_1_0 / visibility options do not include the default : VISIBLE value

    Details

    • Steps to Reproduce:
      Hide

      when using a copy of pages.xml or navigation.xml (from the sample-portal sources), eclipse trigger an error on those files.

      Show
      when using a copy of pages.xml or navigation.xml (from the sample-portal sources), eclipse trigger an error on those files.

      Description

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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  nscavell Nick Scavelli
                  Reporter:
                  antoine_h Antoine Herzog
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: