On Fri, Jan 09, 2004 at 09:37:46PM -0800, [EMAIL PROTECTED] wrote:
> I have the following Action,
> 
> public class TagTestAction implements Action
> {
>  boolean test;
> }
> 
> and...
> #tag(Checkbox "label=checkbox test'" "name='test'" "fieldValue=test" "size=30")
> 
> if the property test is true, the ckeckbox in my view will be checked ... 
> and when I check it in the html page and submit my form, the attribute 
> in my action will be true.... does it work like this, or I´m wrong?
> 
> but this isn't working, the property test in the action is always set to false after 
> de submit...

You need setters & getters on your action

public boolean getTest();

public void setTest(boolean test);

Else how does webwork set the values on 'test'?



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to