You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michael Kurz (JIRA)" <de...@myfaces.apache.org> on 2011/09/23 10:34:33 UTC
[jira] [Created] (MYFACES-3319) Make create AjaxBehavior accessible
in AjaxHandler
Make create AjaxBehavior accessible in AjaxHandler
--------------------------------------------------
Key: MYFACES-3319
URL: https://issues.apache.org/jira/browse/MYFACES-3319
Project: MyFaces Core
Issue Type: Improvement
Components: JSR-314
Affects Versions: 2.1.3
Reporter: Michael Kurz
Priority: Minor
I'm currently trying to create a custom ajax tag that is based on f:ajax but supports an additional attribute. For this, I wanted to create a new tag handler that extends AjaxHandler.
What I found out is, that it is VERY hard to do so. The creation of the AjaxBehavior is buried inside applyAttachedObject(). The only reasonable way I found to set an additional value expression on the created AjaxBehavior is to pass in a wrapped FacesContext/Application from the derived class.
It would be so much easier, if, for instance, creating the behavior would be done in a protected method. Then the behavior would be accessible in derived classes.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MYFACES-3319) Make create AjaxBehavior accessible
in AjaxHandler
Posted by "Michael Kurz (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Kurz updated MYFACES-3319:
----------------------------------
Status: Patch Available (was: Open)
> Make create AjaxBehavior accessible in AjaxHandler
> --------------------------------------------------
>
> Key: MYFACES-3319
> URL: https://issues.apache.org/jira/browse/MYFACES-3319
> Project: MyFaces Core
> Issue Type: Improvement
> Components: JSR-314
> Affects Versions: 2.1.3
> Reporter: Michael Kurz
> Priority: Minor
> Attachments: MYFACES-3319.patch
>
>
> I'm currently trying to create a custom ajax tag that is based on f:ajax but supports an additional attribute. For this, I wanted to create a new tag handler that extends AjaxHandler.
> What I found out is, that it is VERY hard to do so. The creation of the AjaxBehavior is buried inside applyAttachedObject(). The only reasonable way I found to set an additional value expression on the created AjaxBehavior is to pass in a wrapped FacesContext/Application from the derived class.
> It would be so much easier, if, for instance, creating the behavior would be done in a protected method. Then the behavior would be accessible in derived classes.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MYFACES-3319) Make create AjaxBehavior accessible
in AjaxHandler
Posted by "Leonardo Uribe (Updated) (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe updated MYFACES-3319:
------------------------------------
Resolution: Fixed
Fix Version/s: 2.1.4
2.0.10
Assignee: Leonardo Uribe
Status: Resolved (was: Patch Available)
Thanks to Michael Kurz for provide this patch
> Make create AjaxBehavior accessible in AjaxHandler
> --------------------------------------------------
>
> Key: MYFACES-3319
> URL: https://issues.apache.org/jira/browse/MYFACES-3319
> Project: MyFaces Core
> Issue Type: Improvement
> Components: JSR-314
> Affects Versions: 2.1.3
> Reporter: Michael Kurz
> Assignee: Leonardo Uribe
> Priority: Minor
> Fix For: 2.0.10, 2.1.4
>
> Attachments: MYFACES-3319.patch
>
>
> I'm currently trying to create a custom ajax tag that is based on f:ajax but supports an additional attribute. For this, I wanted to create a new tag handler that extends AjaxHandler.
> What I found out is, that it is VERY hard to do so. The creation of the AjaxBehavior is buried inside applyAttachedObject(). The only reasonable way I found to set an additional value expression on the created AjaxBehavior is to pass in a wrapped FacesContext/Application from the derived class.
> It would be so much easier, if, for instance, creating the behavior would be done in a protected method. Then the behavior would be accessible in derived classes.
--
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