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

Similar Messages

  • Modify adf component from java using binding

    Hi,
    I'm using jdeveloper 11.1.1.6.0
    I am making an application to learn how to "Binding". To do this, I followed the example " [Binding a JSF Page to a Managed Bean|http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_33/jdtut_11r2_33.html] "
    Now, what I'm trying to do is access the entire object. To do this, in the "Binding" of "login" write:
    ManagedBean -> Persondata
    Property -> loginObject
    And in the "Binding" from "email" write:
    ManagedBean -> Persondata
    Property -> emailObject
    So in the java class attributes are created Persondata "loginObject" and "emailObject" type "RichInputText".
    If I change the method code "commandButton_action"
         commandButton_action public object () {
             System.out.println ("personData.getId () ->" + personData.getId());
             System.out.println ("emailObject.getId () ->" + emailObject.getId());
    return null;
    The output is:
    personData.getId () -> null
    emailObject.getId () -> null
    What am I doing wrong?
    I´ve seen this page but I'm not sure what I have to do....
    Thanks a lot,

    oceano,
    you are using the wrong tutorial. The one you use is for JDev 11.1.2.x and not for 11.1.1.x which you are using. Im not sure it make any difference but just want to mention it. The right tutorial for your version is here http://www.oracle.com/technetwork/developer-tools/jdev/ccset33-all-089829.html
    Can you post the code of your page (and please format it when posting it here -> FAQ)?
    And the code of the Bean?
    Do you have defined the getId() method in the bean?
    Timo

  • Moving the tabs to right of the jsf page in the adf panel tabbed component

    Hi,
    i want to move the tabs in the panel tabbed component to the right. In the property inspector of this component, it doesn't have an option called right. How can we do this?
    Thanks,
    sudan

    Hi,
    why there is no reply from the community? Does it mean, no one had any requirement like this before or it is not possible in ADF.
    Thanks,
    Sudan

  • 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.
    }

  • Using Panel Tabbed component

    Hi,
    I am developing with ADF 11g.
    I am using Panel tabbed component into a page and the 'ShowDetailItem' should be increased according to requirements, But I could just create three 'ShowDetailItems' in a page .jspx since it generates too much code. Is there any way to create multiple ShowDetailItems on a page (or to be displayed on a page) without generating too much code (because in these ShowDetailItems I handle lots of information and transactions)
    Please helpme...
    thanks.

    No, what happens is this:
    While adding more tabs to the panel, the code in the page .jspx increases which is logical, but hardly manageable, since that new requirements will add many more tabs quite content to the tabbed panel. What I want is not to generate too much code in my jspx page. How can I handle this?
    thanks,

  • 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

  • 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

  • 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

  • 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

  • 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

  • Updated form/table in showDetails of Panel Tabbed Component

    When there are multiple showDetail components for Panel Tabbed, if anyone of them has an updated form or table, switching between different showDetail components will cause the system throw mandatory field validation errors.
    It looks like all the mandatory LOV fields are reset to be empty in the previous visited tab. Is this the way that Jdev supposed to work? What should we aware of using updated forms/tables in multiple tabs of Panel Tabbed component?

    That's how it works. That's the reason, I get all the data to pre-populate all the components in the page load itself. When I switch between tabs, I don't re-execute the proc and so it won't reset. I use postback to prevent re-execute the proc. when I switch between tabs.
    Boolean postBackValue = (Boolean)JSFUtils.resolveExpression("#{adfFacesContext.postback}");
    Boolean defaultBooleanValue = new Boolean("false");
    if (postBackValue.equals(defaultBooleanValue)) {
    }

  • 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

  • [REPOST]How to force ADF Dialog / POPUP to use POST method ?

    Hi all,
    Is there any way to make ADF Dialog / POPUP to use POST method ?
    I need that approach to implement this post : [SOLVED] Faces - Preventing user from entering URL manually
    But it breaks in my application because ADF Dialog / POPUP is using GET method.
    Thank you very much,
    xtanto

    repost.
    Thank you

  • 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

Maybe you are looking for

  • How can I implentate a search bar in TableViewController iOS

    How can I implentate a search bar in my TableViewController? Code: //  ViewController.m //  Movie List //  Created by Damian on 20/02/15. //  Copyright (c) 2015 Tika Software. All rights reserved. #import "ViewController.h" @interface ViewController

  • DVI to VGA is working, DVI to Video is not

    After a recent logic board replacement under the NVIDIA recall I noticed that my DVI to video was no longer working. I was using an Apple branded DVI to Video adapter. This worked fine before the repair although it was quite awhile ago (2011) that I

  • Webdav client for iCloud?   Forget Transmit.

    Would love to know if anyone has found a client for iCloud.  Migrated over today and wish I could migrate back.  Transmit is as useless as the Finder for this new server structure.  I'm not even sure what the initial path is now for iCloud.  Any help

  • How do you make a color image black and white

    I looked at the Adjust Image tool, but I could not see an easy way to make the color picture turn into black and white. Yes I realize I could go back into iPhoto and do that. I don't want to do that. In Word there is an image control that allows you

  • Understanding LONG variable

    I saw a code where they had stated " long n = 1L" , what is the L is the code for? What does it do?