Create custom declarative component like container

Hi all,
I'm using Jdev 12c.
I wanna create a custom declarative component like this:
container.jsf :
<af:panelGroupLayout id="#{attrs.Name}_VIEWPORT" layout="scroll" binding="#{attrs.Binding}"
                         inlineStyle="position:absolute;width:#{attrs.ViewportWidth}px;height:#{attrs.ViewportHeight}px;top:#{attrs.ViewportY}px;left:#{attrs.ViewportX}px;border:1px solid;background:#c6c6ff;z-index:#{attrs.ZIndex};">
        <af:panelGroupLayout id="#{attrs.Name}" layout="scroll"
                             inlineStyle="position:absolute;width:#{attrs.Width}px;height:#{attrs.Height}px;">
        </af:panelGroupLayout>
    </af:panelGroupLayout>
<af:xmlContent>
        <afc:component>
            <afc:description/>
</af:xmlContent>
I use this custom component to group some child components like this:
<abc:container ...>
     <af:inputText ... />
     <af:inputText ... />
</abc:container>
But the things is in Java code, I cannot get RichInputText components :
this is my function:
    private void getFacetAndChild(UIComponent parent) {
        Iterator childrens = parent.getFacetsAndChildren();
        while (childrens.hasNext()) {
            UIComponent child = (UIComponent)childrens.next();
            System.out.println("Log child >> " + child);
            getFacetAndChild(child);
this function only print the second RichPanelGroupLayout.
Any ideas to help me to get all RichInputText ?
Thanks and Best Regards!

Hi All,
I found the solution. Just add one facet to Custom Container
<af:panelGroupLayout id="#{attrs.Name}_VIEWPORT" layout="scroll" binding="#{attrs.Binding}" 
                         inlineStyle="position:absolute;width:#{attrs.ViewportWidth}px;height:#{attrs.ViewportHeight}px;top:#{attrs.ViewportY}px;left:#{attrs.ViewportX}px;border:1px solid;background:#c6c6ff;z-index:#{attrs.ZIndex};"> 
        <af:panelGroupLayout id="#{attrs.Name}" layout="scroll" 
                             inlineStyle="position:absolute;width:#{attrs.Width}px;height:#{attrs.Height}px;"> 
                       <af:facetRef facetName="child"/>
        </af:panelGroupLayout> 
    </af:panelGroupLayout> 
<af:xmlContent> 
        <afc:component> 
            <afc:description/> 
</af:xmlContent> 
And the used page:
<abc:container ...>
     <f:facet name="child">
          <af:inputText ... />
          <af:inputText ... />
     </f:facet>
</abc:container>
Maybe this solution will help others to create a custom container
Thanks and Best Regards!

Similar Messages

  • How to create the Declarative Component?

    Hi,
    I am using jdev 11g Release 2.
    I want to create reusable component. So I want to create a declarative component.
    Please let me know some sample and study materials.
    Regards,
    Ragu

    another examples can be found in these links:
    Missing In or Out Parameter at Index 1
    http://andrejusb.blogspot.com/2009/10/custom-declarative-components-in-adf.html
    http://download.oracle.com/docs/cd/E17904_01/web.1111/b31973/af_reuse.htm#CACBFGFC

  • Bonded Warehouse: Cannot create Customs Declaration

    Does anyone have any experience with Bonded Warehouse that they could help with the following?
    I have setup Bonded Warehouse in GTS, but am unable to create any Customs Declarations from the PO/Goods Receipt. After creating the PO, Delivery, and Goods Receipt in R/3, I am able to see the corresponding entry in the "Display Customs Declaration/Goods Receipt Quantities" report in GTS, however it does not appear in the "Display Assigned Logistics Documents from Worklist" and I cannot create the Customs Declaration for it.
    Does anyone have any ideas that could help with this? Thanks!

    Hi Tom
    This one is a fairly old thread that you had initiated. I am now in a similar situation in our project where we are trying to configure CWH and are not able to create customs declaration. The worklist shows the status as 'Customs declaration not needed'. Did you find any way out on this issue you faced? Please let me know.
    Regards

  • How to create custom MXML component accepting other MXML componenents as children

    How can I create an MXML component that when I use it in the "main" MXML, accepts other MXML components...
    For example:
    <s:WindowedApplication>
         <myComponent>
              <otherMXMLcomponent></otherMXMLcomponent>
              <otherMXMLcomponent></otherMXMLcomponent>
              <otherMXMLcomponent></otherMXMLcomponent>
              <otherMXMLcomponent></otherMXMLcomponent>
         </myComponent>
    <s:WindowedApplication>
    How do you declare such a component?
    Thanks in advance

    Bhè non so se ho capito .. ti spiego la prova che ho fatto io.. Dunque, io ho provato a creare un mio componente Custom e a metterci dentro degli oggetti miei di esempio.. Il componente di esempio si chiama mioComponenteCustom e all'interno è strutturato in questo modo:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx">
    </s:Group>
    Al posto dei puntini ci metto quello che voglio.. nel tuo caso i tuoi 2 famosi pulsanti..
    All'esterno chiamerò :
    <mioComponenteCustom>
         <s:DataGrid>
         </s:DataGrid
    </mioComponenteCustom>
    Dove DataGrid è un componente a caso qualsiasi.. Ora, con questa struttura non ricevo errori e sembra andare bene..
    Dimmi se ho capito bene o volevi fare altro..
    Max

  • Create custom Manager (PopUpManager-like)

    Hello People. I wonder how to create a my own custom class, accessible from any location in my project, like the PopUpManager of mx.managers, without using the 'new' command.
    for example, MyCustomManager.showAssistor (like PopUpManager.createPopUp)

    oops, sorry men i've got the solution.
    1. The Constructor does not have to exists in the Class definition file
    2. All the var and function declarations must have a static word
    public static function myFunk():void {}
    public static var myVar:String;
    once we imported the class into document, we can access all of its static properties and functions without instantiate it. wooof! Cool!

  • How to use standard classes to create custom modulepool program like ME21N

    I am at the Starting Point of doing a classical dynpro program via Abap Objects which address all controls with MVC Architecture .So i debugged the standard ME21n transaction to find out how i can start with. I came across this interface which has no Attributes and Methods.I wondered y .Thats y i posted a Question .I also seen a lot of Standard classes
    CL_TABLE_VIEW_MM
    CL_BASIC_MODEL_VIEW_MM
    CL_COMPOSITE_SCREEN_VIEW_MM
    CL_SCREEN_VIEW_MM
    CL_TABLE_VIEW_MM
    CL_TABSTRIP_VIEW_MM
    CL_TC_BUTTON_VIEW_MM
    CL_TC_ITEM_VIEW_MM
    CL_TOGGLE_VIEW_MM
    CL_VALUE_MODEL_VIEW_MM
    and much more for Model and Controllers ..Can u plz guide me how i can make use of this classes effictively in my custom module pool programming

    I think all these classes serve the purpose of embracing the basic ones and are used specificalty in MM module.
    If you want to create similar module pool program with nice expand/collapse buttons in relation to subscreens please refer the some tips [here|expand/collapse button functionality on module pool screen;
    Also there are transactions like BIBS, DWDM which you can follow the examples from. I think SAP has covered all GUI controlls there so you can create really complex programs with various GUI controlls independently of module used for.
    Of course you can still stick to classes you mentioned but I think the better is to learn some standard approach of creating such screens, then if you feel more advanced go for using module specific ones if you really need that.
    Regards
    Marcin

  • Creating custom jsp component - Finding the jsp tag descriptor htmlb.tld

    Hi,
    I want to create my own TabStrip component by extending the SAP Standard HTMLB components TabStrip and TabStripItem. I've found the classes that I need to extend under the jar below, but I can't find the htmlb.tld file. I need to make a copy of this file to create a tag descriptor for my new components in order to use them in my JSP.
    The classes I am using are in the com.sapportals.htmlb package, located in the file
    ECLIPSE_HOME/plugins/com.sap.tc.ap_2.0.0/comp/SAP_JTECHS/DCs/sap.com/com.sapportals.htmlb/_comp/gen/default/public/default/lib/java/htmlb.jar
    I've searched the jars in the "plugins" directory of NWDI but can't find it (although I did find some other tld files). I'm guessing it must be somewhere on the poertal, but where?
    Please help
    Thanks
    Any help would be greatly appreciated.

    If you have access to your portal's installation box - then you can get this TLD at the following paths:
    <Installation Drive>:\usr\sap\<SID>\<instance no>\j2ee\cluster\server0\apps\sap.com\com.sapportals.htmlb.ear\servlet_jsp\htmlb\root\WEB-INF
    OR
    <Installation Drive>:\usr\sap\<SID>\<instance no>\j2ee\cluster\server0\apps\sap.com\com.sapportals.htmlb.ear\servlet_jsp\htmlb\root
    OR
    <Installation Drive>:\usr\sap\<SID>\<instance no>\j2ee\cluster\server0\apps\sap.com\com.sap.engine.services.webservices.tool\servlet_jsp\uddiclient\root\WEB-INF
    Hope this helps!!!
    Shubhadip

  • Creating custom variable I/O container

    In reference to: http://zone.ni.com/reference/en-XX/help/371361J-01/lvioscanhelp/blockioaccess/
    I am attempting to optimize performance when reading/writing I/O variables through the scan engine. Since I have many variables with different data types, I cannot access the variable container directly as in the example above. However, I have variables of identical data types which exist across several variable containers which I would like to access in this method.
    My question: Is it possible to construct a variable container from muliple variable objects so that I can use the method above for optimization?

    Hi psears,
    If I understand correctly, you have I/O variables of varying data types that you would like to be able to read/write using the same code.  To do that, you would need to programmatically determine the data type associated with each I/O variable and supply it before the container is accessed.  This is unfortunately not a possibility, because the Scanned Variable Read function requires a data type input, as do all of the shared variable access methods in LabVIEW.  
    You could, however, programmatically list all I/O variables and "sort" the names of variables with like data types into arrays.  This would require you still needing to know what the data type of each variable is, but if the number and arrangement of variables do not change this may only need to be constructed once.  After you have arrays of like variable names, you could re-use the method you are looking into in an auto-indexed FOR loop to read all like variables.  I agree that this is not the cleanest method that could be conceptualized, but I thought I would offer the idea to see if it could help with your thought process.  
    Additionally, the NI Distributed System Manager should be able to tell you what the data type for each I/O variable is a fair amount quicker than searching through the hardware in the Project Explorer window of your application.  You may need to ensure that you have the NI System State Publisher installed on your hardware.  
    Let me know if that helps and whether you have any further questions!
    | Zach J. | Applications Engineer | National Instruments |

  • Error in creating custom SSIS component in sql server 2014

    ===================================
    The component could not be added to the Data Flow task.
    Could not initialize the component. There is a potential problem in the ProvideComponentProperties method. (Microsoft Visual Studio)
    ===================================
    Error at Data Flow Task [SSIS.Pipeline]: Component , clsid {33D831DE-5DCF-48F0-B431-4D327B9E785D} failed to initialize due to error 0x80131600 "".
    Error at Data Flow Task [ [5]]: The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "".
    ===================================
    Exception from HRESULT: 0xC0048021 (Microsoft.SqlServer.DTSPipelineWrap)
    Program Location:
       at Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass.ProvideComponentProperties()
       at Microsoft.DataTransformationServices.Design.PipelineTaskDesigner.AddNewComponent(String clsid, Boolean throwOnError, Boolean select)
    What was the possible causes.Please help me.This is irritating stuff

    Yes DLL's were placed in pipelinecomponents folder and GAC also.is there any chance for having issue in development environment?
    Hi Mahesh,
    Have you install a version of SQL Server Integration Services (SSIS) that is earlier than SSIS 2014 installed on your computer? What's the detail version of your SQL Server Data Tool?
    In addition, please help to collect clsid {33D831DE-5DCF-48F0-B431-4D327B9E785D} information in registry.
    If you have any feedback on our support, please click
    here.
    Elvis Long
    TechNet Community Support

  • Access InputText Value in Declarative Component

    Hi,
    I have created a declarative component that contains an inputText component:
    <af:inputText label="#{attrs.ucitLabelText}" id="dc_it1" contentStyle="text-transform:uppercase;" converter="StringAsUppercase"/>
    When I use the declarative component on a page, is there any way to easily access the value of its inputText through the page backing bean? The declarative component is bound to the page, but what method can I use to access the inputText value?
    Thanks,
    Brad

    Thanks.
    I also figured out that I can simply do the following:
    When creating the declarative component...
    - Add an attribute to the declarative component (let's call it "inputValue")
    - Assign the inputValue attribute to the inputText value.
    When using the declarative component on a page...
    - Create a String property in the page's backing bean
    - Assign that property to the declarative component's inputValue attribute
    Then I can access the backing bean property to get the inputText value.
    Brad

  • Create Custom InDesign Links inside CSAW like in ExtendedLink

    Hi
    I am wondering if it is possible to create custom InDesign links like in the InDesign SDK's ExtendedLink plugin inside a Flash Extension using CS InDesign SDK (csaw_indesign.swc) ?
    Looking at the CSAW documentation I can only obtain Link information but not create a link let alone to create a custom one because of the missing LinkResource.
    Cheers - Andy Schaefer

    Hi --
    I'm using iTunes 11.0.4 on OSX 10.8.4 and am having a hard time following your instructions to create a ringtone from a snippet of a .mp3 file using iTunes:
    1) Select a favourite song in iTunes program to be made into Ringtone... CHECK!
    2) "Get Info" on that song name and make any 0:30 seconds portion of that song.... CHECK !
    3) Right-click or Ctrl-Click again on same song name and select "Create AAC Version" to create an .m4a file... PROBLEM!
    It's when I hit Step 3 that I have a problem -- my "right click menu" at that point looks like this:
    There's no option to "create AAC version." Nor does this option appear anywhere in iTunes that I can find.
    It really shouldn't be this confusing to create a freaking ringtone. HELP PLEASE!

  • 11.1.2: Declarative-component problem!

    Hi!
    We're just evaluating 11.1.2. I converted some declarative components to 11.1.2/Facelets style, but I am running into problems.
    As a test, I created some new components from scratch, confirming the issue.
    I create a declarative component and choose "Facelets" and choose "Use custom component class".
    JDeveloper then creates an entry in the jsf:
            <afc:component>
                <afc:display-name>testComponent</afc:display-name>
                <afc:component-class>component.TestComponent</afc:component-class>
                <afc:facet>
    ....After deployment, I just get an error. Facelets is reporting that there is no tag for "component-class", and examining component.taglib.xml in adf-richclient-impl-11.jar shows: Facelets is right! There is none!
    Now, I cannot just remove the component-class entry. If I do that, then deployment works, but then JDeveloper creates during compilation a wrong "TestComponentComponent" class (which should extend TestComponent but doesn't!).
    It just extends RichDeclarativeComponent, just like my original TestComponent class. All code in TestComponent is not available at runtime.
    RichDeclarativeComponent
       |
       |
    TestComponent    <---- This class is now for the birdsand
    RichDeclarativeComponent
       |
       |
    TestComponentComponent      <----- That class is used by the handlerIf I leave the component-class entry in, then - as expected - I get the correct hierarchy:
    RichDeclarativeComponent
       |
       |
    TestComponent
       |
       |
    TestComponentComponentbut the component doesn't run.
    So, now what? This cannot be the way it's supposed to work, can it. Manually edit the "component-class" stuff out of the jsf in the jar after deployment!?
    Edit: Created SR 3-3856944401: Facelets-based declarative component with custom component class not working
    Sascha
    Edited by: Sascha Herrmann on Jun 17, 2011 6:41 PM

    This is bug 12717940.
    Sascha

  • [ADF-11.1.2.2] Method on Custom declarative Compoment load

    Hi,
    I made a custom declarative component. Through Attribute, Parent page is passing some values but I need to process that attribute variable and display the result on page.
    For that I need to have a method which will get called before component is rendered completely so that I can process attribute value and generate result which can be displayed on component output.
    I tried different combination, like getting attribute value using ADFUtil.evaluateEL in back end bean constructor, Set method of binding of one of field on component... but every time I get null value. But if I have button with ActionListener on bean, I get proper value on click on component button.
    I also have enabled Custom Component Class while creating new component which creates class with RichDeclarativeComponent as parent class. But Still I am unable to get help from parent methods for my requirement. I override different methods but none of them are called on page load through which I can fetch attribute values...
    Can you please let me know how to call a method on component load on parent page which when called, can fetch the passed value of Attribute variable ?

    Hi,
    as you want to display this on the component UI, use e.g. an af:outPutText and bind its value property to a managed bean setter/getter pait. In the getter method query the attributes you receive from the consuming page
    Frank

  • Binding property of a Panel header in Declarative Component

    Hi,
    I created a Custom Declarative component, which has a panel header, i wanted to expose the binding property of the panel header so that the users can add partial triggers to it programaticaly,
    so i added a attribute of type RichPanelHeader, and used it in bindings of the panel header, but i am getting following error,
    Unserializable value:RichPanelHeader[UIXFacesBeanImpl, id=dc_cnt_ph1] for key:PropertyKey[phBinding] in console,
    and the value in bean is null.
    the code used in Panel Header of Declarative component,
    <af:panelHeader text="#{attrs.phScreenHdrTxt}" id="dc_cnt_ph1"
                          helpTopicId="#{attrs.phScreenHdrHelpTopicId}"
                          rendered="#{attrs.phScreenHdrRendered}"
                          inlineStyle="#{attrs.phScreenHdrInlineStyle}"
                          partialTriggers="#{attrs.phScreenHdrPartialTrigger}"
                          binding="#{attrs.phBinding}">
          <attribute>
              <attribute-name>phBinding</attribute-name>
              <attribute-class>oracle.adf.view.rich.component.rich.layout.RichPanelHeader</attribute-class>
            </attribute>   code used in the consumer app.
    <app:Container id="c2" phScreenHdrTxt="tab1" phBinding="#{TestBean.panelHeader}">
        <f:facet name="body">
          <af:group id="g1">
            <af:outputText value="Tab1" id="ot1"/>
            <af:commandButton text="Refresh Panel Header" id="cb1"
                              actionListener="#{TestBean.refreshPh}"/>
          </af:group>
        </f:facet>
      </app:Container>
    public class TestBean  implements Serializable{
      private RichPanelHeader panelHeader;
      public void refreshPh(ActionEvent actionEvent) {
        panelHeader.setText("Changed");
        AdfFacesContext.getCurrentInstance().addPartialTarget(panelHeader);
      public void setPanelHeader(RichPanelHeader panelHeader) {
        this.panelHeader = panelHeader;
      public RichPanelHeader getPanelHeader() {
        return panelHeader;
    }is there any solution or way to expose the binding property of any component in a custom declarative component?

    Hi,
    as a last resort, try javax.faces.component.UIComponent as the component class. It seems that none of the UI components implements serializable. javax.faces.component.UIComponent is the JSF base class that they all use.
    Let me know if this works. If not, I think I have another option that mayl do
    Frank

  • Dynamic Declare Component cannot find property

    We currently have one main page calls a DDC(Dynamic declarative component) page fragment to create/update a record in database. The main page pass in a key to DDC when it loads DDC. The DDC binds to a view object with bind variable (get value from the passed key and load data from table) and several LOV attributes. Once user clicks submit button in main page, we wish that all the fields displayed in DDC could be committed to a database table to save.
    I use 11.1.1.5.
    In order to assign the bind variable of VO, we wrote a method in Application Module and make it invoked as the first executable when the main page is loaded. The deployment is fine. However, the runtime always thrown some exception to complain it cannot find property definition like this:
    ####<Aug 15, 2011 6:32:24 PM CDT> <Warning> <oracle.adfinternal.view.faces.lifecycle.LifecycleImpl> <curmailts1-corp> <AdminServer> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <6b1af60b3a40d50a:-6c52e935:131cfc2d522:-8000-000000000000024c> <1313451144494> <BEA-000000> <ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.el.PropertyNotFoundException: Target Unreachable, 'WorkDescription' returned null
         at com.sun.el.parser.AstValue.getTarget(Unknown Source)
         at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
         at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:334)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
    Questions: 1) Why my method in Application Module not called?
    2) Whether DDC is a right solution for our use case? Any suggestion or sample are welcomed!
    Thanks,

    Hi,
    I appreciate if you can show your code, but before that, make sure if you're following this tip below:
    "Declarative Components are regular JSF components except that they are built as a composite out of existing ADF Faces components. Declarative components cannot have a PageDef file associated with it and instead use value or method attribute to communicate with the consuming page. When creating a declarative component, the attrs implicit object is defined that allow you to reference the component's exposed value attribute from ADF Faces components within.
    An input text field contained in an declarative component may reference a value attribute "compValue" defined on the declarative component by using the following EL
    #{attrs.compValue}
    The declarative component compValue attribute then would us an EL reference like shown next to read/write values from or to the ADF binding layer:
    #{bindings.attribute_name.inputValue}"
    (Oracle ADF Code Corner)
    Regards,

Maybe you are looking for

  • Passing String Array from Java to PL/SQL

    Hi, We are having couple of packages which have been written in PL/SQL . I would like to know how i can send arrays as input parameters from Java to any stored proc in Oracle. I am having Oracle 8i as the DB and am using Websphere RSA for deployment

  • I need Fusion help creating a demo of BRM JCA Resource Adapter

    I need Fusion help creating a demo of BRM JCA Resource Adapter. I know BRM well but am clueless with Fusion. I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM. My BRM docs sa

  • ADF swing: JTabbedPane does not display column names.

    Hi all, I have created an ADF Panel, which allows the user to run a few simple queries against an Oracle database done using ADF view objects and ADF view links and ADF application module. From the data control area I drag and drop a view link contai

  • List box in screen painter

    Hi I have created a screen in menu painter in which there are 3 drop down listbox . Each list box field has a domain created for it and the domain is assigned a value table. the value table contains data that data should be populated to list box. Now

  • Foldingathome-smp 6.29-1 seg fault after system update

    did a system update which changed the folowing packages. (copied from pacman log) [2010-06-14 00:20] synchronizing package lists [2010-06-14 00:20] starting full system upgrade [2010-06-14 00:22] removed xz-utils (4.999.9beta-2) [2010-06-14 00:22] re