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> On Thursday 24 July 2003 14:32, Jason Carreira wrote: > I don't understand... Can you provide an example of how the xml would > look and what it would do? > > > -----Original Message----- > > From: Rene Gielen [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 24, 2003 6:53 AM > > To: Opensymphony-Webwork ([EMAIL PROTECTED]) > > Subject: [OS-webwork] XWork: Static parameters for packages > > > > > > Hi, > > > > I suggest to extend xwork config to support static parameters > > for packages, so > > that many actions could be configured with same static parameters... > > > > Someone sharing this need? > > > > Would volunteer to implement, if I get a hint where to start... > > ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork