Detecting ADFButton as ADF component in OpenScript

Hello,
I want to identify the ADFButton as an ADF component in OpenScript.
In the Object Identification for Oracle ADF Functional there is the web:commandButton tag. But The commandButton component has been deprecated. So the developers are using the button component instead. When I record a script, it will identify the button as "/web:window[@index='0' or @title='title']/web:document[@index='0' or @name='w0']/web:a[@text='Save' or @href='website' or @index='17']" and not as an ADF component. I want to use the absolute_locator to identify the adf-objects.
I have tried to change the name from web:ADFCommandButton to "web:ADFButton" and "web:Button", this didn't make the trick.
Now I replace the path by "/web:window[@index='0' or @title='title']/web:document[@index='0' or @name='w0']/web:div[@id='pt1:r1:1:pt1:b1']". This can't be done by a non-technical person who only uses the recording button.
Does anybody have an idea how to do this?
Thank you for the answer.
Extra-info
OpenScript Version
12.4.0.2 Build 129
ADF Version
Oracle-Version: 12.1.3.0.41.140521.1008
Oracle-Label: JDEVADF_12.1.3.0.0_GENERIC_140521.1008.S
Oracle-Label-JDEVADF: JDEVADF_12.1.3.0.0_GENERIC_140521.1008.S

Anyone from Oracle, can you please confirm if BI Publisher Integration as mentioned in the document (http://download.oracle.com/docs/cd/E15586_01/fusionapps.1111/e20838/jdev.htm#CACGJFJF)
is supported in 11.1.1.5 ?
We have installed all the updates available but we are not getting the BI publisher in technology scope ?
Jdeveloper 11.1.1.5
Please help.
Edited by: Chaitanya Vegesna on Jun 21, 2012 7:34 AM

Similar Messages

  • Detect absolute ID for an ADF component on the page

    Hi All,
    I need to locate an ADF component on the page using ADF Client javascript framework. I'm trying to locate it using following method AdfPage.PAGE.findComponentByAbsoluteId()
    The problem is this component is placed in a page fragment inside page template with several levels of nested naming containers. And I don't have access to the source code of the page template, hence it's quite hard for me to detect the correct absolute id for the component.
    So the question is: how can I know the final value for the absolute id of the component? Can I look it somewhere at runtime? Or if not, is there any alternative way to locate ADF component using just the design time id attribute set for the component?
    Thanks in advance.

    Hi Arun,
    Do you mean the id of the component in the final DOM? I tried to use that but didn't work. In my case, I need to find inputText component on the page. After page is loaded I can select it via Firebug and it has an id like 'pt1:USma:0:MAt1:0:pt1:reportXml::content'. If I then call following method:
    AdfPage.PAGE.findComponentByAbsoluteId('pt1:USma:0:MAt1:0:pt1:reportXml::content')
    I get null. Am I missing something?
    Thanks,
    Maksym

  • How to initialize an adf component before a page loads

    Hi all
    I use JDeveloper 11.1.2.2.0
    I have two pages:
    first page has a link to a second page
    <af:document title="first.jspx" id="d1">
      <af:form id="f1">
        <af:commandLink text="Page 2" id="cl1" action="goToSecondPage" actionListener="#{Bean.handleLinkActionEvent}"/>
      </af:form>
    </af:document>and the second page has an inputText component:
    <af:document title="second.jspx" id="d1">
      <af:form id="f1">
        <af:inputText label="Text" id="it1" binding="#{Bean.inputText}" readOnly="true"/>
      </af:form>
    </af:document>First I load first.jspx and than I click the link. This event is handled in handleLinkActionEvent() method, in which I want to set a value to the inputText component of the second page. But I can't do it, because as expected I get NullPointerException.
    So the question is how to initialize an adf component before a page loads?
    Evgeny Michuk
    Edited by: Evgeny Michuk on Oct 4, 2012 11:30 PM

    Thanks a lot for your replies and links, it gives me some new knowledges.
    I got your approach and achieved the aim for the described situation with tag <f:setPropertyActionListener>:
    <af:commandLink text="Page 2" id="cl1" action="goToSecondPage"
                           actionListener="#{Bean.handleLinkActionEvent}" binding="#{Bean.firstPageLink}">
      <f:setPropertyActionListener target="#{pageFlowScope.text}" value="Hello, World!"/>
    </af:commandLink>and for the inputText component I set the value:
    <af:inputText label="Text" id="it1"  binding="#{Bean.inputText}"
                                  readOnly="true" value="#{pageFlowScope.text}"/>I used request scoped managed bean and it is shared for both pages.
    I understand that I can set a value of some attribute for managed bean
    and use it to set a value for inputText component of the second page,
    but as I understand it is almost the same way as usage of tag <f:setPropertyActionListener>.
    In my real situation on the second page I have a dynamic table, and it's field is read only.
    Structure of this table depends on a link clicked on the first page.
    So I define components for table columns in runtime, it may be outputText, inputDate, goLink and some others.
    And I have to get table through the UIComponent binding to set columns.
    Certainly I can define all needed components for all columns
    and render it according to the column types
    <af:table value="#{Bean.collectionModel}" var="row" id="t1" binding="#{Bean.mainTable}">
       <af:forEach items="#{Bean.columnDescriptionList}" var="column">
          <af:column headerText="#{column.caption}" id="c1">
             <af:outputText value="#{row[column.fieldName]}" id="ot1" rendered="#{column.type == '1'}"/>
             <af:inputDate value="#{row[column.fieldName]}" id="ot2" rendered="#{column.type == '2'}"/>
             <af:selectBooleanCheckbox id="sbc1" selected="#{row[column.fieldName] == '1'}" rendered="#{column.type == 'n'}"/>
          </af:column>
       </af:forEach>
    </af:table>but I think it is not very good.
    Have you any idea?
    P.S. I hope I clearly explained my situation =)
    Evgeny Michuk

  • Show Swing Container JPanel in ADF Component

    Hi ADF-Folk,
    I come out of the forms developer world. in forms i used pluggable java components to show graphical components in forms.
    Is it possible to use a show a Swing JPanel Class in a ADF Component like a PanelBox or something else?
    Application example: Colored tray configuration for a lean lift administration. On this tray are nearly 120 places to allocate. I don't want to use 120 adf labels in dynamic .jspx with backing bean to rebuild this function.
    How can I manage this?
    Thank you very much.
    Best regards.
    Gunnar

    Hi,
    Is it possible to use a show a Swing JPanel Class in a ADF Component like a PanelBox or something else?
    yes, use f:verbatim as a tag and add the JPanel as an Applet. Note that the Applet will not be integrated with ADF Faces and requires you to use JavaScript to get this working. See the following example
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/71-adf-to-applet-communication-307672.pdf
    Frank

  • How to use CSS to customise ADF component

    I'm not going into skin. However, I want to edit property of ADF component through CSS. How do we do this? Any url link that give complete documentation? (How to represent ADF Component in CSS)
    E.G. I want to set af:column noWrap=true to all table.
    Regards
    Eric H

    Hi,
    just a guess, but give it a try: customize the default Oracle skin as described in the blog post "Customizing BLAF for ADF Faces - easier than Skins for influencing colors and fonts by Lucas Jellema". You don't need to add custom skins, just edit the oracle-desktop.xss file.
    Then you can add a "white-space: nowrap;" property for the appropriate style, which very likely will be AFTableCellDataText. It will be something like this:
    <style name="AFTableCellDataText">
      <property name="white-space">nowrap</property>
    </style>HTH,
    Patrik

  • ADF component to display a grid with wrap around

    We need to create a grid of images on a page, such that maximum number of images that can fit in the viewable area are displayed in a row. The remaining images wrap to the next row. One should be able to select one or more images from the grid and drag-and-drop them in the same grid or outside the grid. Any suggestions about the best ADF component that can serve this purpose. Also, wonder if Collection drag-and-drop mechanism is available for components other than <table> and <tree>?. For example, can we use it with <panelList> or <panelForm>?

    this related to css instead of which component to use, following code should work:
    <af:panelGroupLayout id="pgl1" layout="vertical" inlineStyle="width:90%; border:1px solid black;float:left">
         <af:image source="#{resource['images:logo.png']}" shortDesc="Img 1" id="i1"
    inlineStyle="height:60px;float:left"/>
    <af:image source="#{resource['images:logo.png']}" shortDesc="Img 2" id="i2"
    inlineStyle="height:60px;float:left"/>
    </af:panelGroupLayout>
    if you remove af:panelGroupLayout and just use following inside your component
    <af:image source="#{resource['images:logo.png']}" shortDesc="Img 1" id="i1"
    inlineStyle="height:60px;float:left"/>
    <af:image source="#{resource['images:logo.png']}" shortDesc="Img 2" id="i2"
    inlineStyle="height:60px;float:left"/>
    it should still work

  • I wan to i visible/invisble Panel(Adf Component) on UI using ADS?

    HI,
    Following is my requirement
    I am having one panel which should be visible/invisible on UI based on event coming from Web services.
    I am consuming one web services which is sending me update which i suppose to read at specified interval.
    if there is any update from web services then i suppose to visible/invisible Pane(ADF component)l on UI.
    Active Data Service can be useful for this requirement?
    If Yes,
    Do i need to create Active Data Proxy for this?
    Your suggestion will be helpful.
    - Deepak Parmar

    Frank Nimphius,
    Thanks for your quick reply. :)
    This is really good article which has provided one good way how to trigger event from client whenever we get update from server.
    but i am still having some questions:
    1) based on post you have provided, if i can able to trigger event from client then do i need to use ADS anymore?
    2) Do you have source code for the same? , I want to see how ADS is playing role here.
    3) if i am getting update from web services then do i need to create Active Data Proxy?
    Regards,
    Deepak

  • ADF Component Guide 10.1.3

    Could someone please point me to a ADF component guide (preferably a sample app)? I see one for ADF UIX components but nothing for the 10.1.3 components. I'm looking for a documentation on how to use each of the components in the ADF Core set. I've reviewed what is in the developers guide already and am guessing there must be more somewhere.
    Thanks,
    Dan

    Hi,
    there is no component guide as it was in UIX. However, you may find this page useful
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/index.html
    Frank

  • Programatically Hiding ADF component

    Hi,
    I have a requirement for which i am hiding a adf component using render=false or visible=false and move other existing component in screen to the place of hidden component. The screen is codded as below,
    <?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"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelGroupLayout id="pgl1" layout="scroll">
    <af:panelBox text="PanelBox1" id="pb1">
    <f:facet name="toolbar"/>
    <af:panelFormLayout id="pfl1" rows="1" maxColumns="2"
    binding="#{StartPageBean.pfl1}">
    <f:facet name="footer"/>
    <af:outputText value="1" id="ot1" binding="#{StartPageBean.ot1}"/>
    <af:outputText value="2" id="ot2" binding="#{StartPageBean.ot2}"/>
    </af:panelFormLayout>
    <af:panelFormLayout id="pfl2" rows="1" maxColumns="2"
    binding="#{StartPageBean.pfl2}">
    <f:facet name="footer"/>
    <af:outputText value="3" id="ot3" binding="#{StartPageBean.ot3}"/>
    <af:outputText value="4" id="ot4" binding="#{StartPageBean.ot4}"/>
    </af:panelFormLayout>
    <af:panelFormLayout id="pfl3" rows="1" maxColumns="2"
    binding="#{StartPageBean.pfl3}">
    <f:facet name="footer"/>
    <af:outputText value="5" id="ot5" binding="#{StartPageBean.ot5}"/>
    <af:outputText value="6" id="ot6" binding="#{StartPageBean.ot6}"/>
    </af:panelFormLayout>
    </af:panelBox>
    </af:panelGroupLayout>
    <af:commandToolbarButton text="commandToolbarButton 1" id="ctb1"
    action="#{StartPageBean.hideComponents}"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    This code render the out as,
    1 2
    3 4
    5 6
    As we can see that we have PanleGroupLayout than a PanelBox and than all the PanleGroupLayout with 1 row and 2 column.
    Now if i make ot2 an ot3 as hidden using render false the output comes as below,
    1
    4
    5 6
    If i make ot2 and ot3 as hidden using visible false the output comes as,
    1
    4
    5 6
    can we get the output as
    1 4
    5 6
    by using either of the approach? or is there any other approach to achiecve the same.
    Let me know if some more information is required

    Hi,
    I have created an ADF tree using VO. its being displayed with several nodes (Drag and drop fo data control). Now I want to add dynamically created links into the created tree nodes. how to do that from inside my backing bean code.
    for (int i = 0; i < assignedAuditLinksCount; i++) {
    HashMap auditInfoMap = assignedAuditList.get(i);
    RichCommandImageLink auditInfo = new RichCommandImageLink();
    RichSpacer auditLinkSpacer = new RichSpacer();
    auditInfo.setText(auditInfoMap.get(AuditOperationsConstants.AUDITID).toString());
    auditInfo.setIcon("/images/navbullet.png");
    String actionEL =
    "#{backingBeanScope.backing_fragments_PerformAudit.setAuditInfo_action}";
    MethodExpression action = actionMethodExpression(actionEL);
    auditInfo.setId("AuditId" + (i + 1));
    auditInfo.setActionExpression(action);
    auditInfo.addActionListener(new PerformAuditActionListener());
    auditInfo.setVisible(true);
    auditInfo.setImmediate(true);
    auditInfo.setInlineStyle("text-decoration:underline;");
    auditLinkSpacer.setHeight("0");
    auditLinkSpacer.setWidth("10");
    How to add these auditInfo links in my tree nodes created using VO.
    }

  • Customizing ADF component rendering

    Hi,
    I'm trying to override some ADF component rendering in order to provide some clients with a simple application appearance. To do so, in faces-config.xml:
    <pre>
    <render-kit>
    <render-kit-id>oracle.adf.core</render-kit-id>
    <renderer>
    <component-family>oracle.adf.Panel</component-family>
    <renderer-type>oracle.adf.Page</renderer-type>
    <renderer-class>com.mycompany.web.faces.renderer.MyPanelPage</renderer-class>
    </renderer>
    </render-kit>
    </pre>
    I define MyPanelPage class that extends javax.faces.render.Renderer class. I override encodeBegin, encodeEnd, encodeChildren and getRendersChildren methods and it works fine. However, I run into a problem when I want to make the renderer work "in default mode" (the way it ussually works) under certain condition. I suppose that there might be a special render class used by "oracle.adf.core" render kit to render panelPage component, which determines the location of every facet. Anybody know which is this class.
    Thanks in advance.
    Luis Serrano.

    Hi,
    check PageLayoutRenderer
    Frank

  • Value Change Listener and field disable property in Ajax ADF component

    Hi. I have used the Ajax ADF component in my application. It is working fine but I am unable to implement the ValuechangeListener property and disable property for this component. Can someone please help and tell me how i can implement these properties for the component? Thanks in advance.

    Hi,
    I have no clue of what you are talking about.
    Frank

  • I want to get a adf component in managed bean with jsff. What can I do?

    I want to get a adf component using FacesContext.getCurrentInstance().getViewRoot().findComponent("my component id").
    It's ok in taskflow with jspx, but I can't get the component correctly in my managed bean in taskflow using page fragment.
    The error is "can not find view root".

    What features do you need in the discussion board and how big do you forecast the community to be?
    I gather that you really want a free solution.
    No software is perfect but when you pay for software you generally get features and the expectation of a certain minimum level of support.
    With open source, you get free, features and some support but you also get constant security fixes, regular update patches, plus lots of trawling through online forums looking for tweaks and workarounds. Expect to invest lots of time maintaining it.
    I've used phpBB in the past but never had issues with DW touching the coding. It served its purpose for me and the community at the time but the issues I dealt with regularly were the constant updates/bugfixes and never ending spam, spam, spam.

  • Creating a customized copy of an ADF component

    Hi,
    Is it possible to create a copy of a standard ADF component, and then customize the copy without changing the original?
    Using a skin, it is possible to change the look and feel etc. of standard ADF components. But I have a case where I need a customized version of a panel splitter AND an un-customized version, at the same time (on the same page). Any suggestions?
    Regards,
    Andreas

    Hi Arun,
    Sorry about the delay.
    I'm having some trouble making the style take effect.
    I have this in my skin css:
    af|panelSplitter.splitterHelp af|panelSplitter::horizontal-collapse-icon {content: url('/faces/images/Help-icon32x32.png');width:25px;height:25px;}
    af|panelSplitter.splitterHelp af|panelSplitter::horizontal-restore-icon {content: url('/faces/images/Help-book32x32.png');width:25px;height:25px;}
    and, on my page I have:
    <af:panelSplitter id="ps2" styleClass="splitterHelp">
    <f:facet name="first">
    <af:outputText value="Content" id="ot6"/>
    </f:facet>
    <f:facet name="second">
    <af:outputText value="Helptext" id="ot7"/>
    </f:facet>
    </af:panelSplitter>
    But this doesn't work (the splitter is displayed, but unstyled).
    I've tried using this syntax in the css file instead:
    .splitterHelp af|panelSplitter::horizontal-collapse-icon {content: url('/faces/images/Help-icon32x32.png');width:25px;height:25px;}
    .splitterHelp af|panelSplitter::horizontal-restore-icon {content: url('/faces/images/Help-book32x32.png');width:25px;height:25px;}
    But this does not work, either.
    Lastly, I've tried doing something simpler but similar:
    .styleTest af|inputText::content
    background-color: InfoBackground;
    (just to see if I could get ANY style from my skin to take effect). And this works fine.
    The definition of .styleTest seems to me to be very similar to the definition of .splitterHelp. Yet, .styleTest works, and .splitterHelp does not.
    Thinking that the problem might be the icon files, I've tried using some of my own icons instead (placed in an image folder in the skin workspace), but this does not seem to make any difference.
    Can you (or anyone else) please tell me what I'm doing wrong?
    Regards,
    Andreas

  • Best practice to show ICON instead Label for ADF Component

    Hi,
    I am using JDeveloper 11.1.1.6.
    My requirement is to use Icons instead Label text for my ADF components. Those are in one Form layout wich means that if I just used a panelgroup horizontal and put then the image and then the input component, the panelForm Layout wont automatically align my components. So I was trying to fallow this link
    http://adfpractice-fedor.blogspot.co.uk/2011/08/panel-form-layout-and-labels-with-icons.html with no success.
    Anyone else could orientate me on the right path?
    Thank you

    You can try to use af:panelFormLayout and set "rows" property.
    Then set simple="true" on your input components.
    For example:
    <af:panelFormLayout id="pfl1" rows="2">
          <af:image source="image1.png" id="i1"/>
          <af:image source="image2.png" id="i2"/>
          <af:inputText label="Label 1" id="it1" simple="true"/>
          <af:inputText label="Label 2" id="it2" simple="true"/>
    </af:panelFormLayout>Dario

  • Calling a method in the Custom ADF component from JSF page

    HI.
    I have created some custom compoents by extending the core ADF Components. Like i have a ComboBoxDefault component with it's ComboBoxDefaultTag.java and Controls.tld file.
    Now my requirement is i want to bind my label to this component from the JSF page. like
    <fwcontrols:label binding="#{listComponents.comboBoxDefaultLabel}" id="label1"/>
    <fwcontrols:comboBoxDefault binding="#{listComponents.cmbLocales}"
    value="en_GB" id="comboBoxDefault" autoSubmit="true" label="label1">
    <f:selectItems value="#{listComponents.locales}"/>
    </fwcontrols:comboBoxDefault>
    In my JSF page the label will have an id, and that id will be specified in the label tag of the component.
    In Tag.java file i have overrided the setProperty(FacesBean facesBean). In this method i have bind all my properties. In core JSF the setProperty method is provided with the UIComponent parameter, so i can call my method in component also. Which is not in case of ADF Faces.
    My main point is how i can call my method setLabel() which is in ComboBoxDefault.java so that i can set the label.
    Thanks in Advance.

    Thanks for all your replies. I want this kind of a functionality because Im trying to invove a DC (Child DC) from a Parent DC such that the Child DC's view is displayed onto the view container of the Parent DC. I have embedded using 'interface view of a component instance' in the Parent Window and am able to create the component and set usage though the onPlugDefault of the Child View.
    But I observe that when i make a call from the parent, the flow is like this:
    1. The wdDoInit of the Child Component Controller gets triggered first.
    2. Then the wdDoInit of the Child's <b>VIEW</b> gets triggered
    3. and <b>THEN</b> the onPlugDefault of the Child Component Interface View
    What I had actually wanted was to Fire onPlugDefault where Im calling a method LoadData(), after which the Child DC's view must be triggered so it can display the fetched data.
    What is actually happening is the view gets displayed, but no data is displayed in the view.
    Right now I have just given a work around where Im triggering <b>LoadData()</b> of the <b>COmponent COntroller</b> from the <b>wdDoInit</b> of the <b>VIEW</b>.
    Is there a better way to do this? I find it strange that I have to load the Data from the view.
    Thanks
    Jack

Maybe you are looking for