You can find the answer here: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/gridwithdeletecolumn1
2009/5/16 R. Duval <rdg.du...@ibest.com.br> > > TFolks, > > I'm trying to use a form with multivalued parameters in tapestry but I'm > not > sure if it supports this kind of feature or how it does. I searched the web > for some clues but couldn't find any decent information about multi > parameters request using this framework. > > The problem is I'm generating a grid and in one cell I'm using a TextField > which is supposed to be multivalued, this way > > <!-- Template code --> > <t:Form t:id="someForm"> > <t:Grid t:source="myObject.myList" t:row="item"> > <t:Parameter name="specialValueCell"> > <t:TextField t:size="5" t:value="newSpecialValue" /> > </t:Parameter> > </t:Grid> > <div style="text-align: center;"> > <input type="submit" value="Submit" t:type="Submit" > t:id="submitButton" /> > </div> > </t:Form> > > My page's java component: > > ... > // All properties, like myObject, item and their setters and getters > ... > // I tried a collection of strings like Struts2 but got an exception. > private String newSpecialValue; > > // Of course it only prints the last newSpecialValue value. > @OnEvent(component="someForm", value=EventConstants.SUBMIT) > void onSubmitForm() { > System.out.println("New Special Value: "+newSpecialValue); > } > ... > > Trying to set the newSpecialValue as a Collection<String> (something like > WebWork OGNL type conversion) gave me an exception: Render queue error in > BeginRender[Index:textfield]: Parameter 'translate' of component > Index:textfield is bound to null. This parameter is not allowed to be null. > > If anyone has any clue or a link with information I'd be very glad. > -- > View this message in context: > http://www.nabble.com/Tapestry-5.1-and-multivalued-parameters-tp23569222p23569222.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >