Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4467

Pages.XML fails to validate Correctly with options on begin/end conversation

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0.GA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I'm trying to get my pages.xml to validate and I'm running into two validation issues that I can't get past. These appear to be defined in the xsd http://www.jboss.com/products/seam/pages-2.2.xsd however they don't allow attributes to be defined such as root=true

      <page view-id="/admin/org_add.xhtml">
      <description>Add Organization</description>
      <navigation from-action="#

      {organizationUtil.addOrg()}

      ">
      <rule if-outcome="true">
      <redirect view-id="/admin/org_list.xhtml" />
      <end-conversation before-redirect="true"/>
      </rule>
      </navigation>
      </page>
      Errors with cvc-complex-type.2.4.d: Invalid content was found starting with element 'end-conversation'. No child element is expected at this point.

      <page view-id="/admin/search/search.xhtml">
      <description>Search Results</description>
      <action execute="#

      {search.doSearch}

      ">
      <begin-conversation/>
      </action>
      </page>
      Error: cvc-complex-type.2.1: Element 'action' must have no character or element information item [children], because the type's content type is empty.

      To reproduce add these to your pages.xml and validate the file in eclipse.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                clerum Cody Lerum
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: