[Httpunit-commit] CVS: httpunit/sitedocs/doc faq.xml,1.2,1.3
Brought to you by:
russgold
From: Russell G. <rus...@us...> - 2003-08-22 10:42:10
|
Update of /cvsroot/httpunit/httpunit/sitedocs/doc In directory sc8-pr-cvs1:/tmp/cvs-serv21903/sitedocs/doc Modified Files: faq.xml Log Message: prepare for 1.5.4 release Index: faq.xml =================================================================== RCS file: /cvsroot/httpunit/httpunit/sitedocs/doc/faq.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- faq.xml 20 Jun 2003 03:21:11 -0000 1.2 +++ faq.xml 21 Aug 2003 11:52:37 -0000 1.3 @@ -57,8 +57,11 @@ <faq id="uncheck"> <question>How do I uncheck a checkbox?</question> <answer><![CDATA[The setParameter call lets you specify the values per parameter name. An unchecked checkbox has no value to transmit, so you would call: - <pre><code> form.setParameter( "checkbox-name", new String[0] );</code></pre>or - <pre><code> form.removeParameter( "checkbox-name" );</code></pre>]]></answer> + <pre><code> form.setParameter( "checkbox-name", new String[0] );</code></pre> or + <pre><code> form.removeParameter( "checkbox-name" );</code></pre> + As of 1.5.4, you have alternatives. If the checkbox's name is unique, you can say: + <pre><code> form.setCheckbox( "checkbox-name", false );</code></pre> or + <pre><code> form.toggleCheckbox( "checkbox-name" );</code></pre>]]></answer> </faq> <faq id="hidden"> <question>Why can't I change hidden parameter values?</question> |