On Sun, 24 Jun 2007, Peter Thomas wrote: > I haven't used repeaters that much, but would newItem() be the right way to > create a new Item? Anyway, I am now stuck because to ensure that the id of > the DOM element is same as the newly created item, I have to call > getMarkupId() on the item then I get the exception "This component is not > (yet) coupled to a page" Help!
Are you sure it's going to be a problem to update the whole Repeater? Because if not, your whole work of dynamic DOM appending might turn out to be premature optimisation. Maybe you can override getMarkupId() for your item components to return e.g. "myId" + domainObject.getdId()" or something such. (Btw, now that we're on it, all-numeric ids that repeaters produce by default are invalid HTML. Maybe I should file a Jira issue about that.) - Timo -- Timo Rantalaiho Reaktor Innovations Oy <URL: http://www.ri.fi/ > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user