> <wicket:if (something = toto)>
>  <div> do this thing</div>
> <wicket:else if (something = foo)>
>  <p><a href="error.html">It's not good</a></p>
> <wicket:else if (something = other)>
>  <div>render other</div>

Here is one thing you can do:

<div wicket:id="my_first_option">dadada</div>
<div wicket:id="my_second_option">dududu</div>

And in your Java code you do:

boolean showDadada;
add(new WebMarkupContiainer("my_first_option").setVisible(showDadada));
add(new WebMarkupContiainer("my_second_option").setVisible(!showDadada));

This is only one of the numerous possible ways to accomplish this..
but remember: no script-coding in HTML!

**
Martin

>
> How to do that with wicket ?
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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

Reply via email to