You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2011/09/20 01:47:08 UTC

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

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


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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Sven Ludwig (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Sven Ludwig (JIRA)" <ji...@apache.org>.
    [ 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:36 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 topic 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

                  
> 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

        

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

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov updated WICKET-4065:
------------------------------------

    Fix Version/s:     (was: 6.0.0-beta2)
                   6.0.0
    
> 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

        

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

Posted by "Igor Vaynberg (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-4065:
----------------------------------

    Fix Version/s:     (was: 1.5.2)
                   1.5.3
    
> 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: 1.5.3
>
>
> 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

        

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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg reopened WICKET-4065:
-----------------------------------


> 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: 1.5.2
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Martin Grigorov (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov updated WICKET-4065:
------------------------------------

    Fix Version/s:     (was: 6.0.0-beta1)
                   6.0.0-RC1
    
> 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-RC1
>
>
> 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

        

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

Posted by "Martijn Dashorst (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martijn Dashorst updated WICKET-4065:
-------------------------------------

    Fix Version/s:     (was: 6.0.1)

Remove fix version as we won't be releasing 6.0.1. Not sure what the status is of this issue, is it fixed? Is it unresolved?
                
> 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
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Igor Vaynberg (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-4065:
----------------------------------

    Fix Version/s:     (was: 1.5.3)
                   1.5.4
    
> 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: 1.5.4
>
>
> 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

        

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

Posted by "Martin Grigorov (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13214549#comment-13214549 ] 

Martin Grigorov commented on WICKET-4065:
-----------------------------------------

Isn't that true for components as well ?
A component may implement ILinkListener, IResourceListener or any other specialization of IRequestListener. In this case this component should be marked as stateful too.
So it is easy to add 
if (this instanceof IRequestListener)
{
	// this component implements a callback interface, so it cannot be stateless
	return false;
}

Is there any sense a Behavior to implement another specialization, e.g. IResourceListener ? If yes then the check in Behavior#getStatelessHint() should be updated to "this instanceof IRequestListener" as well.
                
> 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

        

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

Posted by "Martijn Dashorst (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martijn Dashorst updated WICKET-4065:
-------------------------------------

    Fix Version/s:     (was: 6.0.0)
                   6.0.1
    
> 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.1
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Sven Ludwig (JIRA)" <ji...@apache.org>.
    [ 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:36 PM:
-------------------------------------------------------------

Just a quick note on the side, I experienced this topic 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 known as stateful
- 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

        

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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-4065.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.1

> 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: 1.5.1
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-4065:
----------------------------------

    Fix Version/s:     (was: 1.5.1)
                   1.5.2

> 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: 1.5.2
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Igor Vaynberg (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-4065:
----------------------------------

    Fix Version/s:     (was: 1.5.4)
                   6.0.0
    
> 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

        

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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-4065:
----------------------------------

    Fix Version/s:     (was: 1.5.1)
                   1.5.2

> 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: 1.5.2
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Sven Ludwig (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13289484#comment-13289484 ] 

Sven Ludwig commented on WICKET-4065:
-------------------------------------

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