You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Christian Huber (JIRA)" <ji...@apache.org> on 2011/06/30 22:17:28 UTC
[jira] [Created] (WICKET-3854) Not all
IComponentConfigurationBehavior methods are called
Not all IComponentConfigurationBehavior methods are called
----------------------------------------------------------
Key: WICKET-3854
URL: https://issues.apache.org/jira/browse/WICKET-3854
Project: Wicket
Issue Type: Bug
Components: wicket-core
Affects Versions: 1.4.17
Environment: Windows XP Professional 2002 SP3 German
Reporter: Christian Huber
I implemented a subclass of IComponentConfigurationBehavior and added this behavior to a component in my application. Unfortunately not all of the callbacks provided by the interface are called during building and rendering the component.
When adding the behavior to a subclass of the Link component only the following methods are called: isTemporary, bind, isEnabled and detach
When adding the behavior to a Label instance getStatelessHint is also called.
But callbacks like beforeRender, afterRender, onConfigure etc are never called.
I created a quickstart to show this effect, when running the example Start class and accessing the page with a browser the default quickstart page gets shown. The label has a behavior attached that writes a line to System.out for each invocation of one of it's method simply showing the methods name.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (WICKET-3854) Not all
IComponentConfigurationBehavior methods are called
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-3854.
-----------------------------------
Resolution: Invalid
Assignee: Igor Vaynberg
your test behavior returns false from its isEnabled(Component) method, thus all the relevant methods are not called on it.
> Not all IComponentConfigurationBehavior methods are called
> ----------------------------------------------------------
>
> Key: WICKET-3854
> URL: https://issues.apache.org/jira/browse/WICKET-3854
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.4.17
> Environment: Windows XP Professional 2002 SP3 German
> Reporter: Christian Huber
> Assignee: Igor Vaynberg
> Labels: behavior, wicket
> Attachments: behavior.zip
>
>
> I implemented a subclass of IComponentConfigurationBehavior and added this behavior to a component in my application. Unfortunately not all of the callbacks provided by the interface are called during building and rendering the component.
> When adding the behavior to a subclass of the Link component only the following methods are called: isTemporary, bind, isEnabled and detach
> When adding the behavior to a Label instance getStatelessHint is also called.
> But callbacks like beforeRender, afterRender, onConfigure etc are never called.
> I created a quickstart to show this effect, when running the example Start class and accessing the page with a browser the default quickstart page gets shown. The label has a behavior attached that writes a line to System.out for each invocation of one of it's method simply showing the methods name.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (WICKET-3854) Not all
IComponentConfigurationBehavior methods are called
Posted by "Christian Huber (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Huber updated WICKET-3854:
------------------------------------
Attachment: behavior.zip
quickstart to reproduce the problem
> Not all IComponentConfigurationBehavior methods are called
> ----------------------------------------------------------
>
> Key: WICKET-3854
> URL: https://issues.apache.org/jira/browse/WICKET-3854
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.4.17
> Environment: Windows XP Professional 2002 SP3 German
> Reporter: Christian Huber
> Labels: behavior, wicket
> Attachments: behavior.zip
>
>
> I implemented a subclass of IComponentConfigurationBehavior and added this behavior to a component in my application. Unfortunately not all of the callbacks provided by the interface are called during building and rendering the component.
> When adding the behavior to a subclass of the Link component only the following methods are called: isTemporary, bind, isEnabled and detach
> When adding the behavior to a Label instance getStatelessHint is also called.
> But callbacks like beforeRender, afterRender, onConfigure etc are never called.
> I created a quickstart to show this effect, when running the example Start class and accessing the page with a browser the default quickstart page gets shown. The label has a behavior attached that writes a line to System.out for each invocation of one of it's method simply showing the methods name.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira