[
https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmitry Malyshev updated WICKET-6288:
------------------------------------
Priority: Critical (was: Major)
> StatelessLink not working
> -------------------------
>
> Key: WICKET-6288
> URL: https://issues.apache.org/jira/browse/WICKET-6288
> Project: Wicket
> Issue Type: Bug
> Reporter: Dmitry Malyshev
> Priority: Critical
>
> Example:
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns:wicket="http://wicket.apache.org/">
> <wicket:extend>
> <a wicket:id="statelessLink">statelessLink</a>
> <a wicket:id="statefullLink">statefullLink</a>
> </wicket:extend>
> </html>
> 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.
> Why?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)