Using AdfPage.PAGE.findComponent to find a popUp in a region

Adf11g
Hello
I have a task flow in a region on a page - the region is named regionTrans.
The main page in the taskflow has a popUp in the jsp:root - the popUp is named popTrans
As I need to do a CreateInsert() before displaying the popUp I'm displaying the popUp using the following code :
    public static void showPopup(String popupId) {
       FacesContext context = getFacesContext();
       ExtendedRenderKitService extRenderKitSrvc =
                Service.getRenderKitService(context, ExtendedRenderKitService.class);
       extRenderKitSrvc.addScript(context,
                                       "AdfPage.PAGE.findComponent('" + popupId + "').show();");
        }   In order to show the popUp in the region when the user clicks a button I have to use "regionTrans:0:popTrans" for the popupId.
"regionTrans:0:popTrans" was found be looking at the source of the generated page.
What I don't understand is what the "0" represents in the "regionTrans:0:popTrans"
Can anybody explain ?
Regards
Paul

Hi
Here's where the region is defined in the main page :
<?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"
          xmlns:c="http://java.sun.com/jsp/jstl/core">
  <c:set var="viewcontrollerBundle"
         value="#{adfBundle['ch.mit.trac.view.resourceBundle.ViewControllerBundle']}"/>
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <af:document id="d1" title="TRAC v#{bindings.Version.inputValue}">
      <af:messages id="m1"/>
      <af:form id="f1">
        <af:decorativeBox theme="light" topHeight="30px" id="db1">
          <f:facet name="center">
            <af:region value="#{bindings.transaction1.regionModel}"
                       id="regionTrans"/>
          </f:facet>
          <f:facet name="top">
            <af:panelGroupLayout layout="scroll"
                                 xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                 id="pgl1">
              <af:menuBar id="mb1">And here's the entire jsff
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:c="http://java.sun.com/jsp/jstl/core">
  <c:set var="viewcontrollerBundle"
         value="#{adfBundle['ch.mit.trac.view.resourceBundle.ViewControllerBundle']}"/>
  <af:panelStretchLayout id="psl1" topHeight="42px" visible="true"
                         inlineStyle="width:1367px; height:851px;">
    <f:facet name="center">
      <af:panelStretchLayout id="psl2" topHeight="29px" bottomHeight="49px">
        <f:facet name="bottom">
          <af:panelGroupLayout layout="horizontal"
                               xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                               id="pgl5">
            <af:separator id="s3"/>
            <af:outputText value="Warnings : 5" id="ot2"/>
            <af:commandButton actionListener="#{bindings.Rollback.execute}"
                              text="Rollback"
                              disabled="#{!bindings.Rollback.enabled}"
                              immediate="true" id="cb5">
              <af:resetActionListener/>
            </af:commandButton>
            <af:commandButton actionListener="#{bindings.Commit.execute}"
                              text="Commit"
                              disabled="#{!bindings.Commit.enabled}" id="cb4"/>
          </af:panelGroupLayout>
        </f:facet>
        <f:facet name="center">
          <af:panelSplitter id="ps1" splitterPosition="690">
            <f:facet name="first">
              <af:panelGroupLayout layout="scroll"
                                   xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                   id="pgl3">
                <af:panelHeader text="#{viewcontrollerBundle.BUY}" id="ph1">
                  <f:facet name="context">
                    <af:inputComboboxListOfValues popupTitle="Search and Result Dialog"
                                                  id="inputComboboxListOfValues1"/>
                  </f:facet>
                  <f:facet name="menuBar"/>
                  <f:facet name="toolbar">
                    <af:commandToolbarButton text="#{viewcontrollerBundle.NEW}"
                                             id="ctb1"/>
                  </f:facet>
                  <f:facet name="legend"/>
                  <f:facet name="info"/>
                </af:panelHeader>
              </af:panelGroupLayout>
            </f:facet>
            <f:facet name="second">
              <af:panelHeader text="#{viewcontrollerBundle.SELL}"
                              id="panelHeader1">
                <f:facet name="context">
                  <af:inputComboboxListOfValues popupTitle="Search and Result Dialog"
                                                id="inputComboboxListOfValues2"/>
                </f:facet>
                <f:facet name="menuBar"/>
                <f:facet name="toolbar">
                  <af:commandToolbarButton text="#{viewcontrollerBundle.NEW}"
                                           id="commandToolbarButton1"/>
                </f:facet>
                <f:facet name="legend"/>
                <f:facet name="info"/>
              </af:panelHeader>
            </f:facet>
          </af:panelSplitter>
        </f:facet>
        <f:facet name="top">
          <af:panelGroupLayout layout="scroll"
                               xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                               id="pgl4">
            <af:outputText value="outputText1" id="ot1"/>
            <af:separator id="s2"/>
          </af:panelGroupLayout>
        </f:facet>
      </af:panelStretchLayout>
    </f:facet>
    <f:facet name="top">
      <af:panelGroupLayout layout="horizontal"
                           xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                           id="pgl2">
        <af:selectOneChoice value="#{bindings.UserPositionView.inputValue}"
                            required="#{bindings.UserPositionView.hints.mandatory}"
                            shortDesc="#{bindings.UserPositionView.hints.tooltip}"
                            id="soc1" autoSubmit="true">
          <f:selectItems value="#{bindings.UserPositionView.items}" id="si1"/>
        </af:selectOneChoice>
        <af:spacer width="10" height="10" id="s1"/>
        <af:selectOneChoice value="#{bindings.SttTransactionViewViaPosition.inputValue}"
                            shortDesc="#{bindings.SttTransactionViewViaPosition.hints.tooltip}"
                            id="soc2" partialTriggers="soc1">
          <f:selectItems value="#{bindings.SttTransactionViewViaPosition.items}"
                         id="si2"/>
        </af:selectOneChoice>
        <af:commandToolbarButton text="#{viewcontrollerBundle.PREVIOUS}"
                                 id="cb2"
                                 actionListener="#{bindings.Previous.execute}"
                                 disabled="#{!bindings.Previous.enabled}"
                                 partialSubmit="true"/>
        <af:commandToolbarButton text="#{viewcontrollerBundle.NEXT}" id="cb1"
                                 actionListener="#{bindings.Next.execute}"
                                 disabled="#{!bindings.Next.enabled}"
                                 partialSubmit="true"/>
        <af:spacer width="10" height="10" id="s4"/>
        <af:commandToolbarButton id="commandToolbarButton2"
                                 text="#{viewcontrollerBundle.NEW}"
                                 actionListener="#{transactionBean.newTransactionOnClick}"/>
        <af:spacer width="25" height="10" id="spacer1"/>
        <af:commandToolbarButton text="#{viewcontrollerBundle.LIMIT}"
                                 id="ctb2"/>
        <af:commandToolbarButton text="#{viewcontrollerBundle.WARNINGS}"
                                 id="ctb3"/>
        <af:commandToolbarButton text="#{viewcontrollerBundle.INFORMATION}"
                                 id="ctb4"/>
        <af:commandToolbarButton text="#{viewcontrollerBundle.DOCUMENTS}"
                                 id="ctb5"/>
        <af:commandToolbarButton text="#{viewcontrollerBundle.TRANS_REP}"
                                 id="ctb6"/>
      </af:panelGroupLayout>
    </f:facet>
  </af:panelStretchLayout>
  <af:popup id="popTrans">
    <af:panelWindow id="pw1" title="#{viewcontrollerBundle.TRANSACTION}">
      <af:panelFormLayout id="pfl1" labelAlignment="top">
        <af:inputText value="#{bindings.TransactionId.inputValue}"
                      label="#{bindings.TransactionId.hints.label}"
                      required="#{bindings.TransactionId.hints.mandatory}"
                      columns="#{bindings.TransactionId.hints.displayWidth}"
                      maximumLength="#{bindings.TransactionId.hints.precision}"
                      shortDesc="#{bindings.TransactionId.hints.tooltip}"
                      id="it2">
          <f:validator binding="#{bindings.TransactionId.validator}"/>
        </af:inputText>
        <af:inputText value="#{bindings.Designation.inputValue}"
                      label="#{bindings.Designation.hints.label}"
                      required="#{bindings.Designation.hints.mandatory}"
                      columns="#{bindings.Designation.hints.displayWidth}"
                      maximumLength="#{bindings.Designation.hints.precision}"
                      shortDesc="#{bindings.Designation.hints.tooltip}"
                      id="it1">
          <f:validator binding="#{bindings.Designation.validator}"/>
        </af:inputText>
        <f:facet name="footer">
          <af:commandButton text="#{viewcontrollerBundle.OK}" id="cb3"/>
        </f:facet>
      </af:panelFormLayout>
    </af:panelWindow>
  </af:popup>
</jsp:root>If there's too much or too little info let me know
Regards
Paul

Similar Messages

  • AdfPage.PAGE.findComponent method usage

    I have a function.js file which has the showMap() function. I am trying to display something using the AdfPage.PAGE.findComponent method which keeps returning undefined for any component I try to find from the js file. What am I doing wrong? Is it because I am finding the component before page loading. Please advise
    function.js file
    function showMap() {
    alert(AdfPage.PAGE.findComponent('f1'));
    baseURL = "http://"+document.location.host+"/mapviewer";
    var mapCenterLon = 145.07;
    var mapCenterLat = -37.57;
    var mapZoom = 1;
    mapview = new MVMapView(AdfPage.PAGE.findComponent('map'), baseURL);
    //var map = AdfPage.PAGE.findComponent("map");
    //mapview = map.getMVMapView();
    mapview.addMapTileLayer(new MVMapTileLayer("gis_data.AV_VICMAP"));
    mapview.setCenter(MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,4283));
    mapview.setZoomLevel(mapZoom);
    mapview.addNavigationPanel("WEST");
    showOverviewMap();
    addThemeBasedFOI();
    mapview.display();
    JSPX file
    <?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:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" binding="#{backingBeanScope.mapsBean.d1}">
    <f:facet name="metaContainer">
    <af:group id="g3" binding="#{backingBeanScope.mapsBean.g3}">
    <trh:script id="script1" source="/jslib/oraclemaps.js"
    binding="#{backingBeanScope.mapsBean.script1}"/>
    <trh:script id="script2" source="/jslib/functions.js"
    binding="#{backingBeanScope.mapsBean.script2}"/>
    <trh:script text='' id="script3"
    binding="#{backingBeanScope.mapsBean.script3}"/>
    </af:group>
    </f:facet>
    <af:form id="f1" binding="#{backingBeanScope.mapsBean.f1}">
    <af:panelStretchLayout id="psl1" topHeight="5px" bottomHeight="115px"
    endWidth="373px"
    binding="#{backingBeanScope.mapsBean.psl1}">
    <f:facet name="bottom">
    <af:panelBox text="Watch Options" id="pb1"
    binding="#{backingBeanScope.mapsBean.pb1}">
    <f:facet name="toolbar"/>
    <af:selectBooleanCheckbox label="Auto Refresh"
    id="sbc2"
    binding="#{backingBeanScope.mapsBean.sbc2}"/>
    <af:selectBooleanCheckbox label="Show Vehicle Locations"
    id="sbc1"
    binding="#{backingBeanScope.mapsBean.sbc1}"/>
    <af:commandButton text="Refresh Now"
    id="cb1"
    partialSubmit="true"
    binding="#{backingBeanScope.mapsBean.cb1}"/>
    </af:panelBox>
    </f:facet>
    <f:facet name="center">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    id="pgl1"
    binding="#{backingBeanScope.mapsBean.pgl1}">
    <af:group id="g1" binding="#{backingBeanScope.mapsBean.g1}">
    <dvt:mapToolbar mapId="map"
    id="mt1"
    binding="#{backingBeanScope.mapsBean.mt1}"/>
    <dvt:map startingY="-36.88" startingX="145.26" mapZoom="1"
    mapServerConfigId="mapConfig1"
    baseMapName="GIS_DATA.AV_VICMAP"
    inlineStyle="width:100%; height:793px;"
    id="map" binding="#{backingBeanScope.mapsBean.map}">
    <f:facet name="rtPopup"/>
    <f:facet name="popup"/>
    </dvt:map>
    </af:group>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="end">
    <af:panelBox text="List Vechicles"
    id="pb2" binding="#{backingBeanScope.mapsBean.pb2}">
    <f:facet name="toolbar"/>
    <af:inputText label="Area Code"
    id="it1"
    binding="#{backingBeanScope.mapsBean.it1}"/>
    <af:inputText label="Vehicle Number"
    id="it2"
    binding="#{backingBeanScope.mapsBean.it2}"/>
    <af:commandButton text="Search"
    id="cb2"
    binding="#{backingBeanScope.mapsBean.cb2}"/>
    </af:panelBox>
    </f:facet>
    </af:panelStretchLayout>
    </af:form>
    <af:clientListener type="load" method="showMap()" />
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:mapsBean-->
    </jsp:root>
    Edited by: user5108636 on 29/04/2010 18:22

    It is now detecting the map component, but the map object retrieved in the javascript seems to a new object. I had set the srid and ceterX and centerY.
    In my javascript, I do
    var map = AdfPage.PAGE.findComponent('map');
    mapview = map.getMVMapView();
    alert("Zoom:"+ mapview.getZoomLevel());
    alert("Srid:"+ mapview.getSrid());
    alert("CenterX:"+ mapview.getPointX());
    alert("CenterY:"+ mapview.getPointY());
    where the map object parameters are already set in the ADF page, which is not reflecting. I am not getting access to the same map
    object. My javascript method runs on page load. Is it because the javascript method is getting called before the ADF map object exists.
    dvt:map id="map" startingX="145.26"
    mapServerConfigId="mapConfig1"
    baseMapName="GIS_DATA.MAP" mapZoom="1"
    startingY="-36.88" unit="METERS"
    inlineStyle="width:100%; height:793px;" srid="4283"
    />
    Let me know if any more code needs to be posted for clarification.
    Regards
    Edited by: user5108636 on 9/05/2010 19:20

  • AdfActionEvent and AdfPage.PAGE.findComponent not working - Sample Provided

    Ladies and Gents,
    Using JDev 11.1.2.3.0.
    I just can't get this simple example to work.  On page load, I'm calling ADF's find component by id method, which for some reason, returns null.  I can do the same thing by using javascript's getElementById and that finds the component just fine.  However, if I use the getElementById and then push that into the AdfActionQueue, I get a different error 'Error: Object doesn't support property or method 'queueEvent''
    Can anyone see off-hand what I'm doing wrong here?
    <?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:af="http://xmlns.oracle.com/adf/faces/rich">
        <jsp:directive.page contentType="text/html;charset=UTF-8"/>
        <f:view>
            <af:document title="home.jspx" id="d1">
                <af:form id="f1">
                    <af:commandButton text="commandButton 1" id="myRefreshButton" action="#{myBean.onAction}"/>
                </af:form>
                <af:resource type="javascript" source="/resources/js/jqPlot/jquery.min.js"/>
                <af:resource type="javascript" source="/resources/js/jqPlot/jquery.jqplot.min.js"/>
                <af:resource type="javascript" source="/resources/js/jqPlot/plugins/jqplot.canvasTextRenderer.min.js"/>
                <af:resource type="javascript" source="/resources/js/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js"/>
                <af:resource type="javascript" source="/resources/js/jqPlot/plugins/jqplot.dragable.min.js"/>
                <af:resource type="css" source="/resources/js/jqPlot/jquery.jqplot.min.css"/>
                <af:resource type="javascript">
                  function doClick() {
                      var clientId = 'myRefreshButton'; // id of the button in the page's HTML code
                      // This returns null
                      // var button = AdfPage.PAGE.findComponent(clientId);
                      // button is found but then receive error
                      var button = document.getElementById(clientId);
                      AdfActionEvent.queue(button, true);
                  $(document).ready(function () {
                      doClick();
                </af:resource>
            </af:document>
        </f:view>
    </jsp:root>

    Hi Frank,
    I agree manipulating the DOM directly is generally bad (I've watched those training videos!), but after doing some decent searching (with quite a bit of trial and error) I'm not sure there exists a purely ADF way of achieving a solution.
    Inside of a region, I have a master (Companies) and a child (Orders) table relationship.  Within the same region, I also have a charting tool which displays the monthly order totals of the selected company.  A customer can select a company and see the related monthly orders in the orders table along with a graph showing the visual sales.  If I were using ADF DVTs, this would be pretty straightforward, but I am not.  To get this to work then, I have a few obstacles.
    1) On jsff load, the chart must initialize with the displayed monthly order data.
    2) On new customer select, the chart must refresh with the newly displayed order data.
    The easiest way to update the chart would be to hook into the orders table component and, whenever the shown data refreshes or initializes, also refresh the chart.  However, I'm not sure where the hook is located for that so I'm back to my two obstacles.
    For the first obstacle, ADF does not (to my knowledge) have an "on jsff load" option so I'm stuck with jquery's load and corresponding id lookup functions.  In my case, that load function looks for a hidden output text component's value whose getter returns the order table row's current monthly data.  This is somewhat of a hack that, in effect, calls a managed bean method from javascript.  Now that I have that data, I can input that into my chart and refresh.
    For the second obstacle, I simply hook into the customer table's selection listener and after the current row is updated, retrieve the order table's current monthly data, refresh chart, etc.
    The question I asked is a simplified version of overcoming the two obstacles above and while my jquery $('#myRefreshButton')[0] is extremely brittle, it was only meant as a quick demonstration.  One could make it less brittle by iterating through the returned array, making sure the desired element contained any regions / naming containers and had the myRefreshButton portion at the end of the id string.
    What would be the desired ADF way of achieving this result?  Do you do something with your Data Visualization Tools that might be applicable here?  Is there a way to hook into the child table and refresh my chart any time child table refreshes or initializes?

  • AdfPage.PAGE.findComponent()

    Hi all i'm using Jdev 11.1.1.0.2
    i want to focus icon into my table field
    i used the following code
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
    service.addScript(facesContext,"(AdfPage.PAGE.findComponent('temp1:table1:0:inputText1')).focus();");
    here not able to find the component it returns 'undefined';
    Regards
    Abhi

    Hi,
    I can see 2 possible causes:
    1. The client id is not the right one
    2. The target component does not have a client component, try setting clientComponent="true" on the inputText
    Regards,
    ~ Simon

  • AdfPage.PAGE.findComponent FAILED with WebCenter

    Dear all,
    I have to get in javascript a component with id="pdfBtn"
    BUT I have to set the parameter r1:0:pdfBtn => AdfPage.PAGE.findComponent('r1:0:pdfBtn')
    It works when I develop a task flow and manage by myself, but it failed when I add this into WebCenter the ID change.
    Any Idea?
    Thanks

    Have you tried
    AdfPage.PAGE.findComponentByAbsoluteId('pdfBtn')Timo

  • What's wrong with AdfPage.PAGE.findComonent?

    Hi,
    In this page I can't find the inputtext with the AdfPage.PAGE.findComonent and I don't know why, anybody see something wrong?
    If I try to find the component with document.getElementById works ok but I don't want to put ::content to find a component.
    <?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:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document binding="#{backing_pruebaFocus.document1}"
    id="document1" initialFocusId="itFoco" title="Pruebas con el foco">
    <af:form id="frmFoco">
    <af:inputText label="Label 1 "
    id="itFoco" clientComponent="true"/>
    <script type="text/javascript" language="Javascript">
    document.body.onload = setFocus();
    function setFocus()
    var it2 = AdfPage.PAGE.findComponent("itFoco");
    alert(it2);
    </script>
    </af:form>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_pruebaFocus-->
    </jsp:root>

    Thanks Frank!
    It works ok now.
    Another thing, I try to do this because the initialFocusId of document don't work, this proyect has been migrated between 11gTP4 to 11g and in this step one of the things that not work is this, (before of migration this works ok). I investigated a little bit and I found that in the js that controls this, the variable _initialFocusId is null. Can it is a bug of the prerender phase? I see the source code that controls this script generation and in this code the variable is assigned.
    The script:
    /adf/jsLibs/Common1_2_8.js (var _initialFocusID=null;)
    The document's property is assigned and the component that takes the focus is a clientcomponent and accessibility-mode is set to inaccessible (this last thing is set because in the documentation say this)
    Thanks at all

  • How to find memory used by page tables

    Is there a way to find out how much memory is currently being used by page tables? I am new to Solaris ;-)
    I want to quantify the advantages of Intimate Shared Memory (in the context of a large Oracle database with lots of concurrent users). I want to contrast this against Linux which does not have a method of allowing different processes to share page tables that map onto shared memory. Thus, with a large number of concurrent connections where each connection creates a new process that maps onto the Oracle shared memory, a significant amount of memory can be consumed just by the page table entries.

    Yes, a very recent acquisition :-) ......I'm busy working my way through it, just taught myself about mdb today but I still can't figure how to get the amount of memory being used by page tables only. The dcmd ::memstat can give me the total amount of memory being used by the kernel but I would like some more detail than that.
    On Linux you can simply look at /proc/meminfo and it contains a wealth of information. I was hoping Solaris would be similar....but isn't that always the case when doing something new? We hope it's like what we already know :-) Below is an example from Linux showing that 1860 kB have been to store page table entries.
    [root@makalu ~]# cat /proc/meminfo | grep PageTables
    PageTables: 1860 kB
    [root@makalu ~]#
    Edited by: BrettSchroeder on Mar 12, 2008 1:37 PM

  • Every time I try to use pages I cloud is "off" in settings.  I turn it on and go to pages only to find it turned "off" again.

    Every time I try to use pages I cloud is "off" in settings.  I turn it on and go to pages only to find it turned "off" again.

    A wild guess- any updates for the Pages app pending?

  • ASE 15.7 how to find data entry using table page nr

    Hi,
    I am looking for a dbcc () to get data when I know page number from a table
    Thank you

    Hi Isabella,
    What your asking is not supported by SAP .. although you can achieve the result by using dbcc page:
    http://wiki.scn.sap.com/wiki/display/SYBASE/DBCC+page
    The only problem is that the data is in binary format so you have to format it by yourself to a readable format.
    Regards,
    Adam

  • To find the popup root from pagetemplate in adf..

    Dear,
    I'm using jdev11g.
    In my project having pagetemplate, inside the template i'm adding favorite menu like IE favorite with same functionalities.
    Is there any possiblities to find the pagetemplate Id, which will use to find the popup. i want to avoid page overwrite. OR can set the pagetemplate id dynamically
    Now i'm using the popup with two button(add and cancel).
    while clicking the add button, if the page is already added in favorite, i want to show one more popup to get the confirmation from the user. In the second popup having two button(ok and cancel).
    if the user click ok, it will overwrite,
    if click cancel the page should not overwrite. For this case, instead of second popup, i'm using javascript confirm() method. but it is overwrite, while click the cancel button.
    can any one help me.
    Thanks in advace
    Regards,
    Rengaraj
    Edited by: user11129216 on Jul 8, 2009 11:19 PM

    Hi,
    can you try setting the ComponentVar attribute on the template definition (e.g. "mytemplate")
    You can then access the template instance from Java
    private RichPageTemplate getTemplateHandle(){
      FacesContext fctx = null;
      fctx = FacesContext.getCurrentInstance();
      ELContext elctx  = fctx.getELContext();
      Application app = fctx.getApplication();
      ExpressionFactory elFactory = null; 
      elFactory = app.getExpressionFactory();
      ValueExpression valueExpr = null;   
      valueExpr  = elFactory.createValueExpression(
                   elctx,
                   "#{mytemplate}",
                   Object.class);
      RichPageTemplate template =
        (RichPageTemplate) valueExpr.getValue(elctx);
      return template;
    }You should be able to get the id of this instance in Java and make it available to your popup search
    Frank

  • How to create a form based on table using dynamic page?

    Hi,
    I need to create a form using dynamic page. How do you pass values from the html form to a oracle procedure that will get executed on submission of the form ? I could not find any documents which shows how to do that. Can anyone please help me out with an example ?
    thanks,
    Mainak

    Hi,
    Something seems to get added to the form action because of "http". Hence I am removing it.
    You need to write a procedure with the values in the as parameters. Say for example you want to insert a record into dept
    table then
    Dynamic page code
    <html>
    <body>
    <form action="portalschema.insert_dept">
    <input type="text" name="p_deptno">
    <input type="text" name="p_dname">
    <input type="submit" name="p_action" value="save">
    </form>
    </body>
    </html>
    Procedure code.
    create or replace procedure insert_dept
    (p_deptno in number,
    p_dname in varchar2,
    p_action in varchar2)
    is begin
    if p_action = 'save' then
    insert into scott.dept(deptno,dname) values(p_deptno,p_dname);
    commit;
    end if;
    end;
    grant execute on insert_dept to public;
    Hope this helps.
    Thanks,
    Sharmila

  • No Pages preview in Finder

    I recently upgraded to Mavericks from Snow Leopard and at the same time also upgraded to version 5 of Pages.
    Since then, for any new documents I create, I can no longer see a preview in the Finder - I just get a large Pages icon for each document (please see screenshot below).
    Documents created with the old Pages '09 version still have their previews available in the Finder.
    I'm finding this infuriating as I'm having to open these files in Pages where I always used to use Quick Look in the Finder.
    I know there was a setting in Pages '09 Preferences/General to "Include preview in document by default" when Saving, but this does not appear to be available in Pages 5 preferences.
    I've searched these forums for anyone else having a simliar problem and cannot find anything. This is also happening with Keynote presentations.
    Apologies if I am overlooking a simple setting somewhere but any help anyone can give would be very much appreciated.
    Many thanks.

    Hello. I had a similar problem an solved it like this:
    Search for following file:
    iWork.qlgenerator
    (use advanced search in the Finder with Option "Include Systemfiles")
    Move this file (iWork.qlgenerator) to following path:
    Sytem / Library / QuickLook
    If there's no folder named QuickLook, just create one.
    That does the trick for me. Good luck.

  • Hi I have a Iphone4 in using. I couldn't find Safary, E-mail and notes from my phone one day. I made this mistake when I want to delete some programe from my phone. Who can help I recovery my phone please.

    Hi
    I have a Iphone4 in using. I couldn't find Safary, E-mail and notes from my phone one day. I made this mistake when I want to delete some programe from my phone. Who can help I recovery my phone please.
    Thanks

    Hello, HenryWang2103.
    Thank you for visiting Apple Support Communities.
    The Safari, Email and Notes applications are native to the iOS and is unable to be deleted.  Since this is the case, they are either in a folder on the iPhone, on another page or Restrictions are enabled.  You can also search for these Apps on the iPhone by touching the screen and sliding your finger down.  Here is some information regarding these features.  The information about folders is located in the user guide below.
    iPhone User Guide
    iOS: Understanding Restrictions (Parental Controls)
    http://support.apple.com/kb/HT4213
    Cheers,
    Jason H.

  • Using Replace Pages in accessible PDF's

    Hi - Brand new to this forum.  Hoping someone can help... I have an existing tagged and accessible PDF - needed content update, so did that in Word, created a new tagged and accessible PDF, and used Replace pages to insert the new pages into the existing PDF.  Acrobat Help says when you replace pages in a PDF, Acrobat adds the tags from the incoming pages to the end of the tag tree... and keeps the tags for the replaced pages.   That didn't happen - the tags from the incoming pages are not there and, in fact, the tags that were in the existing PDF are not there anymore either - now it just says "Warning, empty page".   Any ideas?

    Hi kvd,
    I guess my nomenclature may be presumptive. All I should have said is that the most appropriate method I have discovered for retaining tagging and all other accessibility functionality has been the Combine command. Replace Pages sometimes works and most of the time (lately) is doesn’t. My experience with Insert Pages has not been consistently successful either.
    What you mean by a workflow I don’t fully understand. Do you mean an automated action? Unless you consistently use the same page numbers in every document, I don't know how you could automate it. Also, I have not been able to find specific process treatment about combining tagged PDFs. This has been a result of testing and experimentation.
    Let me know if you have any other questions.

  • Use of pages in SharePoint 2010

    We would like the user to click on a link on main Team Site that will navigate the user to a page. That page will display a lot of content and will have a Content Query Web part that in turn will retrieve many documents from different library. The objective
    is to have users look at some Fast Facts. We plan to create about 5 pages each having a CQWP and showing different Fast Facts content.
    Questions:
    1. Should we design a wiki page? We don't want users to enter comments, no discussions, no social.
    2. What are the alternatives? If not a page, what is another way to meet our objectives?
    Thanks so much!
    Mayank

    You should not use wiki page for this purpose. You should go with blank web part page available in team sites (site pages library).
    Check this link for reference:
    http://sharepointsolutions.com/sharepoint-help/blog/2012/08/blank-site-template-and-team-site-template-%E2%80%93-what%E2%80%99s-the-difference/
    If you have enabled publishing feature then you can have multiple options in Pages library.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

Maybe you are looking for

  • No Calendar Display

    I have a new iPhone5 with iOS 6.0.2 installed. iCloud is set up.  My problem is I cannot get any calendar to acutally display.  I can see list of calendars, can hide names of calendars, can Show calendars, and change the color of a calendar.  But at

  • Deposit?

    Good Morning, I have been considering switching to verizon from AT&T ever since i heard about the Thunderbolt and now that it's out, i'm more motivated to do so. My question is: When i'm filling out the online information and everything, i get to the

  • When is RAW (ORF) support for Olympus E-PL7 in Lightroom or DNG Converter coming?

    When are you planning of implementing this feature? Thank you!

  • Enhancement request : _tmp_war

              Hi,           WLS 6 creates a directory tmpwar_xxx_yyy_zzz in /WEB-INF/ to store compiled JSPs.           My web-app is shared by multiple virtual hosts, then my WEB-INF contains multiple temporary directories.           First enhancement r

  • RAIDing Firewire drives

    I have 3 firewire 800 1TB drives (G RAID) drives hooked up to my system that I have just cleaned off. Previously they had all been daisy chained to the system. But I think I will now daisy chain only 2 of them as I now have 2 firewire 800 ports to wo