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

Allow f:event listener="#{cc.preRenderViewCallback}" work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.8, 2.1.2
    • JSR-314
    • None

    Description

      This is one of the "most wanted" hacks to do. Long time ago I tried it without success, but now I finally founded and alternative. Following the same principle of MYFACES-3287, we can use a "find component expression" to locate the composite component later and setup the environment correctly. As with MYFACES-3287 if the component is inside a datatable, the code on the listener will only execute once, and not per row, which is something expected and the affected properties on the component has the same limitations.

      The other part of the hack include use a listener to PostAddToViewEvent to subscribe the listener after the tree is built, so we can calculate the "find component expression" correctly.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: