thanx, these are the first lines in the constructor:
IMedewerker emp = (IMedewerker) getModelObject();
List<IFunctieTitel> lst = new ArrayList<IFunctieTitel>(
emp.getFuncties());
final WebMarkupContainer listWmc = new
WebMarkupContainer("listWmc");
listWmc.setOutputMarkupId(true);
ListView lv = new ListView("functies", lst){
@Override
protected void populateItem(ListItem item) {
item.add(new Label("ftitel", new PropertyModel(item.getModel(),
"naam")));
item.add(DateLabel.forDatePattern("dig", new PropertyModel(
item.getModel(), "datumIngang.value"), "dd-MM-yyyy"));
item.add(DateLabel.forDatePattern("deg", new PropertyModel(
item.getModel(), "datumEinde.value"), "dd-MM-yyyy"));
item.add(new Label("groep", new PropertyModel(item.getModel(),
"woongroep.naam.value")));
}
};
listWmc.add(lv);
add(listWmc);
2008/2/16, Igor Vaynberg <[EMAIL PROTECTED]>:
>
> then show some code...maybe you are not using the right kind of model
> to feed the listview
>
> -igor
>
>
> On Feb 16, 2008 12:20 PM, Martijn Lindhout <[EMAIL PROTECTED]>
> wrote:
> > although I didn't search the wiki (I'll do it again from now), and I
> already
> > had that solution, it still doesn't work. :-(
> >
> > 2008/2/16, Igor Vaynberg <[EMAIL PROTECTED]>:
> >
> > >
> > > please try searching the wiki before posting to the list...
> > >
> > > http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html
> > >
> > > -igor
> > >
> > >
> > > On Feb 16, 2008 12:09 PM, Martijn Lindhout <[EMAIL PROTECTED]>
> > > wrote:
> > > > Hi,
> > > >
> > > > I have a listview with items, and a link below the list. The link
> opens
> > > a
> > > > form below the list (via AJAX), and the form can be submitted. An
> item
> > > then
> > > > is added the model underlying the listview. I added the listview to
> the
> > > > AjaxRequestTarget, but the list doesn't update. When I navigate away
> > > from
> > > > the page and then back, the list is updated with the new item.
> > > >
> > > > Does anyone know what I need to do here?
> > > >
> > > > --
> > > > Martijn Lindhout
> > > > JointEffort IT Services
> > > > http://www.jointeffort.nl
> > > > [EMAIL PROTECTED]
> > > > +31 (0)6 18 47 25 29
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> >
> > Martijn Lindhout
> > JointEffort IT Services
> > http://www.jointeffort.nl
> > [EMAIL PROTECTED]
> > +31 (0)6 18 47 25 29
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29