My Sample is the one on the Tapestry-jQuery Test application : https://github.com/got5/tapestry5-jquery/blob/master/src/test/java/org/got5/tapestry5/jquery/test/pages/test/AjaxFormLoop.java
Manu 2011/9/21 Michael Dukaczewski <m.dukaczew...@tu-bs.de> > Emmanuel is right. I have the same problem. This simple example does not > work with Tapestry 5.3-beta-9: > > public class AjaxTest { > > @Persist > private List<String> source; > > @Property > private String str; > > public List<String> getSource() { > if (source == null) { > source = new LinkedList<String>(); > } > return source; > } > > Object onAddRowFromTest() { > String s = ""+System.currentTimeMillis(); > getSource().add(s); > return s; > } > > void onRemoveRowFromTest(String s) { > getSource().remove(s); > } > } > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <t:layout xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" > xmlns:p="tapestry:parameter"> > <t:form t:id="form"> > > <t:ajaxformloop t:id="test" t:source="source" t:value="str"> > <div>${str} <t:removerowlink>remove</t:removerowlink></div> > </t:ajaxformloop> > > </t:form> > </t:layout> > > > Regards, > Michael > > > Am 20.09.2011 15:27, schrieb Steve Eynon: > > I don't know what I'm doing differently, but my AjaxFormLoop still > > seems to add and remove rows with T5.3-beta-9. > > > > My implementation (like most people's I suspect!) is based on Geoff's > > Jumpstart example > > > > http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloop1 > > > > Steve. > > -- > > Steve Eynon > > ------------------------------- > > "If at first you don't succeed, > > so much for skydiving!" > > > > > > > > > > > > On 20 September 2011 19:10, Emmanuel DEMEY <emmanuel.de...@atos.net> > wrote: > >> Hi everybody > >> > >> Few days ago, I created a simple sample for the AjaxFormLoop component, > with > >> Tapestry 5.3.0. Everything was OK. > >> > >> This morning, I updated to Tapestry 5.3-beta-9. But when I add a new row > (by > >> clicking to the "add" link), the JSON response of the AJAX request does > not > >> include the elementId value. So, when I want to delete the new row, > >> tapestry.js throw me an exception. > >> > >> After a debugging phase, I think the PartialMarkupRenderFilter, declared > in > >> the onInject method of the FormInjector component, is added to the > >> PageRenderQueue to late. The renderPartial method (PageRenderQueue) is > >> called before added this last Filter. > >> > >> Does anyone of you have the same issue ? > >> > >> I hope I have enough informations. ! > >> Thanks > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Emmanuel DEMEY Ingénieur Etude et Développement ATOS Worldline +33 (0)6 47 47 42 02 demey.emman...@gmail.com http://emmanueldemey.fr