You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Laurent Cornelis <la...@ubiquity.be> on 2004/03/29 12:56:42 UTC
RadioGroup problem
I have a problem with radio. It's like the 'selected' of RadioGroup is
never set.
Maybe do I something wrong ...
Here is my page specification:
<page-specification class="package.PageClass">
<property-specification name="listOfObjects" type="java.util.List"
persistent="no"/>
<property-specification name="currentObject"
type="package.MyObject" persistent="no"/>
<property-specification name="selectedObject"
type="package.MyObject" persistent="yes"/>
</page-specification>
listOfObjects is loaded in prepareForRender method.
Here is my template:
<span jwcid="$content$">
<html jwcid="@Shell" title="Title">
<body jwcid="@Body">
<span jwcid="@Conditional" condition="ognl:listOfObjects.empty">
No object...
</span>
<span jwcid="@Conditional" condition="ognl:!listOfObjects.empty">
<form jwcid="@Form" listener="ognl:listeners.submitForm">
<span jwcid="@RadioGroup" selected="ognl:selectedObject">
<table>
<tr>
<td> </td>
<td>Description</td>
</tr>
<span jwcid="@Foreach" source="ognl:listOfObjects"
value="ognl:currentObject">
<tr>
<td><span jwcid="@Radio" value="ognl:currentObject"/></td>
<td><span jwcid="@InsertText"
value="ognl:currentObject.description"/></td>
</tr>
</span>
</table>
</span>
<input type="submit" jwcid="@Submit" label="Select object"/>
</form>
</span>
</body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org