Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3319

Make create AjaxBehavior accessible in AjaxHandler

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.3
    • 2.0.10, 2.1.4
    • JSR-314
    • None

    Description

      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.

      Attachments

        1. MYFACES-3319.patch
          1 kB
          Michael Kurz

        Activity

          People

            lu4242 Leonardo Uribe
            dr.gonzo Michael Kurz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: