I like the statis method idea, but while i was waiting i implemented a interceptor and tell it what lists to populate looks like this

<action name="userEdit" class="action.user.UserLoad">
<result name="success" type="dispatcher">userEditForm.jsp</result>
<interceptor-ref name="myDefaultStack"/>
<interceptor-ref name="genericListProvider">
<param name="lists">musicTypeList,ageLimitList,eventTypeList</param>
</interceptor-ref>
</action>


works fine but i think ill just use static methods..

Patrick Lightbody wrote:
If you're trying to display lists of data, I don't think action
_chaining_ is the best choice. The possible choices are:

1) provide a static method that returns the value, and then use the
expression "@[EMAIL PROTECTED]()" in your ww:select tag

OR

2) use the <ww:action/> or <ww:bean/> tags, and then refer to the data
in there. For example:

<ww:action name="'DateGen'" id="dg"/>
<ww:select ... list="#dg.dates"/>

The above example calls DateGen.execute() followed by DateGen.getDates()

-Pat

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Francisco Hernandez
Sent: Friday, November 21, 2003 9:27 AM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] example of chaining actions together to provide
lookup lists

i want to use a action chain to provide lists of data (like a list of countrys/states/etc for use in a select) to my actions.

its described here but theres no example i can understand,

http://wiki.opensymphony.com/space/Webwork+-+Why+would+I+use+Action+Chai
ning%3F




------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork








------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to