You don't do it in the HTML, but in the java code. So you create a component that takes care of the if-else for you.

Linda

Ista Pouss wrote:
Hi,

What is the best technique to do some "if" "else" and so on with wicket ?

I need a html with something like that (stupid and naïve approch) :

<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>

How to do that with wicket ?

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database: 270.11.16/2005 - Release Date: 03/16/09 19:01:00



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to