[
https://issues.apache.org/jira/browse/WICKET-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462462
]
Johan Compagner commented on WICKET-86:
---------------------------------------
i think this one can be closed, stateless links/forms and so on is already
greatly improved in 1.3 and 2.0
it works now much better.
The problem still is if you implemente the ILinkListener interface yourself.
You have to also override the getStatelessHint() method.
because by default all components are stateless and only the default link/form
and behaviours are statefull..
But martijn knows if this still is a problem or not i guess
> Stateless components everywhere breaks existing applications
> ------------------------------------------------------------
>
> Key: WICKET-86
> URL: https://issues.apache.org/jira/browse/WICKET-86
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3
> Reporter: Martijn Dashorst
> Assigned To: Johan Compagner
>
> In our application we just upgraded to 1.3, and the stateless components
> break urls on bookmarkable pages.
> These are url's generated on a DataView#Item, using
> component.urlFor(ILinkListener.INTERFACE);
> CharSequence urlForLink = LinkItem.this.urlFor(ILinkListener.INTERFACE);
> return "javascript:location.href='" + urlForLink + "';";
> Wicket 1.3:
> javascript:location.href='/vocus/app?wicket:bookmarkablePage=:nl.topicus.iridium.web.gui.leerling.LeerlingZoekenPage&wicket:interface=:2:leerlingen:3::ILinkListener';
> Wicket 1.2:
> javascript:location.href='/vocus/app?wicket:interface=:3:leerlingen:3::ILinkListener';
> The 1.3 version doesn't work for paged requests. The default of setting the
> components to stateless breaks in this case our application.
> The workaround for this particular component is to override
> 'getStatelessHint()' and return false in it. However we are afraid more
> components will break silently.
> In the logs we see:
> 11:39:45,103 [http-8080-Processor24] INFO
> wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:304)
> : component not enabled or visible, redirecting to calling page, component:
> null
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira