that should be ifne provided that HibernateListModel is detaching properly.
i dont use databinder so i couldnt tell you. maybe you should post this on
the databinder mailing list.
if it is indeed detaching properly then the wicket-side of things looks
fine. maybe you are caching the query in hibernate?
-igor
On 3/5/07, Jason Roelofs <[EMAIL PROTECTED]> wrote:
Crap, Gmail keybindings screwed me up. Posting the rest...
Well, I am using a detachable model. Here's basically what I've got (using
Databinder, HibernateListModel implements IDetachable):
IModel rules = new HibernateListModel(...);
add(new PropertyListView("rules", rules) {
void populateItem(final ListItem item) {
item.add(new AjaxFallbackLink("delete") {
void onClick(target) {
// what do I do here? I hibernate.delete(obj), and addComponent,
but doesn't work
}
}
}
});
Is there a different version of ListView I should be using?
Jason
On 3/5/07, Jason Roelofs < [EMAIL PROTECTED]> wrote:
>
> Well, I am using a detachable model. Here's basically what I've got
> (using Databinder, HibernateListModel implements IDetachable):
>
> IModel rules = new HibernateListModel(...);
>
> add(new PropertyListView("rules", rules) {
>
> });
>
> On 3/5/07, Marc-Andre Houle < [EMAIL PROTECTED]> wrote:
> >
> > Make sure that you populate your list in the onAttach instead of the
> > constructor. Most of the time, that was my error. Or, make sure your model
> > is updated at the redraw....
> >
> > ---------- Forwarded message ----------
> > From: Jason Roelofs <[EMAIL PROTECTED]>
> > Date: Mar 5, 2007 11:25 AM
> > Subject: [Wicket-user] removeComponent?
> > To: [email protected]
> >
> > How do I tell Wicket to clear out an object who's underlying
> > implementation (db record, in this case) was just deleted? Current flow:
> >
> > - Delete link clicked, sends Ajax request
> > - onClick deletes the object from DB, tells to redraw entire list of
> > objects
> > - my now deleted object still gets rendered
> > - Click on Delete link again, throws error because of course, the guy
> > doesn't actually exist
> >
> > Is there some caching going on that I can clear?
> >
> > Thanks
> >
> > Jason
> >
> >
> > -------------------------------------------------------------------------
> > 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
-------------------------------------------------------------------------
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