[ 
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

        

Reply via email to