I'm still chasing a problem where I need a webwork action method to
capture checkbox values. General consensus on the velocity mailing list
is that I needed to return here. In order to capture these "random"
checkbox values in an action method, I'm passing the value of the
control as a parameter in a common webwork method.
I have a velocity view returned from an action that creates many
checkbox's after a dbase query (so checkboxes are dependent upon number
of result sets returned). The getter method in my webwork action is
called when the view loads, but the setter method (which I expect to be
called for each checkbox when I submit the page) isn't, so I can't
collect the selected checkboxes.
--- my.vm
<input type="checkbox" name="toolItem($set.name)"
value="$toolItem($set.name)">$set.name
--- webwork action
// get's called when view page is loaded
public String getToolItem() { return item; }
// I thought should be called when the view form is submitted, but
doesn't
public void setToolItem(String tool) {
// ... start collecting tool params each time this method is
called for each checkbox
}
---
Any help much appreciated.
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork