Uploaded image for project: 'XWork'
  1. XWork
  2. XW-915

Add support for static parameters in package configuration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0-beta1, 1.0, 1.0.1
    • 1.2
    • Configuration
    • None

    Description

      A simple example would be expand/collapse navigation menu according to current
      context (web-context): every action in this package belongs to the menu
      navigation section offerSection, so this menu section should expanded,
      presenting all suitable offer related submenu items:

      Clients
      Companies
      Products
      Offers
      Create
      Delete
      List
      ...
      Accounting
      Settings

      The menu would be realized via sitemesh decorator, evaluating the menuSection
      parameter from stack and expanding corresponding submenu.

      The third line of the following package def is the one I'd like to have
      realized:

      <package name="offer" extends="default" namespace="/order/offer">
      <!-- THE FOLLOWING ONE... -->
      <param name="menuSection">offerSection</param>

      <action name="list" class="de.aixcept.foo.action.order.ListOffersAction">
      <result name="success" type="dispatcher">
      <param name="location">/WEB-INF/jsp/order/offer/list.jsp</param>
      </result>
      <interceptor-ref name="defaultStack"/>
      </action>
      <action name="edit" class="de.aixcept.foo.action.order.EditOfferAction">
      <param name="idName">productOfferId</param>
      <result name="success" type="dispatcher">
      <param name="location">/WEB-INF/jsp/order/offer/edit.jsp</param>
      </result>
      <interceptor-ref name="defaultStack"/>
      </action>
      </package>

      Attachments

        Activity

          People

            Unassigned Unassigned
            rgielen René Gielen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: