It sounds like you want something like this:

File.html:

<div wicket:id="label">dadada</div>


File.java:
boolean again = false; // put your logic here
if (again) {
   add(new Label("label", "Very well!");
} else {
   add(new Label("label", "Very good!");
}


Ista Pouss wrote:
Thanks all.

Yes, I see there is planty solutions, but I am a little losted.

I understand very well the WebMarkupContainer and the setVisible mecanism.

But I don't undestand very well where is the markup in
WebMarkupContainer... for instance, I have :

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

and I should want in my_first_option :
<p> Very Good ! </p>

and for second :
<div> <span wicket:id="again">?</span> Very Well ! </div>

NOT in java prose, but in a HTML file.

Where do I put that ? In some wicket fragment ? Other ?

Thanks again, I'm going to try all that.


2009/3/17 Martin Makundi <[email protected]>:
<wicket:if (something = toto)>
...

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