[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15838539#comment-15838539 ] ASF subversion and git services commented on WICKET-6288: - Commit 8b3e7d42202e6ccaa0d0bc2bfe4dabf87ffe03db in wicket's branch refs/heads/master from Pedro Henrique Oliveira dos Santos [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=8b3e7d4 ] WICKET-6288 testing if the page if expired using IPageProvider API > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug > Components: wicket >Affects Versions: 6.25.0 >Reporter: Dmitry Malyshev >Assignee: Pedro Santos > Attachments: wicketerror.zip > > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > So, StatelessLink not working in this case. > And if i remove the row get("statefullLink").setVisible(false); it works > succesfull. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15837243#comment-15837243 ] ASF subversion and git services commented on WICKET-6288: - Commit c4805d87012c2f0c2e80418453d0c60f3a5db7c7 in wicket's branch refs/heads/master from Pedro Henrique Oliveira dos Santos [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=c4805d8 ] WICKET-6288 testing if the page if expired using IPageProvider API > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug > Components: wicket >Affects Versions: 6.25.0 >Reporter: Dmitry Malyshev >Assignee: Pedro Santos > Attachments: wicketerror.zip > > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > So, StatelessLink not working in this case. > And if i remove the row get("statefullLink").setVisible(false); it works > succesfull. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15714305#comment-15714305 ] Martin Grigorov commented on WICKET-6288: - OK. I've assigned WICKET-4201 to you. > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug > Components: wicket >Affects Versions: 6.25.0 >Reporter: Dmitry Malyshev >Assignee: Pedro Santos > Attachments: wicketerror.zip > > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > So, StatelessLink not working in this case. > And if i remove the row get("statefullLink").setVisible(false); it works > succesfull. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15713277#comment-15713277 ] Pedro Santos commented on WICKET-6288: -- The fix in the 8.x branch will use a new pageprovider API, I'm working on it. > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug > Components: wicket >Affects Versions: 6.25.0 >Reporter: Dmitry Malyshev >Assignee: Pedro Santos > Attachments: wicketerror.zip > > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > So, StatelessLink not working in this case. > And if i remove the row get("statefullLink").setVisible(false); it works > succesfull. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15713192#comment-15713192 ] Martin Grigorov commented on WICKET-6288: - The fix has to be ported to 8.x too. > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug > Components: wicket >Affects Versions: 6.25.0 >Reporter: Dmitry Malyshev >Assignee: Pedro Santos > Attachments: wicketerror.zip > > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > So, StatelessLink not working in this case. > And if i remove the row get("statefullLink").setVisible(false); it works > succesfull. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15701079#comment-15701079 ] ASF subversion and git services commented on WICKET-6288: - Commit 8d78d00caca97fa42db8670afec05a6c66152f42 in wicket's branch refs/heads/wicket-7.x from Pedro Henrique Oliveira dos Santos [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=8d78d00 ] WICKET-6288 testing if the page is expired assuming both component and the stateless state can't be correctly determined in a fresh page > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug > Components: wicket >Affects Versions: 6.25.0 >Reporter: Dmitry Malyshev >Assignee: Pedro Santos > Attachments: wicketerror.zip > > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > So, StatelessLink not working in this case. > And if i remove the row get("statefullLink").setVisible(false); it works > succesfull. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15701034#comment-15701034 ] ASF subversion and git services commented on WICKET-6288: - Commit b29055db8afff1fbbb5f83c92ea8148212ce7478 in wicket's branch refs/heads/wicket-6.x from Pedro Henrique Oliveira dos Santos [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=b29055d ] WICKET-6288 assuming both component and the stateless state can't be correctly determined in a fresh page > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug > Components: wicket >Affects Versions: 6.25.0 >Reporter: Dmitry Malyshev >Assignee: Pedro Santos > Attachments: wicketerror.zip > > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > So, StatelessLink not working in this case. > And if i remove the row get("statefullLink").setVisible(false); it works > succesfull. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15700959#comment-15700959 ] ASF subversion and git services commented on WICKET-6288: - Commit bc88aca39f514ea9b166d339a9f8821a6d480f4a in wicket's branch refs/heads/wicket-6.x from Pedro Henrique Oliveira dos Santos [ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=bc88aca ] WICKET-6288 using the page_id to check if the page was expired > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug > Components: wicket >Affects Versions: 6.25.0 >Reporter: Dmitry Malyshev >Assignee: Pedro Santos > Attachments: wicketerror.zip > > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > So, StatelessLink not working in this case. > And if i remove the row get("statefullLink").setVisible(false); it works > succesfull. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15697226#comment-15697226 ] Dmitry Malyshev commented on WICKET-6288: - 6.25.0 > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug >Reporter: Dmitry Malyshev > Attachments: error.zip > > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > 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)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15695916#comment-15695916 ] Andrea Del Bene commented on WICKET-6288: - Drinking coffee is fine, but try to not drink more than 3 or 4 cups a day :-) > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug >Reporter: Dmitry Malyshev > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > 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)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15695713#comment-15695713 ] Martin Grigorov commented on WICKET-6288: - Oh, I read it wrong. The stateful link is invisible. Apologies! I am a developer but I don't mind some help from you! > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug >Reporter: Dmitry Malyshev > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > 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)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15695703#comment-15695703 ] Ernesto Reinaldo Barreiro commented on WICKET-6288: --- No need to be so unrespectful... you are talking to the persons that maintain something you use for free. It takes 5 minutes to create a quickstart. Copy your classes there, zip it and attach it to the issue. > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug >Reporter: Dmitry Malyshev > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > 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)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15695657#comment-15695657 ] Dmitry Malyshev commented on WICKET-6288: - I can not call "statelessLink", it is visible link, VISIBLE! Did you see it? Did you understand? Please read carefully, and run the example. Are you a programmer? Just run the example, and you will see with your own eyes. > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug >Reporter: Dmitry Malyshev > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > 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)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15695636#comment-15695636 ] Martin Grigorov commented on WICKET-6288: - Please create a proper quickstart (http://wicket.apache.org/start/quickstart.html). It makes it much easier for us to debug issues. But as I said - I don't see how an invisible link could be clicked in the browser. > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug >Reporter: Dmitry Malyshev > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > 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)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15695622#comment-15695622 ] Dmitry Malyshev commented on WICKET-6288: - Did you run this example? Try please. Even onClick() not called. > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug >Reporter: Dmitry Malyshev > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > 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)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15695434#comment-15695434 ] Martin Grigorov commented on WICKET-6288: - Priority "Critical" means that you cannot even start the application. > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug >Reporter: Dmitry Malyshev > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > 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)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15695436#comment-15695436 ] Martin Grigorov commented on WICKET-6288: - It is not very clear to me how something that is not rendered (i.e. invisible) is supposed to be used by the user ? > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug >Reporter: Dmitry Malyshev > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > 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)
[jira] [Commented] (WICKET-6288) StatelessLink not working
[ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15695433#comment-15695433 ] Sven Meier commented on WICKET-6288: Could you be more specific on 'not working' please? What do you expect to happen, what does/does not happen. > StatelessLink not working > - > > Key: WICKET-6288 > URL: https://issues.apache.org/jira/browse/WICKET-6288 > Project: Wicket > Issue Type: Bug >Reporter: Dmitry Malyshev > > Example: > {code:title=TestPage.html|borderStyle=solid} > > http://wicket.apache.org/;> > > statelessLink > statefullLink > > > {code} > {code:title=TestPage.java|borderStyle=solid} > 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(); > } > } > {code} > 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)