2 Replies Latest reply: Apr 29, 2013 5:04 AM by Vinitha G RSS

    Information Declarative components

    Vinitha G
      Hi,

      Am in the way of learning the implementation of declarative component. Am using JDEV 11.1.2.0.0 and requirement goes as follows.. Need to implement an adf table and the requested View object should be populated. All that the developer would do is just to drag and drop the implemented declarative component .

      Please suggest samples , links and docs to understand the concept of declarative components and implement the same to meet up the requirement.

      Thanks and Regards,
      Vinitha G

      Edited by: Vinitha G on Apr 26, 2013 4:04 AM
        • 1. Re: Information Declarative components
          Frank Nimphius-Oracle
          Hi,

          declarative components are components and don't ship with a model. This means that View Objects and Data Controls - as well as bindings - are not part of a declarative component. You can though bind a table in a declarative component to a declarative component attribute which then at design time is configured with the EL referencing a TreeBinding binding in the consuming page's PageDef file (ADF binding file).

          So what you can do is:

          1. Drag a table to a page and look at the code that is generated. All EL uses in the table (except #{row. ...} should be changed with an attribute reference (in declarative components, you create a custom attribute that you can reference as #{attrs.<name>}. So the table model would reference an attribute like #{attrs.model}. The "model" attribute is exposed on the declarative component and you bind it to a tree binding in ADF like #{bindings.treeBindingName.collectionModel}

          Frank
          • 2. Re: Information Declarative components
            Vinitha G
            Hi Frank,

            Thanks for the reply and beautiful explanation. Can you please help me with some sample and docs to have a better understanding on the same.

            Thanks and Regards,
            Vinitha G