Hi, What it looks to me that the panel of which visibility has been set is not added to the target. So, IMHO *target.add(uploadPanel2)* should do.
Regards On Tue, Dec 21, 2010 at 6:09 PM, Duro <develma...@yahoo.com> wrote: > Hi, i have 3 panels on my page: > wicket:extend> > <div align="center" style="background-color:red;padding:20px"> > <h2>Epubs upload</h2> > <form wicket:id="form"> > <div style="background-color:#304050"> > <span wicket:id="uploadPanel1"/> > <span wicket:id="uploadPanel2"/> > <span wicket:id="uploadPanel3"/> > <a href="#" wicket:id="addLink">Add next file</a> > <br/> > <input wicket:id="submitButton" type="submit" value="Datei(en) laden"/> > </div> > <div wicket:id="feedback" class="error" style="background-color:yellow"/> > </form> > </div> > </wicket:extend> > > and only after clicking addLink, the user should see the uploadPanel2. So i > coded this: > > add(new AjaxFallbackLink("addLink") { > private static final long serialVersionUID = > -4427831923318024979L; > > @Override > public void onClick(AjaxRequestTarget target) { > uploadPanel2.setVisible(true); > } > }); > > When i debug, the method onClick() is really entered and > uploadPanel2.setVisible(true) is executed, but the panel is still not > visible. What else i have to do? > thanks! > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz > gegen Massenmails. http://mail.yahoo.com > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >