Ok I didn't see you double-posted:
http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html
Frank
On 6/12/07, Frank Bille <[EMAIL PROTECTED]> wrote:
I guess your code doesn't work right now..
Try this markup:
<table border ="1" align="center" wicket:id="wmc">
<thead>
<tr>
<th>first name</th>
<th>last name</th>
</tr>
</thead>
<tbody>
<tr wicket:id="lv">
<td wicket:id="fN">firstName</td>
<td wicket:id="lN">lastName</td>
</tr>
</tbody>
</table>
Frank
On 6/12/07, howzat <[EMAIL PROTECTED]> wrote:
>
>
> Wicket: 1.2.6
>
> Is there a trick to getting a <table>'s data updated using Ajax (eg when
> a
> DropDownChoice value changes - & without refreshing the whole page)?
>
> I started with a <table> that got update by its ListView with no Ajax.
> That
> worked well.
>
> Now, I try to use a WebMarkupContainer to wrap the ListView 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/Using-Ajax-to-update-my-%3Ctree%3E-tf3904545.html#a11070200
>
> 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