Description
Example:
TestPage.html
<?xml version="1.0" encoding="UTF-8"?> <html xmlns:wicket="http://wicket.apache.org/"> <body> <a wicket:id="statelessLink">statelessLink</a> <a wicket:id="statefullLink">statefullLink</a> </body> </html>
TestPage.java
public class TestPage extends WebPage { public TestPage(PageParameters pageParameters) { super(pageParameters); add(new StatelessLink("statelessLink") { @Override public void onClick() { System.err.println("statelessLink.onClick()"); } }); add(new Link("statefullLink") { @Override public void onClick() { System.err.println("statefullLink.onClick()"); } }); } @Override protected void onBeforeRender() { get("statefullLink").setVisible(false); super.onBeforeRender(); } }
So, StatelessLink not working in this case.
And if i remove the row get("statefullLink").setVisible(false); it works succesfull.
Attachments
Attachments
Issue Links
- Is contained by
-
WICKET-4201 IPageProvider and its implementations need to be improved
- Resolved