2012-0216, resign: > hi, > > i have to implement followinmg design. > > Variable number of parameters should be shown as radio buttons with YES/NO > values > How can i realise this the simpliest way? > > Option_1 o o > Option_2 o o > .... > Option_x o o > > If i try to made it and then submit the form i get the : > OperationException: Could not find a coercion from type java.lang.String to > type MyType. > > MyType is the Model class for my page and contains > variables for SELECTED, OPTION_1.... and so far. > > I couldn't find any examples how to translate Radio buttons to another type. > > Any ideas?
You have to set an encoder (type ValueEncoder) for the RadioGroup - see http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/RadioGroup.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org