We had this question 2 days ago, solution is in wiki:
http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html
the List actions itself like add and delete are part of List and you just
would have to ListView.setList(yourListInHere) prior to repainting the
markupcontainer with ajax.
Regards
_____
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Alexei
Sokolov
Gesendet: Freitag, 13. April 2007 00:41
An: [EMAIL PROTECTED]
Betreff: [Wicket-user] ajax / javascript widgets in wicket
Hello guys,
I have a question about designing ajax/javascript widgets using wicket. Here
is my problem:
I have a form, which I submit using ajax submit button and I have a list
view like this:
<ul>
<li wicket:id="item">blah</li>
</ul>
What I want to do is:
- add a new <li> element to the list (but don't change other DOM nodes in
the document)
- call a javascript function to apply some visual effects to the item
I want a similar method for removing items from the list, updating items,
etc.
How do I design such widget?
Thank you,
Alex
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user