Hi,
You can use in your Java code
if (something.equals("error") {
setResponsePage(ErrorPage.class);
return;
}
commands in the error case to forward the user to the Error page.
Peter
Ista Pouss írta:
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]