Hello, I'm not seeing where you are using the Radio Component?
I suggest you take a look at http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Radio.html and combine it with your loop. Hope that helped, Tobias Gutemberg A. Da Silva schrieb:
Hi guys, I have a problem with "RadioButton Component". I have this class: <!-- Class --> public class CheckBoxClass { @Property private final String[] colors = { "Blue", "Red", "Green" }; @Property private String color; @Property private String teste; @Property private boolean color1 = false; //@BeginRender void onPrepare(String id) { //color1 = true; if (color1) { System.out.println("verdade..: " + id); } else { System.out.println("falso..: " + id); } } void onActivate(String id) { System.out.println("++++++++++++++++ " + id); } } and have this TML: <!-- TML --> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> <head> <title>agenda Start Page</title> </head> <body> <form t:type="form" t:id="myForm"> <table> <tr t:type="loop" source="colors" value="color" > <td> <t:checkbox controller="colorController" value="${color1}" context="${color}"/> ${color} </td> </tr> <br/> <input t:type="submit"/> </table> </form> </body> </html> when I click on Submit, it is shownd this error: Failure writing parameter 'value' of component CheckBoxClass:checkbox: Binding org.apache.tapestry5.internal.services.attributeexpansionbind...@1f68272 is read-only. context eventTypeaction Can somebody help me in this Class Test with the "RadioButton" component?
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org