Can you create a mixin to force the name to particular value? On Jul 26, 2011 11:39 PM, "Stephan Windmüller" < stephan.windmuel...@tu-dortmund.de> wrote: > On 27.07.2011 01:25, Thiago H. de Paula Figueiredo wrote: > >>> Imagine a questionnaire with many statements (rows). For each statement >>> you have to select if you agree with it or not on a scale from 1 to 10. >>> For this I need a RadioGroup for each row. >> Add add="scale" in your Grid then <p:scale> <!-- radio group here --> >> </p:scale>. It's absolutely the same way as using a RadioGroup outside a >> Grid. It seems to me the only missing piece of the puzzle for you was how
>> to add a column to a Grid. > > This would put the radio group inside a single column. But as I stated > in my first e-mail, the options should be split among many columns. Here > is an example (view with a fixed font): > > /----------------------------------------------\ > | Statement | Good | OK | Bad | > |----------------------------------------------| > | First | o | o | o | > |----------------------------------------------| > | Second | o | o | o | > |----------------------------------------------| > | Third | o | o | o | > \----------------------------------------------/ > > Or in HTML: > > <table> > [...] > <tr> > <td>First</td> > <td><input type="radio" name="select_first" value="good">Good</td> > <td><input type="radio" name="select_first" value="ok">OK</td> > <td><input type="radio" name="select_first" value="bad">Bad</td> > </tr> > <tr> > <td>Second</td> > <td><input type="radio" name="select_second" value="good">Good</td> > <td><input type="radio" name="select_second" value="ok">OK</td> > <td><input type="radio" name="select_second" value="bad">Bad</td> > </tr> > [...] > </table> > > - Stephan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org >