Hi Carfield,
Do something like this:
<a href="#" wicket:id="change_status"><span
wicket:id="status">deactivate</span></a>
and
Link link = new Link("change_status") {
onSubmit() {...}
};
link.add(new Label("status", ....));
Erik.
Carfield Yim schreef:
> Say if I need to change the text of a link base on runtime
> information, e.g., for the following links:
>
> <a href="#" wicket:id="change_status">deactivate</a>
>
> For the active user it will show "deactivate" but for deactivate I
> would like it show "activate". How can I do that in wicket?
>
--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user