I think <a><span>...</span></a> is better than just <a>...</a> sice it is clearer to (at least to me) to have a link which contains a label than a link which is also a label.
So i think the way it's now is pretty nice and clear.

Cu,
Dave

Johan Compagner wrote:

that label should work (like others are pointing out.

But we should simplify this.

<a wicket:id = "hlink" href="" >Go to my Page</a>

Link link = new Link('hlink',new Model("this is my text"));

why the extra span between them, mostly the model of the link isn't even used.

An extra link class that extends link?
(the problem is that onComponentTagBody is final...)

johan


Dipu wrote:

Hi,
Is there any way i can dynamically specfy the HyperLink text ? Right now if i have a link the markup look like
<a wicket:id = "hlink" href="" >Go to my Page</a>
I would like to replace the "Go to my Page" link text with some dynamic content. I tried adding a label like this <a wicket:id = "hlink" href="" ><span wicket:id="linkLabel"></span></a> But this doesn't seem to work.
Is there anything wrong with the way i am doing it.
Regards
Dipu



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to