You do use a delete button, so i guess the values are submitted.
Then if you store those first in the model objects you won't loose anything

johan



On Feb 4, 2008 2:35 PM, pnerkar <[EMAIL PROTECTED]> wrote:

>
> Hi Johan,
>
> Yes that will be quickest solution ,
> But this will clear the fields of all vehicles.
>
> -Pnerkar
>
>
> Johan Compagner wrote:
> >
> > wasn't the quickest solution:
> >
> > public void onSubmit() {
> >        List vehicles = (List) getParent().getParent().getModelObject();
> >        vehicles.remove(index);
> >        listView.removeAll();
> > }
> >
> > Then if the list itself is stable on the server side (if other persons
> can
> > also delete or add stuff to that list you really should do it
> differently)
> > that should work fine. After you alter the listviews model you have to
> > remove all the items so that it will rebuild
> >
> > johan
> >
> >
> >
> >
> > On Feb 1, 2008 12:49 AM, pnerkar <[EMAIL PROTECTED]> wrote:
> >
> >>
> >> Hi All,
> >>
> >> I have rendered a list view on a Web Page.
> >>
> >> vehicle1    X
> >> vehicle2    X
> >> vehicle3    X
> >>
> >> when a person click on 'X', that item should be deleted.
> >> But I'm facing an issue, when i click on 'X', last item get deleted.
> >> Actually when I delete vehicle2 from my list, it deletes vehicle2 but
> >> that
> >> component is still there.
> >> So while rendering it render vehicle1 & vehicle2.
> >>
> >> public void onSubmit() {
> >>        List vehicles = (List) getParent().getParent().getModelObject();
> >>        vehicles.remove(index);
> >> }
> >>
> >> can please help out ??
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/How-to-delete-an-item-from-List-view.-tp15217608p15217608.html
> >> Sent from the Wicket - User mailing list archive at
> >> Nabble.com <http://nabble.com/><http://nabble.com/>
> >> .
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-delete-an-item-from-List-view.-tp15217608p15268198.html
>  Sent from the Wicket - User mailing list archive at 
> Nabble.com<http://nabble.com/>
> .
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to