Link link = new Link("hlink") {
public void onClick() {
...
}
};
link.add(new Label("linkLabel", "your text"));
add(link)should work. I guess you simply forget that the linkLabel is inside the hlink... Cu, Dave 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.RegardsDipu
------------------------------------------------------- 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
