You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2016/12/01 21:54:59 UTC

[jira] [Commented] (WICKET-6288) StatelessLink not working

    [ https://issues.apache.org/jira/browse/WICKET-6288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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}
> <?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>
> {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)