You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by st...@spamgourmet.com on 2011/07/20 18:57:02 UTC

Documentation: Checkbox "false" injection

The "using checkboxes" page at  http://struts.apache.org/2.2.3/docs/using-checkboxes.html  says:

	The framework automatically tracks the checkboxes used by a form (so you don't have to). If a checkbox is missing, a default value for the checkbox (usually false) is injected. The checkbox control can then turn on-and-off values as needed,

Questions:

 * How is the string "false" injected?  Is there a way to control the behavior of the injection or the injected value?
 * Can the document be updated to include these examples? (shall I open a JIRA issue against the docs?)

Criticism:

 * Note that the documentation paragraph terminates with a comma instead of a full-stop.
 * Also note that the "Full Detailed Example" at the bottom of the page is perhaps too detailed to clearly demonstrate the subject matter

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Documentation: Checkbox "false" injection

Posted by Dave Newton <da...@gmail.com>.
On Jul 20, 2011 12:57 PM wrote:
>  * How is the string "false" injected?

Hidden field.

>  Is there a way to control the behavior of the injection or the injected
value?

IIRC you can control the value via the interceptor, but I could definitely
be wrong on that one.

What type of behavioral control do you want? It's handled by the checkbox
template and the interceptor.

>  * Can the document be updated to include these examples? (shall I open a
JIRA issue against the docs?)

Sure, or file a CLA and contribute some additional docs.

Dave