Dave Newton wrote:
For example Depending the circumstance I load setValue(boolean) or setValue(String).

In S2 it could cause problems with the form tags; it expects form values to
follow JavaBean standards. I'm not sure what would happen.

Dave

You can have the two setters if you want, but no matter what you can only have one getter, and Xwork will always match the string rather than the boolean.

If you like, make the property a String. Use a checkbox or input in your JSP dynamically. When you submit the form the parameter interceptor will set the value of the string to the value of the checkbox/input, which will be the value, or "true" or "yes" depending on your form and the user's brower. You'll have to handle further conversion within your action. This sucks though because you won't get the automatic "not checked" handling, and because IE sends "yes" instead of the checked value (IIRC).


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to