<a href="#" wicket:id="link"><span wicket:id="content"></span></a>

Link link = new Link("link") { public void onClick() {} };
link.add(new Label("content", "Hello, World!"));

Martijn

On 6/20/06, Alex Objelean <[EMAIL PROTECTED]> wrote:
>
> I just started to learn the Wicket Framework, so sorry for a trivial
> question... (I couldn't find the solution on the forum):
>
> How can I change the innerHTML of the Link component dynamically?
>
> For instance in the following code:
>
> &lt;a href="#" wicket:id="navLink">Page1&lt;/a>
>
>
> new Link("navLink") {
>           public void onClick() {
>             setResponsePage(Page1.class);
>           }
>         }
>
> I would like to change the "Page1" value to something else....
> How can I do that?
> Thank you!
> --
> View this message in context: 
> http://www.nabble.com/Changing-the-Link-innerHTML-t1816416.html#a4951617
> Sent from the Wicket - User forum at Nabble.com.
>
>
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org


_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to