Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1840

UIXTable and UIXTreeTable should provide hooks into decode/validate/updateChildrenImpl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 1.2.14-core , 2.0.0-beta-1
    • Components
    • None
    • All

    Description

      The Trinidad UIXCollection class provides hooks for processing of stamped/unstamped children and facets during decode/validate/update-model JSF lifecycle phases for any collection components that extent UIXCollection.

      See the abstract method "processFacetsAndChildren" in decode/validate/updateChildrenImpl in UIXCollection. This allows collection component subclasses to perform special logic for handling stamped/unstamped children, and facets during decode/validate/update-model phases.

      UIXTable and UIXTreeTable provide concrete implementations for processFacetsAndChildren. However, both of these components make processFacetsAndChildren final and disallow any subclasses from overriding and customizing the child processing logic.

      The proposal is to make UIXTable and UIXTreeTable child component processing more extensible as follows:

      1) Remove the 'final' keyword from processFacetsAndChildren and allow subclasses to override these methods
      2) Provide more hooks into the existing processFacetsAndChildren processing by making the utility methods in TableUtils (processStampedChildren, processColumnFacets, and processFacets) public.

      Attachments

        1. hooks.patch
          8 kB
          Kamran Kashanian

        Activity

          People

            mattcooper Matt Cooper
            kamrankashanian Kamran Kashanian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: