I believe I should not receive emails like this, should I? Begin forwarded message:
> From: postmas...@td.com > Date: 04 декември 2009 00:17:36 Гриинуич+0200 > To: z...@abv.bg > Subject: DELIVERY FAILURE: Invalid/unknown recipient [MAPI Reason Code: 1, > MAPI Diagnostic Code 1] > > Your message > > Subject: Re: dynamically adding components to a ListView > > was not delivered to: > > john.mattu...@td.com > > because: > > Invalid/unknown recipient [MAPI Reason Code: 1, MAPI Diagnostic Code 1] > > > ******************** > 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 > Reporting-MTA: x-local-hostname; TDGROUP > > Final-Recipient: rfc822;john.mattu...@td.com > Action: failed > Status: 5.0.0 > Diagnostic-Code: X-Notes;Invalid/unknown recipient [MAPI Reason Code: 1, MAPI > Diagnostic Code 1] > > From: z...@abv.bg > Date: 04 декември 2009 00:17:36 Гриинуич+0200 > To: <users@wicket.apache.org> > Subject: Re: dynamically adding components to a ListView > Reply-To: users@wicket.apache.org > > > found it. > > On 03.12.2009, at 16:19, zkn wrote: > > > Hi, > > > > I'm trying to dynamically add components to an existing ListView but I > > can't figure out how to do that. Here is my case: > > > > MyPanelContainer class with markup > > > > <wicket:panel> > > <wicket:container wicket:id="panels"> > > <wicket:container wicket:id="panel" /> > > </wicket:container> > > <a href="#" wicket:id="addPanel">add panel</a> > > </wicket:panel> > > > > and here is how I create the container in the constructor of my page > > > > .. > > MyPanelContainer container = new MyPanelContainer("panels_list_1"); > > List<MyPanel> panels = new ArrayList<MyPanel>(); > > > > for (int j = 0; j < 5; j++) { > > MyPanel panel = new MyPanel("panel"); > > > > ..... > > > > panels.add(panel); > > . > > > > > > container.add(new ListView<MyPanel>("panels", panels) { > > protected void populateItem(ListItem<MyPanel> item) { > > item.add( item.getModelObject()); > > } > > }); > > add(Container); > > .. > > > > This works fine and I can see all MyPanel inside the container. > > > > Now I'm trying to add another MyPanel inside the container on user click. > > Here is the constructor of MyPanelContainer > > > > public MyPanelContainer(String id) { > > super(id); > > .... > > add(new Link("addPanel") { > > @Override > > public void onClick() { > > addPanel(); > > } > > > > }); > > . > > > > .. > > public void addPanel() { > > > > ListView< MyPanel > panels = (ListView< MyPanel >) > > get("panels"); > > > > MyPanel panel = new MyPanel("panel"); > > ... > > panels.add(panel); > > } > > > > Basically addPanel() does the same thing as in page constructor to add > > panels to the list but nothing shows up. > > > > Thanks in advance for your help > > > > Ozkan > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >