You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Ludwig (JIRA)" <ji...@apache.org> on 2012/06/05 17:34:23 UTC

[jira] [Comment Edited] (WICKET-4065) Improve behavior#getStatelessHint() by accounting for the common cases when behaviors are not stateless

    [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13289484#comment-13289484 ] 

Sven Ludwig edited comment on WICKET-4065 at 6/5/12 3:33 PM:
-------------------------------------------------------------

Just a quick note on the side, I experienced this now under Wicket 1.4. I have a component implementing my custom specialization of IRequestListener. The decision logic in RequestCycle.urlFor about which IRequestTarget gets selected for the encoding leads to BookmarkableListenerInterfaceRequestTarget unless one of the following:

- Component.getStatelessHint is overwritten somewhere in the class hierarchy of the concrete Component class with return false
- the Page that contains the Component happens to be known as stateful
- the Page that contains the Component is not bookmarkable

                
      was (Author: sludwig):
    Just a quick note on the side, I experienced this now under Wicket 1.4. I have a component implementing my custom specialization of IRequestListener. The decision logic in RequestCycle.urlFor about which IRequestTarget gets selected for the encoding leads to BookmarkableListenerInterfaceRequestTarget unless one of the following:

- Component.getStatelessHint is overwritten somewhere in the class hierarchy of the concrete Component class with return false
- the Page that contains the Component happens to be stateless
- the Page that contains the Component is not bookmarkable

                  
> Improve behavior#getStatelessHint() by accounting for the common cases when behaviors are not stateless
> -------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4065
>                 URL: https://issues.apache.org/jira/browse/WICKET-4065
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>            Reporter: Igor Vaynberg
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 6.0.0
>
>
> behavior#getStatelessHint() can check if behavior implements IBehaviorListener and if it does return false from stateless hint. also InvalidBehaviorIdException can point to getstatelesshint() being true when it should indeed be false as a probable cause for the error.

--
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