Refer to the ADF faces RC component of programming client-side

Hello
One tried to access component customer adf in a taskflow-ADF using javaScript with its id
I have an ADF taksflow including a pagefragment. The taskflow is encapsulated by a region r1 in a jspx page.
I'm trying to access the component of

document.getElementById("r1:componentName"); or
AdfPage.Page.findComponent ("r1:componentName");
AdfPage.Page.findComponent("::componentName");

None works. The only way that works is to use
var firingComp = event.getSource ();
...
firingComp.findComponent ("componentName");

However, as I call the function javascript from an Applet, I get entry to the event of shooting. So if I have to do it this way, I need to define a global varibale, assign him when another JS function called during an event of the ADF is triggered (for example, adf button click...)
Then use this variable in the JS function called from cmdlet to locate the required component. It is quiet that annoying the user needs to interact with the adf page before that.
Any suggestion?

Hello

ADF faces has an API on the client side. Please take a look at

http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31973/af_event.htm#BABIDEGA
http://download.Oracle.com/docs/CD/E14571_01/apirefs.1111/e12046/TOC.htm

The starting point for a search is AdfPage.PAGE.findComponentByAbsoluteId (namingcontainer_id:component_id);

Frank

Tags: Java

Similar Questions

  • Request clarification on the ADF Faces + Trinity mix on the same page 11 g

    Hello

    I wonder if someone Oracle could indicate support of this. JDeveloper 11 g release notes contains a section titled, "ADF Faces and data visualizations," in which we find the following:

    The use of Apache MyFaces Trinidad components

    The mixture of Apache MyFaces Trinidad tr: tags with ADF Faces af: tags on the same page is not supported. You can mix the trh Trinidad: tags with ADF Faces AF: tags. However, there may be some problems of introduction to cross-browser with the help of the trh Trinidad: tags. As a best practice use the ADF Faces AF: layout tags as your first choice, unless the provision is not feasible using the trh Trinidad: tags.

    Does that mean that only DVT + Trinidad is not supported, or that someone else suggested that active af: tags are not taken in charge, or we cannot mix tr: and af: at all?

    Best,

    John

    John,

    the brief summary is that generally you are on the right side when you do not mix the components of the Trinity with ADF Faces RC components. It of IO to use components on separate pages, but not in a single page.

    The summary of average size is that not all components of Trinidad cause conflict with ADF Faces Rich client and that in fact the active components issue requests for PPR can cause serious problem. The integration of PPR is a major problem between the two batteries. If you use - for example trh:script to include JavaScript or CSS to your page ADF Faces, then it doesn't cause damage. Ditto for the layout to the Trinity labels that do not use PPR to disclose their children.

    Frank

    PS. : We had a bug filed against this and dev on both teams looked at how to solve the problem. It seems, however, that it would take major architectural changes

    Published by: Frank Nimphius on May 1st, 2009 12:58

  • How to build finance balance sheet as user interface using the ADF Faces component

    Hello

    We know that financial balance sheet will have a calculated field, imaging of the last row will be the value of the sum for all above each column (see below the very approximate example), I doubt that ADF Table is the faces component appropriate to have a quick idea on this? Thank you

    1 point | 10. 10. 10. 10. 10.

    2 point | 20. 20. 20. 20. 20.

    sum | 30. 30. 30. 30. 30.

    -Liang Yi

    It is possible in the ADF. See below how you can add a sum calculated lines.

    http://rohanwalia.blogspot.in/2012/11/ADF-Groovy-for-total-sum-of-column-in.html

    You can extend the same approach in your use case.

    Thank you

  • ADF Faces calendar component - error

    Hello

    I implemented a schedule ADF Faces component in my application by following this tutorial: http://docs.Oracle.com/CD/E12839_01/Web.1111/b31974/web_adv.htm#ADFFD19868 but when I run my page, I got the following error:

    Try to set a parameter name that does not intervene in the SQL: start

    .

    I thing, perhaps, there are some missing steps in the tutorial.

    Thank you for your help.

    Leslie

    Hello

    I found the solution through My Oracle Support.

    It was because my bind variables have been defined in the display of the Entity object request page, if necessary, instead of in the view to see criteria Page for entity object, to be not not required.

    Thank you.

    Leslie

  • How toggle and show/hide in the ADF faces components

    Hello

    In my application, I need to toggle and show/hide in ADF faces components based on a user manipulates some components. I need to I am a newbie to ADF, all ideas are appreciated.

    Kind regards
    Surya

    For use to hide/show the Visible property and toggle use ReadOnly property.
    Set them to some EL Expression as #{ == ? : }
    Also set the PartialTrigger on this attribute pointing to the parent attribute

    Don't forget to fix biased/AutoSubmit submit = true to the parent component.

    Amit

  • LaserJet 1536dnf: unable to scan and print 2 documents through the ADF faces

    I'm currently scanning and printing, two documents faces through the ADF. I went through the controls on the printer to get the "copy" menu and select the duplex option, press ok.  Then looked for "type of copy. The only choice I have is 1 to 1 side and 1 or 2 sides. According to other posts, there is No '01:58 back!

    Hello

    It does support duplex scanning. You have to do manually

    Kind regards.

  • I want to use jsp or jsf as the layer view without using the adf faces

    I have successfully build ADF application, but I have problem here
    I followed tutorial how to generate ADF application using the simple java class as services trade and JSF as the view layer http://blogs.oracle.com/shay/entry/java_class_data_control_and_ad layer
    the problem of the view layer ADF faces HERE IS THE PAGE

    * <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN."
    * "http://www.w3.org/TR/html4/loose.dtd" > * "
    * < % @ page contentType="text/html;charset=UTF-8"% >
    * < % @ taglib uri prefix = "http://java.sun.com/jsf/core' = 'f' % >
    * < % @ taglib uri prefix = "http://java.sun.com/jsf/html' = 'h' % >
    * < % @ taglib uri prefix = "http://xmlns.oracle.com/adf/faces/rich' = 'af' % >
    * < f: view > *.
    * < af:document title = "title" id = "d1" > *.
    * < af:messages id = "m1" / > *.
    * < af:form id = "f1" > *.
    * < af:outputText value = "#{bindings." Return.inputValue}"id ="ot1"/ > *.
    * < / af:form > *.
    * < / af:document > *.
    * < / f: view > *.

    I want to change the tags with JSP tags, how can I do this cause I don't want to use ADF Faces

    Replace af with h.

    "http://www.w3.org/TR/html4/loose.dtd" >
    <%@ page contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>




  • the ADF faces and IE

    Hello, I have a problem with the ADF and EI. I use jdev 11.1.1.5.

    The problem of the compatibility mode. In firefox and crome works well.



    "The current compatibility setting is not supported. Turn off compatibility view before you run this web page

    In Internet Explorer, press F12 and adjust the browser Mode and Document to the same value (IE8 & IE8 Standards, for example)

  • How to change the ADF Faces component visibility in changing the comboBox value?

    Hi all
    I want to change visibility panelGoupLayout true false when I choose a comboBox value, I can do this by using a commandButton control, but my question is how to change using the comboBox to the bean to support value, can anyone help me? Besides my English is not enough, I hope that I could say to my problem.
    Thank you.
    Ali

    Published by: user12246056 on November 23, 2009 09:01

    Hello

    You must add the id of the selectOneChoice as partialTriggers to the panelGroupLayout - check my example above.

    partialTriggers="soc1"
    

    Also, you seem to keep the selectOneChoice inside the panelGroupLayout (who you want to fake visible). So, once you make the invisible panelGroupLayout, the selectOneChoice (which is inside your panelGroupLayout) will become also invisible. Cordially (put out the panelgrouplayout if she not how you wanted it to be).

    Arun-

  • Unicode problem in the ADF faces

    Dear all,

    I have a problem with Unicode. I use JDeveloper 11.1.1.4.0.

    When I enter the Unicode text in an ADF Web Pages with mysql database and then recover (refresh page) of database, Web page (component) shows data?.
    I have configured the preferences/encoding, model and display settings of compiler controller in UTF - 8.

    But when I entered the data directly to the database of MySQL IDE, it was OK. (Show Me well).

    Thank you
    Angelique

    I'm sure you get utf-8 codes of the user interface. So the problem is maybe the driver that you use to store the string in the db or db (or array) itself. It's for you to discover.
    You can generate a java class for the OS allows you to store the string and set a breakpoint in the method settter of the attribute in question. You check the data before commit you it to the db. After validation, look you at Pb and see what is stored. As long as you do not see the correct data there are a problem with the jdbc driver that you are using, or the db does not accept utf - 8.

    Timo

  • CSS in the ADF faces

    Hi guys,.

    I'm trying to create a css stylesheet that transform text lowercase uppercase. I need to insert this style in inputText all.

    I do it:
    af|inputText::content{
        
      text-transform: uppercase; 
      color: Fuchsia; 
    }
    But it does not.

    Someone has an idea?


    Kind regards

    Renan


    I use JDeveloper 11.1.2.0.0 (version 2)

    Published by: Renan Barbalho on 14/07/2011 12:31

    Looks like the configuration required for the counting is NOT done correctly.

    Here is a sample application based on your requirement:
    http://adfsampleapplications.googlecode.com/svn/trunk/PS2SkinningSampleApplication.zip

    This would help to make the requirements in your project.

    Thank you
    Nini

  • [Table ADF Faces component] How to save the current state?

    Hello

    the ADF faces table component is great!
    You can drag-and - drop columns, sort columns...

    Now, we have an obligation to save the State of the table for subsequent sessions.
    The return of the user wants to get the same State as last time (order requirement or sort of column), even if he comes back a few days later.
    Is this possible?

    I discovered, that this information is stored in the session cookie. But this cookie is discarded in a few minutes...

    Any tips?

    fschulze,

    If you use 11 GR 1 material - you can read about MDS in chapters 33 and 34 of the Fusion for the ADF Developer's Guide - it does exactly what you ask... an update, don't know if it will save the sort order, but the documentation specifically mentions column reorganization as being recorded.

    John

  • Question about the mix of Trinidad component with ADF Faces

    Dear all,

    I have a requirement for complex layout that I can't do with just ADF Faces component.
    I found this blog nice wfrom Jobinesh http://jobinesh.blogspot.com/2010/11/layout-tips-organizing-page-content.html
    and I quickly realize that this will solve my problem.

    Please note that components of Trinidad has not all client components peer as we have for the ADF Faces. You may need to be measured while choosing this guy

    I'm just concerned about this line. I can't really understand what it means and how it will impact my programming of the ADF.

    Thank you

    Neliel,

    Which, in my view, that Jobinesh says it's that you will not be able to use the HTML elements of the Trinity as targets for partial triggers. As far as I know, using HTML of Trinidad (trh :) components with ADF is OK, but using 'clean' Trinidad (tr :), you can have problems.

    John

  • ADF Faces component can be used to represent parking garage

    I would like to have a jsf page that shows the location of the cars in a garage.

    So, I would draw a picture of a car in busy for a garage places.

    Any ideas on what ADF Faces view component, or any other component, could be used to represent the locations for a garage?

    I think you can add some HTML5 features in your ADF area app multiple using drawing beans

    http://www.html5rocks.com/en/tutorials/canvas/integrating/#sketchy

    Jhon

  • Using the component from the tree of the ADF

    Hello!

    I wonder if someone could show me an example of a component of the tree with predefined columns.

    Thank you in advance for your help!

    You can get some code examples of the ADF Faces of WAR demo file tree:
    http://www.Oracle.com/technology/products/ADF/adffaces/11/doc/demo/adf_faces_rc_demo.html

Maybe you are looking for

  • leave the search bar on the screen

    I just downloaded the new Firefox and I have a problem with CTRL F ("find" shortcut) is no longer rest on my screen when I switch screens. I need to stay all the time. How can I change this?Thank you.

  • Satellite Pro L450-12 x - cannot install Win 7

    Hello I have a problem with my Satellite Pro L450-12 x I tried to install windows 7 but it does not workSo that's why I installed Linux, but I'm not happy with the operating system, How can I get windows 7 to install?Thank you.

  • Application error: vmsnap23.exe

    Hello, all. This is my first post on this forum, so please be nice! Last month, I have an application error that occurs whenever I connect. It seems that the vmsnap23.exe application fails to start, but I don't know what it is (* or * else) so that I

  • Improvement of the graphics card for Satellite L650

    Hello I have a Satellite L650 and I was wondering if it was possible to upgrade the integrated graphics card Intel one if all right a dedicated with at least 512 MB. I tried to look around and it does not appear if you can, however, I'm not the most

  • HP Officejet 7110: HP Officejet 7110 will not print A3 size

    We bought the printer and are having problems trying to get the printer to print A3 size. Setting the parameters of the A3 printer (and the printer settings also calls on A3) the printer still prints in A4. We use the latest driver from HP. We use th