ADF 11g - persist users component state to database - af:panelCollection

Hi all
We have a case where we require the state of a component, an af:panelCollection in this instance, to be saved to the database for each user of the application. This data is then retrieved upon application startup when it will be used to set the initial state of the af:panelCollection.
The logic to achieve the above is outlined in the following post:
http://technology.amis.nl/blog/4595/adf-11g-persisted-run-time-user-ui-personalization-or-impatient-mans-mds
We have used the above resource to implement the manipulation of the af:panelCollection accordingly but we now wish to persist this data to the database, it is currently hard coded.
Any help is greatly appreciated
Regards
Tony

Hi,
the next release of JDeveloper 11g (planned for summer) provides MDS, which helps you with a repository based approach for end user personalization. I think that if you can wait then it makes sense to do so instead of implementing functionality on your own that sooner or later you find in the product.
If you can't wait then all you can do is to setup listeners that detect changes (attribute listener work in many cases) and persist the information for the page, component ID and user
Frank

Similar Messages

  • ADF 11g - Proxy User

    Hi,
    We have configured our APP with a datasource but have a problem...
    A lot of our database packages / triggers make use of the explicit 'user' which means that although our app is authenticating
    as "tester" (against an LDAP V3 Repository - OID) , our triggers update with the underlying data source connection ('bto') rather than our authenticated user.
    In 10.1.3.3 we had to use a custom proxy authentication class, which only worked with 1 app deployed in a container and required JDBC credentials
    Does anyone know of any way to do this in 11g in a better fashion?
    Any help is appreciated
    Thanks

    In 10.1.3, the way to use a Database Proxy User was to override the prepareSession() method of your application module to do something like this:
      protected void prepareSession(Session session) {
        Statement st = null;
        try {
          st = getDBTransaction().createPreparedStatement("rollback",0);
          OracleConnection oConn = (OracleConnection)st.getConnection();
          Properties props = new Properties();
          props.put("PROXY_USER_NAME",   ___ActualUserName___  );
          oConn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME,props);
        catch (SQLException s) {
          // ignore
        finally {
          if (st != null) {
            try {
              st.close();
            catch (SQLException s) { /* ignore */ }
        super.prepareSession(session);
      }

  • Reg: Exporting the data into excel in ADF 11g application.

    Hi All,
    We have developed an application in ADF 11g which retrieves the data from database in the form of table. Now we have a requirement to export that data into an excel sheet.
    Can anyone please help us regarding this.
    Thanks,
    Harsha

    Hi Harsha,
    you can use <af:exportCollectionActionListener /> component to do that. Set the exportedId property to point to of the table. You have options to export all rows or only selected rows.
    <af:commandToolbarButton text="Export All Rows to Excel" immediate="true"
                                                   id="exportAll">
    <af:exportCollectionActionListener type="excelHTML" exportedId="table"
                                                     filename="export.xls"
                                                     title="ADF Faces Export - All" exportedRows="all"/>
    </af:commandToolbarButton>
    <af:commandToolbarButton text="Export Selected Rows to Excel" immediate="true"
                                            id="exportSelected">
    <af:exportCollectionActionListener type="excelHTML" exportedId="table"
                                                     filename="export.xls"
                                                     title="ADF Faces Export - Selected Rows"
                                                      exportedRows="selected"/>
    </af:commandToolbarButton>Good Luck,
    Luc Bors

  • ADF 11g  Date input

    I am using date input component in ADF 11g.
    This component let u select only date. but I want the user be able to select date and time as well.
    which date component should I drop on page ?
    thx
    p

    All you have to do to see it in action is give your ADF BC EO date field the type of Timestemp instead of Date, and possibly add a nice format mask under the UI hints like: yyyy-MM-dd HH:mm:ss
    But, I do not have Entity Object in my application. ADF page was generated as part of "right click BPEL Human Task ---- Auto generate ADF Task Form".
    How do I have time as well in this case ?
    thx
    p

  • ADF -11g : Question on how to create a pivot table

    Hi,
    I am trying to create a dynamic pivot table (the number of column and row layers change for each request) and I cannot use a data base structure to back it up.
    I thought of doing it through a managed bean but in order to do it I need to know how to create the PivotTableModel.
    The pivot table model requires a data source object and I do not know how to create it to support multiple row and column layers.
    Is there a default data source object that I can extend, or better yet is there a written example on how to create a pivot table model using a managed bean.
    Thanks,
    Or
    Edited by: user638363 on Dec 18, 2008 7:02 AM

    Hi,
    beyond the documentation, the pivot table is described in
    http://technology.amis.nl/blog/2593/adf-faces-11g-reloading-the-matrix-using-the-pivot-table-component
    http://technology.amis.nl/blog/3786/creating-a-salary-heat-map-with-the-adf-11g-faces-pivottable-component
    http://technology.amis.nl/blog/3673/adf-11g-richfaces-a-closer-look-at-the-pivot-table-data-visualization-component
    I am not aware of any sample that directly meets your requirement
    Frank

  • How to audit alter user sql statements in Oracle 11g.

    I want to audit all the alter user sql statements that show who is altered with what sql stment including the connections performed by sys and system.
    Ex: If I use the command : alter user xxx quota 50 GB on users;
    Then how can i grab this sql stement and who performed it with the timings.

    Pl post OS and database versions.
    What have you learned from the documentation ?
    http://download.oracle.com/docs/cd/E11882_01/server.112/e26088/statements_4007.htm#SQLRF01107
    http://download.oracle.com/docs/cd/E11882_01/network.112/e16543/guidelines.htm#DBSEG508
    What have you tried to implement so far ?
    HTH
    Srini

  • ADF 11g SelectOrdershuttle editing the items...

    Hi,
    I am using selectordershuttle compenent to display the User levels on the adf 11g page.
    How can i edit and delete the values which are in the shuttle component?
    Thanks in advance.
    CM

    Hi,
    if you bind the shuttle to a List<SelectItem> in a managed bean you only need to take entries out of this list. Its a bit more difficult using ADF list bindings unless you are happy to delete the referenced list items from the database. However, ADF bindings also allow you to remove objects from the collection that builds the list. You should be able to access the iterator binding used by the list binding, get the row to remove and remove it from the collection (don't use the remove or delete operations in this case).
    Frank

  • Reg: Table size adjustments in adf 11g application.

    Hi All,
    We have developed an application in ADF 11g. In this we fetching the tables from the database. When viewed, the size is not appropriate. We need to adjust the width and height of the tables as default.
    Can anyone help us regarding this.
    Thanks,
    Shanmukh

    Hi Shanmukh,
    If you wrap your table in a component that stretches its children, your table will be adjusted to fill aviable space.
    Try to surround the table with an <af:panelcollection/> or an <af:panelsplitter/> or an <panelStretchLayout/>.
    This should work.
    Good Luck,
    Luc Bors

  • Error when invoking worklist api from adf 11g

    Hi,
    I am using ADF 11g. This application invokes Worklist Application APIs. When I try to login it throws this error. Basically it throws error at worklist application authentication. Am I missing any jar files? These are the jar files I included in the project.
    Bpm-services.jar
    Bpm-workflow-datacontrol.jar
    Oracle.soa.workflow.jar
    Wsclient.jar
    javax.servlet.ServletException: oracle/tip/pc/infra/exception/PCException
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NoClassDefFoundError: oracle/tip/pc/infra/exception/PCException
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:36)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:36)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:36)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:247)
         at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:204)
         at weblogic.rmi.utils.WLRMIClassLoaderDelegate.loadClass(WLRMIClassLoaderDelegate.java:135)
         at weblogic.rmi.utils.Utilities.loadClass(Utilities.java:306)
         at weblogic.rjvm.MsgAbbrevInputStream.resolveClass(MsgAbbrevInputStream.java:399)
         at weblogic.utils.io.ChunkedObjectInputStream$NestedObjectInputStream.resolveClass(ChunkedObjectInputStream.java:257)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
         at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:564)
         at weblogic.rjvm.ResponseImpl.getThrowable(ResponseImpl.java:190)
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:232)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl_1031_WLStub.authenticate(Unknown Source)
         at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.authenticate(TaskQueryServiceRemoteClient.java:103)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.invokeTarget(WFClientRetryInvocationHandler.java:121)
         at oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.invoke(WFClientRetryInvocationHandler.java:67)
         at $Proxy133.authenticate(Unknown Source)
         at task.TaskBacking.getWorkflowContext(TaskBacking.java:103)
         at task.TaskBacking.updateTaskStatus(TaskBacking.java:125)
         at task.TaskBacking.approveInvoiceTask(TaskBacking.java:159)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1245)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:91)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:91)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:81)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:673)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         ... 34 more
    Caused by: java.lang.ClassNotFoundException: oracle.tip.pc.infra.exception.PCException
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:55)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:36)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         ... 127 more
    Thanks
    Saru

    I added the jar files and I don;t get the exception anymore. I am able to login in as weblogic and the application works fine. When I login in as anyother user I get this error. Where is this pc.properties?
    Warning: Could not locate file pc.properties in classpath
    ORABPEL-30501
    Error in authenticating user.
    Error in authenticating and creating a workflow context for user jazn.com/pat.
    Verify that the user credentials and identity service configurations are correct.
    Thanks
    Saru

  • OLT 12.2.0.1 & ADF 11g R2 (11.1.2.3)

    Hi,
    I am evaluating the OLT ADF Module for testing applications developed with JDeveloper/ADF 11g R2.
    Unfortunately, the latest version of JDeveloper/ADF 11.1.2.3(PS3) looks like not compatible with OLT release 12.2.0.1 (Openscript 12.2.0.1 Build 238). During the playback I get the error “Failed to solve variable web.framesrc.afrPushIframe using path .//IFRAME[@name='afr::PushIframe']/@src“ even in a very simple “hello world” application.
    Conversely the same project running in JDeveloper/ADF 11.1.2.1 (PS1) works fine.
    In the OpenScript Users’ Guide there is no reference for ADF R2 but only for only for the ADF R1.
    Is the ADF 11g R2 supported in the current release of OLT ?
    Additionally if anyone has any tip for how to use the OLT 12.2.0.1.0 with ADF R2 PS3 it would be very helpful to share it with me.
    Yiannis

    Tses wrote:
    Am I the only one in the world who tried ΟLT 12c with ADF 11g R2 PS3 ?
    :-(Hi! You're not alone :)
    We tried to record some load tests (OpenScript 12.2.0.1 Build 223) for our ADF R2 application.
    But during the playback I had the same error: "Failed to solve variable web.framesrc.afrPushIframe using path .//IFRAME[@name='afr::PushIframe']/@src ".
    Haven't you found the solution yet?
    By the way, when I use operation "Revert to Recorded" for all nodes of my test and playback it again, I see in results that the script has passed without errors, but nothing has changed in database.
    Thanks.
    Natalie

  • Oracle ADF 11G R1 and 11G R2 and Internet Explorer 11 Support

    Hello,
    We are using Oracle ADF 11G R2 (11.1.2.4), and now that Microsoft has pushed Internet Explorer 11 to Windows 7 and Windows 8 computers, we are finding that our application is not working with IE11.
    You get the popup that states "You are using an unsupported browser", and while everything renders on the screen, the application does not respond to user clicks.
    Does anyone have workaround for IE11, and if anyone from Oracle is reading, can you give any tentative guidelines for IE11 support.
    Thanks.

    Here's one workaround
    Jonas de Graaff weblog: How to run your ADF 11.1.x application under IE 11: a workaround
    http://jonasdegraaff.blogspot.nl/2013/11/how-to-run-your-adf-111x-application.html

  • Refreshing predefined theme based FOI in ADF 11g

    I am working on Jdeveloper 11g using ADF on a mapviewer application (i.e. geographical maps). I managed to display the base map and predefined theme FOI. I am now trying to just refresh the theme based FOI (predefinedTheme1) on user clicking the 'Refresh Now' command button, How do I do it?. I am attaching the JSPX file with the code.
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    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=windows-1252"/>
    <f:view>
    <af:document>
    <script type="text/javascript">
    <![CDATA[
    var mapview;
    baseURL = "http://"+document.location.host+"/mapviewer";
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    alert(baseURL);
    function refreshFoi()
    var themebasedfoi1 = mapview.getThemeBasedFOI('themebasedfoi1');
    var themebasedfoi2 = mapview.getThemeBasedFOI('themebasedfoi2');
    var themebasedfoi3 = mapview.getThemeBasedFOI('themebasedfoi3');
    var themebasedfoi4 = mapview.getThemeBasedFOI('themebasedfoi4');
    themebasedfoi1.refresh();
    themebasedfoi2.refresh();
    themebasedfoi3.refresh();
    themebasedfoi4.refresh();
    function autoRefresh()
    if ((document.getElementById('foiVisible').checked) && (document.getElementById('refreshAuto').checked))
    refreshFoi();
    ]]>
    </script>
    <af:messages/>
    <af:form>
    <af:panelWindow closeIconVisible="false"
    title="Oracle Maps in JDeveloper 11g" id="pw1">
    <dvt:mapToolbar mapId="map"/>
    <dvt:map id="map" startingX="-100.04" mapServerConfigId="mapConfig1"
    baseMapName="MVDEMO.DEMO_MAP" mapZoom="0"
    startingY="40" unit="METERS"
    inlineStyle="width:100%; height:600px;"
    partialTriggers="::cb1">
    <dvt:predefinedTheme id="predefinedTheme1"
    themeName="MVDEMO.CUSTOMERS"/>
    </dvt:map>
    </af:panelWindow>
    <af:selectBooleanCheckbox
    label="Show Locations" id="foiVisible"/>
    <af:selectBooleanCheckbox
    label="Auto Refresh" id="refreshAuto"/>
    <af:commandButton text="Refresh Now" id="cb1" action="refreshFoi()"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks

    I am attaching the jspx file and the backing bean. I want to know how do I now refresh the predefinedtheme1.
    JSPX file
    <?xml version='1.0' encoding='windows-1252'?>
    <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:dvt="http://xmlns.oracle.com/dss/adf/faces" >
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document id="d1" binding="#{backingBeanScope.backing_AVMap.d1}">
          <af:form id="f1" binding="#{backingBeanScope.backing_AVMap.f1}">
            <af:panelStretchLayout binding="#{backingBeanScope.backing_AVMap.psl1}"
                                   id="psl1" bottomHeight="55px">
              <f:facet name="bottom">
                <af:panelGroupLayout layout="scroll"
                                     xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                     binding="#{backingBeanScope.backing_AVMap.pgl1}"
                                     id="pgl1">
                  <af:panelGroupLayout binding="#{backingBeanScope.backing_AVMap.pgl2}"
                                       id="pgl2">
                    <af:commandButton text="Refresh Now"
                                      binding="#{backingBeanScope.backing_AVMap.cb1}"
                                      id="cb1"
                                      action="#{backingBeanScope.backing_AVMap.refresh}"/>
                  </af:panelGroupLayout>
                </af:panelGroupLayout>
              </f:facet>
              <f:facet name="center">
                <af:group binding="#{backingBeanScope.backing_AVMap.g1}" id="g1">
                  <dvt:mapToolbar mapId="map"/>
                  <dvt:map startingY="40.0" startingX="-100.04" mapZoom="0"
                           mapServerConfigId="mapConfig1"
                           baseMapName="MVDEMO.DEMO_MAP"
                           inlineStyle="width:97%; height:681px;"
                           binding="#{backingBeanScope.backing_AVMap.m1}" id="map">
                    <f:facet name="rtPopup"/>
                    <f:facet name="popup"/>
                    <dvt:predefinedTheme id="*predefinedTheme1*"
                                         themeName="CUSTOMERS"/>
                  </dvt:map>
                </af:group>
              </f:facet>
              <f:facet name="top"/>
            </af:panelStretchLayout>
          </af:form>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_AVMap-->
    </jsp:root>Backing bean
    package backing;
    import oracle.adf.view.faces.bi.component.geoMap.ThemeFOI;
    import oracle.adf.view.faces.bi.component.geoMap.UIGeoMap;
    import oracle.adf.view.rich.component.rich.RichDocument;
    import oracle.adf.view.rich.component.rich.RichForm;
    import oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout;
    import oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import org.apache.myfaces.trinidad.component.UIXGroup;
    public class AVMap {
        private RichForm f1;
        private RichDocument d1;
        private RichPanelStretchLayout psl1;
        private UIGeoMap m1;
        private UIXGroup g1;
        private RichCommandButton cb1;
        private RichPanelGroupLayout pgl1;
        private RichPanelGroupLayout pgl2;
        public void setF1(RichForm f1) {
            this.f1 = f1;
        public RichForm getF1() {
            return f1;
        public void setD1(RichDocument d1) {
            this.d1 = d1;
        public RichDocument getD1() {
            return d1;
        public void setPsl1(RichPanelStretchLayout psl1) {
            this.psl1 = psl1;
        public RichPanelStretchLayout getPsl1() {
            return psl1;
        public void setM1(UIGeoMap m1) {
            this.m1 = m1;
        public UIGeoMap getM1() {
            return m1;
        public void setG1(UIXGroup g1) {
            this.g1 = g1;
        public UIXGroup getG1() {
            return g1;
        public void setCb1(RichCommandButton cb1) {
            this.cb1 = cb1;
        public RichCommandButton getCb1() {
            return cb1;
        public void setPgl1(RichPanelGroupLayout pgl1) {
            this.pgl1 = pgl1;
        public RichPanelGroupLayout getPgl1() {
            return pgl1;
        public void setPgl2(RichPanelGroupLayout pgl2) {
            this.pgl2 = pgl2;
        public RichPanelGroupLayout getPgl2() {
            return pgl2;
        *public void refresh(){*        System.out.println("In refresh method");
    }Edited by: Shay Shmeltzer on Apr 2, 2010 10:15 AM

  • ADF 11g inheritance problem

    Hi
    Giving a look on ADF 11g model Business Components, I tried to have a generic component A and its extended component B.
    A has an id primary key attribute and if i generate a database table it has the PK generated, but B has no PK generated since the extended attribute is marked with the PK property.
    I used Jdeveloper 11g 11.1.1.1.0, and built two components from a BC diagram.
    Questions,
    is it a good practice to have a master generic component with common id version and audit attributes ?
    why the pk constraint is not built on database table for extended components ?
    Thanks for your answers
    Edited by: jpgora on 12 août 2009 10:19

    The screen goes normal when I place the cursor over the top of the app and I don't get any height=100% on my page.
    I noticed that some pages that have the table component on it don't get this bug.
    I see the last release and the EL to get the agent detects the IE8 normally but that is some way to port my app to it??
    Thanks in advance,
    Renan.

  • DBMS based custom login module for ADF 11g on Web Logic Server (10.3.1.0)

    We have the requirement of creating a login page, wherein the authentication is performed against users records stored in a specific table in Oracle Database. The ADF 11g developer guide does not provide any example to accomplish the same. Though there are numerous examples of achieving the same using OC4J, but there is none available to achieve this on Web Logic Server. Do we have any documentation or information available on this?

    User,
    Have a search on the forum or check the WLS documentation. WLS has built-in authenticators for this that you can likely use.
    John

  • OpenScript recording is slow with FireFox and ADF 11g

    Hi everybody;
    I trying the OpenScript for recording some scenarios, and I am facing some problems:
    1-     When I use the internet explorer (IE) it records fine with an acceptable speed, but when I replay the recorded script it misses out the fields and the links that I clicked, meaning: it starts to highlight other places on my page which I didn’t click while I was recording.
    2-     When I use FirexFox, I get other kind of problems. First the recording is unbelievably slow. It might take a minute or two for every link I click to respond. Also when I replay the script it executes faster than it did while recording but much more slower than doing the same scenario in real time meaning: doing it directly on the browser by a real user.
    Kindly note that my application is an ADF 11g application with EJB3 and the application server is Weblogic 11 and the database is oracle 10g.
    Any ideas will be appreciated
    Thank you all

    Note that Firefox 36 has been released officially.
    *https://www.mozilla.org/en-US/firefox/36.0/releasenotes/
    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to install for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating

Maybe you are looking for

  • Report Engine

    i am trying to install Oracle Developer Suite 10 g rel 1 over RHEL 5.3 64 bit, the installation pre-req stuck due to the following rpms. pdksh-5.2.14-21 openmotif21-2.1.30-8 gnome-libs-1:1.4.1.90-34.1 compat-libstdc++-devel-7.3-2.96.128 compat-libstd

  • 3220 - tesconet

    I have recently purchased a Nokia 3220. I am unable to connect the phone to my PC. I have downloaded the necessary drivers but whenever I try to connect all I get is a message saying enhancements not supported. I know that the drivers and cables work

  • View web pages locally?

    I'd like to view a website from local storage, using the Browser (not the HTML Viewer), is that possible? I transferred the site to a USB flash drive and plugged it in, thinking I could access it something like this: file:///usb/index.html But if tha

  • Help with changing ID

    Hello, by mistake I made my iCloud address is [email protected], and it should be [email protected]  I have not been able to change it....could someone tell me how?  Thanks!

  • New to BW Need Assistance

    Hi all! I've just been assigned to a BW project and have been given a short introduction to BW. I've been doing some reading but I need help on how to go about creating reports. How to use Bex and the Modeling Tool. How to go about creating an infoso