Thanks Igor. Could you be a bit more specific? As per my original post, I am trying to use the WebMarkupContainer, but it's not working (yet). I'll repeat the code in case I confused the issue with my indentation correction. final ListView lines = new ListView("lv",myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer("wmc"); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true));
& the my most recent try at mark-up looks like: <table border ="1" align="center"> <thead> <tr> <th>first name</th> <th>last name</th> </tr> </thead> <tbody> <tr wicket:id="wmc"> <td wicket:id="fN">firstName</td> <td wicket:id="lN">lastName</td> </tr> </tbody> </table> igor.vaynberg wrote: > > try putting a webmarkupcontainer on the <table> tag and repainting that. > > -igor > > > On 6/11/07, howzat <[EMAIL PROTECTED]> wrote: >> >> >> Fixed indentation for clarity ... any ideas how to make this work - see >> below >> (<table> row data to be updated by the underlying ListView's model in >> Wicket)? >> >> final ListView lines = new ListView("lv",myList){ >> @Override >> protected void populateItem(ListItem item) { >> item.add(...); // derive & add first name >> item.add(...); // derive & add last name >> }}; >> WebMarkupContainer listContainer = new WebMarkupContainer("wmc"); >> listContainer.add(lv); >> form.add(listContainer.setOutputMarkupId(true)); >> >> & the most recent (failed) try at mark-up looks like: >> >> <table border ="1" align="center"> >> <thead> >> <tr> >> <th>first name</th> >> <th>last name</th> >> </tr> >> </thead> >> <tbody> >> <tr wicket:id="wmc"> >> <td wicket:id="fN">firstName</td> >> <td wicket:id="lN">lastName</td> >> </tr> >> </tbody> >> </table> >> >> >> >> >> howzat wrote: >> > >> > Wicket: 1.2.6 >> > >> > Is there a trick to getting a <table>'s data updated using Ajax (eg >> when >> a >> > DropDownChoice value changes the rows in the table change - without >> > refreshing the whole page)? >> > >> > I started with a <table> that got updated by its ListView with no Ajax. >> > That worked well. >> > >> > Now, I try to use a WebMarkupContainer to wrap the ListView (need a >> named >> > component) so I can update the <table> by Ajax. >> > >> > final ListView lines = new ListView("lv",myList){ >> > @Override >> > protected void populateItem(ListItem item) { >> > item.add(...); // derive and add 1st name >> > item.add(...); // derive and add 2nd name >> > }}; >> > WebMarkupContainer listContainer = new WebMarkupContainer("wmc"); >> > listContainer.add(lines); >> > form.add(listContainer.setOutputMarkupId(true)); >> > >> > & the my most recent try at mark-up looks like: >> > >> > <table border ="1" align="center"> >> > <thead> >> > <tr> >> > <th>first name</th> >> > <th>last name</th> >> > </tr> >> > </thead> >> > <tbody> >> > <tr wicket:id="wmc"> >> > <td wicket:id="fN">firstName</td> >> > <td wicket:id="lN">lastName</td> >> > </tr> >> > </tbody> >> > </table> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html#a11070603 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> 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 >> > > ------------------------------------------------------------------------- > 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 > > -- View this message in context: http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html#a11070715 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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