Ah, I see.

I think you'll have to create a panel (or a fragment) for each variation 
and then add the appropriate panel (fragment).
Does that make sense?

     Erik.

Shams Mahmood schreef:
> Well I guess the main challenge lies here :
>
>   
>>             <span wicket:id="Label">[Wicket Contents]</span>
>>             <a wicket:id="wicketLink"> Click here </a>
>>
>> I want to change this to:
>>
>>             <a wicket:id="wicketLink"> Click here </a>
>>             <span wicket:id="wicketVariable">[Wicket Contents]</span>
>>     
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Erik van
> Oosten
> Sent: Thursday, November 02, 2006 4:13 PM
> To: wicket-user@lists.sourceforge.net
> Subject: Re: [Wicket-user] Programmatically/Dynamically change html
>
> Oops, too quick.
>
>             <font wicket:id="colorcomp"> Red </font>
>
>
> Label l = new Label("colorcomp", "Blue")
> add(l);
> l.add(new SimpleAttribyteModifier("color", "blue"));
>
>      Erik.
>
> Shams Mahmood schreef:
>   
>> Say I have something like this :
>>
>>             <font color="red"> Red </font>
>>             <span wicket:id="Label">[Wicket Contents]</span>
>>             <a wicket:id="wicketLink"> Click here </a>
>>
>> I want to chane this to:
>>
>>             <font color="blue"> Blue </font>
>>             <a wicket:id="wicketLink"> Click here </a>
>>             <span wicket:id="wicketVariable">[Wicket Contents]</span>
>>
>>
>> Dynamically.
>>
>> Anyone have idea how this can be done programmatically.
>>
>> I guess it has something to do with updating the markup cache of the
>> application.
>>
>> But I am not sure how I can update it.
>>
>> Thanx in advance.
>>
>>
>> Shams
>>             
>>             
>>
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>>     
> easier
>   
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>   
>>     
>
>   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to