Doesn't this work?
<input
type="checkbox"
name="$someMethod($set.name)"
value="$set.name">$set.name
Which would call $someMethod, passing in $set.name?
Cheers,
Scott
Gary Grobe wrote:
I create a number of checkboxes pending the number of items returned
from a db query.
Is there a way to create an action method that would be called once the
page is submitted to collect all the values that were checked?
I've got this in place ... (using velocity in my views)
#foreach ( $set in $toolsList )
<input type="checkbox" name="$set.name" value="$set.name">$set.name
#end
As you can see, name and value above can change to any value, but I need
to know of a method name ahead of time so that I can capture any value,
so I'm looking for something like ...
<input type="checkbox" name="someMethod($set.name)"
value="$set.name">$set.name
Any help much appreciated.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
--
ATLASSIAN - http://www.atlassian.com
Expert J2EE Software, Services and Support
-------------------------------------------------------
Need a simple, powerful way to track and manage issues?
Try JIRA - http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork