I have a dateHolder that holds my objects in the ajaxformloop
public DateHolder onAddRowFromdateLoop(){ if (dateList == null){ dateList = new ArrayList<cleverListDate.DateHolder>(); } DateHolder dateHolder = new DateHolder(); log.trace("add " + dateHolder.getKey()); dateList.add(dateHolder); return dateHolder; } public void onRemoveRowFromdateLoop(DateHolder date){ if(date == null) { log.error("on remove row from financial conditions - [DateHolder] is null."); return; } log.trace("delete "+date.getKey()); if(!dateList.contains(date)) dateList.remove(date); else date.setDeleted(true); } public ValueEncoder<DateHolder> getdateEncoder() { return new ValueEncoder<DateHolder>() { public String toClient(DateHolder fc) { return fc.getKey().toString(); } public DateHolder toValue(String ks) { String k = new String(ks); int i =0; DateHolder fc1 = null; for (DateHolder fc : dateList){ if (fc.getKey().toString().equals(k)) fc1=fc ; log.error("Date encoder - Received key \"" + k + "\" which has no counterpart in this collection: " + dateList.get(i).getKey()); } return fc1; } }; } the encoder give me a unique key but the problem is the fact that tapestry creates only one datelist . the setdeleted makes the element disapear from the list but still exist. is there anyway to tell tapestry to create a list for each element of the big list or is it simply a bug ? -- View this message in context: http://tapestry.1045711.n5.nabble.com/ajaxformloop-inside-ajaxformlopp-tp4793513p4793625.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