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!


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to