I recently had a bit of a cold shower from trying to use the ww:checkbox
with a boolean member of my actions.

First of all the syntax is pretty bad:
<ww:checkbox name="'frozen'" fieldValue="frozen" label="'frozen'" />
the "fieldValue" should be called "value" and if not specified should
default to the name parameter without ' around it like normal for other
tags.

The other issue is that if I have

boolean frozen;
public void setFrozen(boozen in){frozen = in;}
public boolean getFrozen(){return frozen;}

This will not get set with the checkbox code above. This is highly
unintuitive imho and the current workaround is to set frozen to true always
in the setter. This produces the correct behavior.

How am I supposed to use ww:checkbox?

Anders Hovmöller
[EMAIL PROTECTED] http://boxed.killingar.net



-------------------------------------------------------
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

Reply via email to