thanks august

-igor


On 1/2/07, August Detlefsen <[EMAIL PROTECTED]> wrote:

 Thanks again Igor that was just the ticket. I've updated the wicket wiki
with an example:


http://cwiki.apache.org/confluence/display/WICKET/How+to+repaint+a+ListView+via+Ajax

-August


Igor Vaynberg wrote:

the list did not refresh because you did not specify a model that can
update itself across requests on the listview.

the listview should use a detachable model, try a LoadableDetachableModel

-igor


On 12/31/06, August Detlefsen <[EMAIL PROTECTED]> wrote:
>
> Actually, this approach did not work for me -The container updated every
> 5 seconds, but the list of items generated from the database never
> changed.
>
> After some digging through the wicket sources, I solved this by
> overriding the onAttach() method of WebMarkupContainer to remove the
> list and regenerate it from the DB on each rendering:
>
>
>
> public class AjaxContainer extends WebMarkupContainer {
>
>     protected void onAttach() {
>         removeAll();
>
>         ListView comments = new ListView("comments", commentList) {
>
>                 protected void populateItem(final ListItem listItem) {
>
> ...
>
>
> Do you forsee any problems with this approach?
>
> Regards,
> August
>
>
> Igor Vaynberg wrote:
>
> > before:
> >
> > add(new ListView("listview"....
> >
> > <div wicket:id="listview"></div>
> >
> > after
> >
> > WebMarkupContainer container=new WebMarkupContainer("container");
> > container.setOutputMarkupId (true);
> > contianer.add(new ListView("listview"....
> >
> > ...
> > <div wicket:id="container"><div wicket:id="listview"></div></div>
> >
> > -igor
> >
> >
> > On 12/29/06, *August Detlefsen* <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED] >> wrote:
> >
> >     I've seen the Wiki entry that says:
> >
> >     "You can't, you need to put it into a WebMarkupContainer and
> repaint
> >     that container instead."
> >     http://www.wicket-wiki.org.uk/wiki/index.php/ListView
> >
> >
> >     But does anyone have some example code illustrating this?
> >
> >     Thanks,
> >     August
> >
> >
> -------------------------------------------------------------------------
> >
> >     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
> >     
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> >     _______________________________________________
> >     Wicket-user mailing list
> >     [email protected]
> >     <mailto: [email protected]>
> >     https://lists.sourceforge.net/lists/listinfo/wicket-user
> >     <https://lists.sourceforge.net/lists/listinfo/wicket-user>
> >
> >
>
> -------------------------------------------------------------------------
>
> 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
>



-------------------------------------------------------------------------
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



-------------------------------------------------------------------------
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

Reply via email to