Like this:
new WebMarkupContainer("one").setVisible(someTrueCondition);
new WebMarkupContainer("two").setVisible(someTrueCondition == false);
<span wicket:id="one">Your <b>HTML</b> for container one</span>
<span wicket:id="two">Your <b>HTML</b> for container two</span>
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, Mar 17, 2009 at 5:50 AM, Ista Pouss <[email protected]> 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]
>
>