I have been trying out the contributed CheckboxGroup, ControlCheckbox and ControlledCheckbox. Everyhing is fine when the ControlCheckbox, ControlledCheckboxes are enclosed by a CheckboxGroup. However, I have problem when my CheckboxGroup does not enclose the ControlledCheckbox and ControlledCheckboxes. (In this case, the parameter group in component ControlCheckbox, ControlledCheckedbox are explicted set to the CheckboxGroup.)
In the generated html source, the ControlCheckbox is : <input onclick="null(this.checked)" type="checkbox"></input> The above 'null' should be setCheckboxGroup(value). My code is pasted at the end. (This example is available online at http://lombok.demon.co.uk/tapestry4Demo/app?page=TestCheckboxes2&service=page ) What is the correct usage when the CheckboxGroup does not enclose the ControlCheckbox, ControlledCheckboxes ? Thanks in advance for any assistance! Shing .page : <component id="colorControlledCB" type="contrib:ControlledCheckbox" > <binding name="value" value="ognl:selected" /> <binding name="group" value="component:colorCBGroup" /> </component> <component id="colorControlCB" type="contrib:ControlCheckbox"> <binding name="group" value="component:colorCBGroup" /> </component> <component id="colorCBGroup" type="contrib:CheckboxGroup"/> <component id="colorLoop" type="Foreach"> <binding name="source" value="ognl:colors"/> <binding name="value" value="ognl:color"/> <binding name="element" value="literal:tr"/> </component> .html : <form jwcid="@Form" listener="ognl:listeners.submitForm" focus="ognl:false"> <table> <tr> <th> <span jwcid="colorControlCB"/> Select all colours</th> </tr> <tr jwcid="colorLoop"> <td> <span jwcid="colorControlledCB"/> <span jwcid="@Insert" value="ognl:color"/> </td> </tr> </table> <span jwcid="colorCBGroup"></span> <input type="submit" value="Submit"/> </form> Home page : http://uk.geocities.com/matmsh/index.html ___________________________________________________________ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]