How do I change link-text in Wicket?
问题 I created a link with static text. That works fine but now I also want to change the text when you click the link. I got as far as this: add(new Link("doAnything") { @Override public void onClick() { // change the text! // this.modelChanging(); // this.detach(); } }); I hope you can give me some easy advice - I'm really new to this :) Best regards Elias 回答1: The HTML: <html><head></head><body> <wicket:panel> <a href="" wicket:id="link"> <wicket:container wicket:id="label" /> </a> </wicket