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

Allow actions to have parameters in pages.xml

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.0.CR1
    • Fix Version/s: None
    • Component/s: Framework
    • Labels:
      None
    • Environment:

      JBoss-4.2.1, Seam 2.0.0 Daily Build, JDK 6,

      Description

      For a well-rounded navigation system for seam, we need to be able to set parameters in the action tags for the page in the pages.xml file. See in the below example where I have <Unable to render embedded object: File (--Man o' man, I would love to do this) not found.--> comments. Currently we are unable to set these parameters. This would be tremendous asset to the 2.0.0 release and make the framework very flexible and would promote code reuse. This would have nothing to do creating RESTful pages, this is just a way to be able to better initialize components before page rendering.

      <page view-id="/quote/fencequote.xhtml">
      <action execute="#

      {searchAllAvailableFencesBean.search}

      " >
      <param name="type" value="fence"/> <Unable to render embedded object: File (--Man o' man, I would love to do this) not found.-->
      <param name="subtype" value="standard"/> <Unable to render embedded object: File (--Man o' man, I would love to do this) not found.-->
      </action>
      <action execute="#

      {searchAllColorsBean.search}

      "/>
      <begin-conversation join="true"/>
      <navigation from-action="#

      {fenceQuoteManagerBean.save}

      ">
      <redirect view-id="/quote/fencequotethanks.xhtml"/>
      <end-conversation/>
      </navigation>
      </page>

      P.S. This would also have to entail modification of the xsd file.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dhinojosa Daniel Hinojosa
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: