You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Shing Hing Man <ma...@yahoo.com> on 2006/05/31 16:33:54 UTC
Contributed ControlCheckbox, ControlledCheckboxes with given CheckboxGroup
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org