you cannot repaint the listview directly via ajax. you can search for the
reasons on this list, simply search for "listview" and "ajax". you have to
create a webmarkupcontainer. add the listview to that container, and add the
container to the ajax target instead of the listview when you want to update
it.

-igor


On 4/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


I have the following. I would like to add an additional row each time the
user clicks on the add user link. From the ajax debug window I get the
following message.

Componentwithid[[rows]]awasnotfoundwhiletryingtoperformmarkupupdate.Makesureyoucalledcomponent.setOutputMarkupId(true)onthecomponentwhosemarkupyouaretryingtoupdate.


            final List data =..

            add(view = new ListView("rows", data) {
                  public void populateItem(ListItem listItem) {
                        User value = (User )listItem.getModelObject();

                        listItem.add(new ModalWindowPanel("modalWindow",
value));

                        listItem.add(new CheckBox("admin", new Model(new
Boolean(value.isAdmin()))));
                  }
            });
            view.setOutputMarkupId(true);

            add(link = new AjaxLink("addUser") {
                  private static final long serialVersionUID = 1L;

                  public void onClick(AjaxRequestTarget target) {
                        User user= new User ();
                        data.add(user);

                        target.addComponent(view);
                  }
            });

      }

Thank you


********************
NOTICE OF CONFIDENTIALITY
This communication including any information transmitted with it is
intended only for the use of the addressees and is confidential.
If you are not an intended recipient or responsible for delivering
the message to an intended recipient, any review, disclosure,
conversion to hard copy, dissemination, reproduction or other use
of any part of this communication is strictly prohibited, as is the
taking or omitting of any action in reliance upon this communication.
If you receive this communication in error or without authorization
please notify us immediately by return e-mail or otherwise and
permanently delete the entire communication from any computer,
disk drive, or other storage medium.

If the above disclaimer is not properly readable, it can be found at
www.td.com/legal

AVERTISSEMENT DE CONFIDENTIALITE
Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement
aux destinataires susmentionnés,  est confidentiel.  Si vous
n'ętes pas le destinataire prévu ou un agent responsable de la
livraison de ce courriel, tout examen, divulgation, copie, impression,
reproduction, distribution, ou autre utilisation d'une partie de ce
courriel est strictement interdit de męme que toute intervention ou
abstraction ŕ cet égard.  Si vous avez reçu ce message par erreur ou
sans autorisation, veuillez en aviser immédiatement l'expéditeur par
retour de courriel ou par un autre moyen et supprimer immédiatement
cette communication entičre de tout systčme électronique.

Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
pouvez le consulter ŕ www.td.com/francais/legale

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to