I have a TabbedPanel in which I dynamically add and remove tabs. In addition I want to change the title of a tab according to its changing contents. In my current code the title is set by the Wicket ID like:
public class GenericTab extends AjaxTab {
private boolean closable = true;
public GenericTab( MyAbstractPanel myPanel ) {
super( Model.of( myPanel.getTitle() ) );
}
So I can set the title once at instantiation. How can I change it with Java code?