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 (Resolved) (JIRA)" <ji...@apache.org> on 2012/02/09 11:58:59 UTC

[jira] [Resolved] (WICKET-4395) Code using jolira stateless broken on upgrade from 1.5.3 to 1.5.4, snapshot

     [ https://issues.apache.org/jira/browse/WICKET-4395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4395.
-------------------------------------

    Resolution: Not A Problem

The problem is in Jolira's StatelessLink now.
With WICKET-4290 we reworked the url generation for stateless handlers.

A simple fix for your app (in ProductPage.java):

 StatelessAjaxFallbackLink lnk = new StatelessAjaxFallbackLink("stateless-lnk", pageParameters) {
            @Override
            public void onClick(AjaxRequestTarget target) {
                System.out.println("This is working in 1.5.3 and broken in 1.5.4 and 1.5-snapshot");
            }

// THIS IS NEW
	        @Override
	        protected CharSequence getURL()
	        {
		        return urlFor(ILinkListener.INTERFACE, getPage().getPageParameters());
	        }
        };
                
> Code using jolira stateless broken on upgrade from 1.5.3 to 1.5.4, snapshot
> ---------------------------------------------------------------------------
>
>                 Key: WICKET-4395
>                 URL: https://issues.apache.org/jira/browse/WICKET-4395
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.4
>            Reporter: Serban Balamaci
>         Attachments: stateless-qs.tar.gz
>
>
> I have created quickstart. 
> Click on the "Product link" in home page then on next page the "Click stateless link". Exception occurs. 
> Change in pom.xml to wicket 1.5.3 and repeat, code works as expected.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira