Reusable toolbar with Oracle ADF declarative components(ADf code corner)

Hi All,
Using Jdeveloper 11.1.1.2.0.
Following the how to achieve "reusable toolbar with Oracle ADF declarative components" published here
[http://www.oracle.com/technology/products/jdev/tips/fnimphius/GenericMenuBar/genericMenuBar.html]
But I am not getting any method parameters under JSP Objects -> Components when binding the buttons toolbar menu buttons.Following is the code I have in my GeneralToolbarComponent.jspx
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<af:componentDef var="attrs" componentVar="component">
<af:toolbar id="dc_t1">
<af:commandToolbarButton text="commandToolbarButton 1" id="dc_ctb1"/>
<af:commandToolbarButton text="commandToolbarButton 2" id="dc_ctb2"/>
<af:commandToolbarButton text="commandToolbarButton 3" id="dc_ctb3"/>
<af:commandToolbarButton text="commandToolbarButton 4" id="dc_ctb4"/>
</af:toolbar>
<af:xmlContent>
<component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
<display-name>GeneralToolbarComponent</display-name>
<attribute>
<attribute-name>DataSet</attribute-name>
<attribute-class>java.lang.String</attribute-class>
</attribute>
<component-extension>
<component-tag-namespace>component</component-tag-namespace>
<component-taglib-uri>/VikramLib1</component-taglib-uri>
<method-attribute>
<attribute-name>handleFirstMethod</attribute-name>
<method-signature>void
handleFirstMethod(javax.faces.event.ActionEvent)</method-signature>
</method-attribute>
<method-attribute>
<attribute-name>handleLastMethod</attribute-name>
<method-signature>void
handleLastMethod(javax.faces.event.ActionEvent)</method-signature>
</method-attribute>
<method-attribute>
<attribute-name>handleNextMethod</attribute-name>
<method-signature>void
handleNextMethod(javax.faces.event.ActionEvent)</method-signature>
</method-attribute>
<method-attribute>
<attribute-name>handlePreviousMethod</attribute-name>
<method-signature>void
handlePreviousMethod(javax.faces.event.ActionEvent)</method-signature>
</method-attribute>
</component-extension>
</component>
</af:xmlContent>
</af:componentDef>
</jsp:root>
Thanks
Vikram

Thanks for the link. We are trying to write a template as described on this link - Help on JSF Page Template
However we are running in to issues after defining the attribute.
Can anyone help?
Thanks
Ajay

Similar Messages

  • Oracle Identity and Access Management Suite Plus Integration with Oracle ADF

    Hi All,
    Kindly advice if Oracle Identity and Access Management Suite Plus can be integrated with Oracle ADF based applications to manage the end-to-end lifecycle of user accounts specifically addressing to roles/priviledges and security.
    Request you to share links to documentation where I can study the steps to integrate both the frameworks.
    Looking forward to hear from you soon.
    Best Regards,
    Ankit Gupta 

    Hi Sébastien,
    I came across the below link for the required integrations -
    Oracle&amp;reg; Fusion Middleware Installation Guide for Oracle Identity and Access Management 11g Release 2 (11.1.2) - …
    Oracle&amp;reg; Fusion Middleware Enterprise Deployment Guide for Oracle Identity Management 11g Release 2 (11.1.2) - Co…
    Best Regards,
    Ankit Gupta

  • Mix html div with oracle adf

    Dear all
    i get some template (written in html/css/javasciprt/jquery) from a web designer to create some wep application, i copy the html code and paste it inside an empty jsf page (inside >af:form) in oracle adf 11.1.2.1, and set the javasciprt and css as a resource in the page.
    but when i run this page it's look some different from the original one.
    could any one tell me what the best practice for this issue?? or where i can find some helpful documents ?
    Thanks

    Hi,
    If you use a ADF Faces, this is a JSF(no html).
    you use a ADF components that will be rendered in a browser as a HTML.
    eg, af:panelgrouplayout layout = "vertical" will turn into a HTML “DIV”. (http://martindeh.blogspot.com.es/2011/04/adf-layouts-revisted.html)
    If you have a ADF faces application you should see adf components rendering and create a template with adf faces components and ADF Skins

  • ADF Code Corner 069 : problem with returned value

    Hello,
    I use jdeveloper 11.1.2.2.0 and am trying to follow the sample 69 from ADF Code Croner : how-to create a custom LOV using bounded task flows. http://www.oracle.com/technetwork/developer-tools/adf/learnmore/69-custom-lov-with-btf-276178.pdf
    I have a problem with the returned value. The correct value is returned in the inputText but it seems that it is just at UI level and that binding layer is not impacted. If user click on next button, all others rows show the same value in the inputText (the value chosen before in the lov), and not the correct value which must be value from db.
    How can I solve this problem?
    note : opening the 69-sample, jdeveloper ask me to migrate some files (jpr/jws) from previous version of jdeveloper.
    Edited by: h0s on 8 oct. 2012 06:14

    Yes It happens with the downloaded sample. You can do this test :
    Launch EmployeesForm activity -> Open the LOV and select a department -> click next and see that the department id is the same for all rows.
    jdeveloper 11.1.2.2.0

  • Java.lang.IllegalStateException with ADF Code Corner's 73 tutorial

    Hi Frank,
    I am working on JDEV PS2. I was going through your "73. Hands on – Creating a search form using a POJO WS and the Web Service Data Control" tutorial.
    At the last step I added Sorting and Filtering to the table. When I searched last name with string "ZA" then I am getting below exception:
    <RegistrationConfigurator><handleError> Server Exception during PPR, #1
    java.lang.IllegalStateException
         at oracle.jbo.uicli.binding.JUSearchBindingCustomizer.getViewCriteria(JUSearchBindingCustomizer.java:2106)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryDescriptorImpl.getFilterCriteria(FacesCtrlSearchBinding.java:1271)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer._getFilterCriteria(BaseColumnRenderer.java:1469)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.decodeInternal(BaseColumnRenderer.java:727)
         at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:293)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1121)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:715)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.decodeColumns(BaseTableRenderer.java:1731)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.decodeInternal(TableRenderer.java:127)
         at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:293)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1121)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:715)
         at org.apache.myfaces.trinidad.component.UIXTable.decode(UIXTable.java:137)
         at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:188)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$001(ContextSwitchingComponent.java:39)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$2.run(ContextSwitchingComponent.java:109)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:112)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:813)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1002)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:988)
    Anyone encountered this? With my actual application also I am facing the same issue. I believe this exception occurs when we add "Filtering" to the results table and also if we try to search with some data which is not there in the results table.
    It would be appreciate if someone can guide me on this issue.
    Thanks
    Mahesh
    Edited by: Mahesh.C on Mar 17, 2011 11:27 AM

    I got similar error after I clicked on the pencil to rebind the table and set the propeties and clicked OK.
    I am using 11.1.1.5. What I noticed is in the pageDef the <AttrNames> tag under the <tree had all the items were deleted.
    So I undid the changes and got them back.
    This doesn't explain the java.lang.IllegalStateException but on running got:
    java.lang.NullPointerException
    o.adfdtinternal.view.rich.binding.provider.ADFTableRebindModelProvider.getDefinition(ADFTableRebindModelProvider.java:29)
    But it does indicate an issue with the step.
    Regards

  • ADF Code Corner 64 - Select Many Shuttle. Please help

    Hello all.
    I have developed exactly the same case as the one described in Code Corner 64.
    The only difference is the VO names and the iterators.
    The value of the Shuttle come the below piece of code:
        public Integer[] getSelectedIndxs() {
            selectedIndxs = null;
            selectedIndxList = new ArrayList<Integer>();
            //get all enterprise role for the current selected user role
            DCIteratorBinding aclDciter = ADFUtils.findIterator("ACLvo1Iterator");
            RowSetIterator rsi = aclDciter.getRowSetIterator();
            //get access to the "EnterpriseRolesVOIterator"
            DCIteratorBinding enterpriseRolesIter = ADFUtils.findIterator("EnterpriseRolesVOIterator");
            while(rsi.hasNext()){
                //Get the key of enterprise role of the ACL
                Row rw = rsi.next();
                Key key = new Key(new Object[] { (String)rw.getAttribute("EnterpriseRolesId") });
                enterpriseRolesIter.setCurrentRowWithKey(key.toStringFormat(true));
                int indx = enterpriseRolesIter.getCurrentRowIndexInRange();
                selectedIndxList.add(indx);
            selectedIndxs = selectedIndxList.toArray(new Integer[selectedIndxList.size()]);
            return selectedIndxs;
        }The value of "indx" looks fine in the debugger.
    I have also printed the whole array list at the end, and looks fine.
    The problem is that I get:
    *<SimpleSelectManyRenderer> <_getSelectedItems> Could not find value:12 of type:java.lang.Integer among list of SelectItems*
    *<SimpleSelectManyRenderer> <_getSelectedItems> Could not find value:13 of type:java.lang.Integer among list of SelectItems*
    *<SimpleSelectManyRenderer> <_getSelectedItems> Could not find value:10 of type:java.lang.Integer among list of SelectItems*
    *<SimpleSelectManyRenderer> <_getSelectedItems> Could not find value:11 of type:java.lang.Integer among list of SelectItems*
    etc...
    Should anyone has ANY idea please let me know. I'm going nuts with this...
    Thanks a lot! I really appreciate
    Edited by: apostolosk on Mar 15, 2012 12:06 PM

    Finally the mistake was the returning index. I should had returned the values - not the index.
            ArrayList<String> selectedValues = new ArrayList<String>();
            //get all enterprise role for the current selected user role              //DCIteratorBinding aclDciter = (DCIteratorBinding)bindings.get("ACLvo1Iterator"); 
            DCIteratorBinding aclDciter = ADFUtils.findIterator("ACLvo1Iterator");
            aclDciter.executeQuery();
            RowSetIterator rsi = aclDciter.getRowSetIterator();
            Row[] rw1 = rsi.getAllRowsInRange();
            for (Row rowa : rw1){
            System.out.println("display row" + rowa.getAttribute("EnterpriseRolesId"));
                selectedValues.add((String)rowa.getAttribute("EnterpriseRolesId"));
            return selectedValues.toArray(new String[selectedValues.size()]);Thanks a lot.

  • Integrate with Oracle ADF

    Hi,
    How can I call ADF from Forms and vice-versa?
    How Can I integrate those two technologies??
    JO

    Grant,
    i am also interested in some more information on integration between Forms and ADF-based applications. We are looking into the possibility to integrate new ADF functionality into Forms applications, reusing existing Forms.
    The idea is to start an evolution to ADF instead of a revolution/full migration.
    I found an example on using BPEL and webservices from Forms, but nothing on direct interaction between ADF-pages and Forms, i.e. passing parameters (in both directions), incorporating existing Forms into the ADF pageflow, etc.
    Maybe it's an idea to incorporate this info/demo on the J2EE Application Development for Forms and Designer Developers page (see http://www.oracle.com/technology/products/jdev/collateral/4gl/formsdesignerj2ee.html).
    thanks, Bart

  • Any sample for using Captcha with Oracle ADF ?

    Hi
    Thank you for reading my post
    is there any sample available for using captcha with adf faces ?
    thanks

    Hi,
    nott hat I am aware of. However, I started a project to build a custom JSF component using
    http://jcaptcha.sourceforge.net/
    Not sure when I have this finished, but the goal is to have this working with ADF Faces (not sure if it makes sense to bind the component to ADF though)
    Frank

  • Question about Tutorial: Developing RIA Web Applications with Oracle ADF

    I'm learning about ADF and JDeveloper:
    According to the tutorial, after I've bound the data controls for the top right panel and bottom right panel, the bottom panel should always show the employee selected from the collection above.
    However when I do the instructions, the employee information in the bottom right employee area never changes regardless if I select a different employee in the top panel collection.
    I can't figure out why the top and bottom panels don't link together. I'm using the same View in both panels....
    I'm using Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407
    Thanks in advance for any suggestions!
    Rob

    The mechanism that synch the two section of the page is called partial page rendering.
    It should work if you follow the instructions in the tutorial, but if it doesn't it is quite easy to fix:
    In the structure pane, select the Form component that surrounds the employees update section
    Then look at the properties inspector for a property call partial trigger
    Click the arrow on the right of it to select edit - and navigate your page hierarchy to choose the table component.
    An example is here:
    http://blogs.oracle.com/shay/2008/05/master_with_two_details_on_the.html

  • Tutorial: Developing Applications with Oracle ADF UIX

    I have jdeveloper version 10.1.2.0.0.
    The above tutorial works fine up to the point where I have to create an event handler for the 'edit' button. At this point we are asked to right click on the new event and select 'insert inside event'...............select UIX controller. On my version of jdeveloper there is no UIX controller item. There is a 'UIX servlet' item. If I select this and then follow the instructions I eventually get a '404 not found' error message when I try and run the application.
    The url for the tutorial is http://www.oracle.com/technology/obe/obe_as_1012/j2ee/develop/client/uix/lesson_uix.htm.
    How do I complete the creation of an event handler with my version of jdeveloper.

    create/update should be commited to database due to method "Commit" that you drop into commit data action, and delete won't be commited, you should additionaly create "Commit" button on your page or use another way to commit.

  • J2EE with Oracle ADF Exmple is not working

    Hi Guys
    I am using JDev 9.0.5.2 and just switch the new version
    In "Developing an End-to-End Web Application Using the Default Technology Scope" example
    there is a problem when i Click Edit Link, EditDepartment Page is not opening
    also try to deploy this BrowseDepartment Page with OC4J Connection its not showing this page
    looking fwd

    Initially i was running this Page from Flow Diagram now i did try Right-Click in Navigator window but the result is same EditDepartment is now working
    there is no any error when i click on Edit Link its not working just blink screen and stay there
    i think Edit code is
    ">Edit</a>

  • Developing Rich Web Applications With Oracle ADF Tutorial

    Using J Developer 
    Oracle IDE
    12.1.2.0.40.66.68
    In Part 3 Step 2.2 In the query.jsf page the tutorial reads
    2 Still in the Properties window expand the Behavior node and set the AutoSubmit property to True.
    The problem is the only option listed under Behavior is Landmark. The other properties are not shown including the
    AutoSubmitt which I need to set to True.
    Any Ideas on whats going on?
    Thanks in advance!

    Hi,
    would have been of great help if you provided the link to the tutorial (just for next time). You can see that the focus in the screen shot is on the salary field. The screen shot below then shows the behavior property palette and clearly you can see that there is an autosubmit property. Chances are that you did not put the cursor focus properly on the input text component or the Property Inspector did not refresh. In the latter case, close and re-open the property inspector or select the input text component in Structure Window
    Frank

  • Oracle ADF with Essbase

    Conect essbase with Oracle ADF
    Give me the link
    I knew that can't able create a new connection for essbase, by editing config for essbase we can able to do
    so give me link for editing configuration of essbase in Oracle ADF
    Thanks in advance

    Hello John,
    Thanks for the reply. I can't find any material so that I can aware with JSF introduction (with demos) and ADF Faces. So will you please suggest me some tutorial or demos related to JSF and ADF faces. I passed through the video demos of Oracle ADF homepage but still I can't understand the use of those tags.
    regards,
    Kush
    Edited by: kush on Feb 22, 2012 12:07 AM

  • Oracle ADF with Essbas e

    Conect essbase with Oracle ADF
    Give me the link
    I knew that can't able create a new connection for essbase, by editing config for essbase we can able to do
    so give me link for editing configuration of essbase in Oracle ADF
    Thanks in advance

    Hello John,
    Thanks for the reply. I can't find any material so that I can aware with JSF introduction (with demos) and ADF Faces. So will you please suggest me some tutorial or demos related to JSF and ADF faces. I passed through the video demos of Oracle ADF homepage but still I can't understand the use of those tags.
    regards,
    Kush
    Edited by: kush on Feb 22, 2012 12:07 AM

  • How to do search with LOV+oracle adf

    Hi,
    I m using jdeveloper 11g with oracle adf .As i know that input text with LOV has default search facility. Plz tell me how to make search by using LOV .so that when i click on input text with LOV data should come in form.

    hi
    check this
    http://andrejusb.blogspot.in/2008/02/list-of-values-component-in-search-and.html
    Regards

Maybe you are looking for