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

Provide API to discover location of document that contains tag definition for a given component

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.1-core
    • 2.1.0-core
    • Components
    • None

    Description

      There are custom tags and components that insert other dynamic contents (i.e subtree of components) into the component tree. The tags for such dynamically added components come from a document fragment that is different from where the inserting component / tags come from. For example in Oracle's ADF component library, there are "region", "pageTemplates" and "declarativeComponent" that does such dynamic includes.

      There is often a need to know the document where the corresponding tag is defined for a given component. A couple of usecases are:
      1. Browser based "page editor" or "Designtime @ Runtime" kind of products where they will need to change the tags in the document when a component is customized / edited at runtime.
      2. Ability to store any runtime customizations for components against the document where its tag belongs. (For example. when the columns of dynamically added table is reordered)

      The inserting tags / components and the inserted components would be used best to determine the location of the fragment document that they include / or where they came from. We need to provide some hooks where the authors of such tags / component are able to provide the URL for the documents given the components.

      This enhancement asks for providing an API that provides URL for such documents, and also to publish the necessary hooks that tag / component authors can implement when then the URL providing API can use.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pudupa Prakash Udupa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: