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 (Commented) (JIRA)" <ji...@apache.org> on 2012/02/23 12:01:48 UTC

[jira] [Commented] (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=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