Load CSS dynamically in the ADF application

Hello

How to load css dynamically by application of the adf?

Version of the ADF - 11.1.1.6.0

Thank you

ASIS

Hello

Please take a look at the URL below:

http://www.Oracle.com/technetwork/developer-tools/jdev/index-092146.html [Configuration of an Application may use a custom appearance].

1. you can have a range session variable watch the skin name:

#{sessionScope.skinFamily}

2 and set the value of the name of skin on the #{sessionScope.skinFamily} before the loading of the page.

Please follow the steps above and the skinFamily name of the value to the variable expression sessionScope #{sessionScope.skinFamily}.

In this way, we can dynamically change the skinfamily when running the application.

Only a concern in this approach, is that before each page is loaded, we need to define the name of skinFamily.

Thank you

Amey

Tags: Java

Similar Questions

  • How do I view the report of jasper in a separate window in the adf application?

    Mr President.

    How do I view the report of jasper in a separate window in the adf application?

    Concerning

    User, tell us your version of jdev, please! You work on this forum long enough to find out!

    This https://technology.amis.nl/2011/07/28/adf-11g-show-pdf-in-a-popup/ blog shows how to get pdf. You will need to change the blog to generate first your repost. Here's a thread responding to the same questtionn

    Open a report in a new window ADF 11 g

    and Re: open a Jasper State in the new page using servlet

    Timo

  • What is the best way to run the report of jasper in the ADF Applications?

    Mr President.

    What is the best way to run the report of jasper in the ADF Applications?

    Concerning

    Tender Hello,

    Check out these links

    Sameh Nassar: Using Jasper report in Application of ADF (detailed)

    https://www.YouTube.com/watch?v=ezX0gdLIhs0

  • How to generate the ADF application projects

    I need to use ANT to deploy the EAR file on weblogic 10.3.5. I have download the source svn code. Then in the 11.1.1.4 Jdev, I create build.xml and build.properties for model and ViewController using Jdev.
    Then I remove all this request and re download the source code from SVN. After that, I add build.xml and build.properties to the model and ViewController. I use ant to build these 2 projects. Then, I use ojdeploy to create the EAR file.
    However, this EAR file is not correct and smaller than the EAR file created by Jdev.

    If I rebuild model and ViewController using Jdev, I can use ojdeploy to create the correct EAR file.

    < name of ora: parameter = value "nocompile" = "false" / > does not rebuild the 2 projects

    How to use ANT or ojdeploy to rebuild the ADF application?

    chk this
    http://vtkrishn.WordPress.com/2011/06/21/ojdeploy-how-to-include-taskflow-related-files-to-include/

    you delete the entry in the extract of ojdeploy

    http://one-size-doesn

  • Deploy the ADF application to manage the server - political migration jazn

    Hi Experts,

    I created a sample application web ADF and activated the ADF security. I created the ear of the application using the deployment jdevloper profile. Incase if I deploy the ear to weblogic through the weblogic console management server, the application works very well. (in this step security policies are automatically deployed in the field. However, incase if I deploy only for Server Manager, then the application does not work. in this case, when I invoke the url the browser runs all the time and refreshing but not the loaded page. If I check the policies then the they aren't there.

    I have to manually migrate the jazn policies before you deploy on the Management Server? Is there a way that can be done automatically when deploy us the ear on the server of management through the weblogic console.

    Thank you

    Hello

    for the development of business applications I suggest Oracle Enterprise manager, as shown here: http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/adf_security1/adf_security1.html

    Frank

  • JDeveloper error when you try to open the adf application

    Oracle JDeveloper Studio Edition Version 11.1.2.1.0
    Build JDEVADF_11.2.1.0_GENERIC_110907.2314.6081
    We seek to use the ADF to replace our current STRONG application.
    in any case, I was working through some of the ADF tutorials and this morning when I opened Jdeveloper, time where I hit navigator view/application, I get the following error.
    any thoughts?
    erforming action (79) About [ from  ]
    Invoking command:  [ from  ]
    Performing action (64) Application Navigator [ from  ]
    Failed to load a window
    java.lang.NullPointerException
      o.i.docking.DrawerWindow.restore(DrawerWindow.java:551)
      o.i.docking.DrawerDecorator.replaceProxyDrawer(DrawerDecorator.java:78)
      o.i.docking.DrawerUI.ensureRealHostedComponent(DrawerUI.java:584)
      o.i.docking.DrawerUI.expansionRatio(DrawerUI.java:668)
      o.i.docking.DrawerUI.expanded(DrawerUI.java:651)
      o.i.docking.DrawerWindowUI.addDrawer(DrawerWindowUI.java:498)
      o.i.docking.DrawerWindowUI.addDrawer(DrawerWindowUI.java:468)
      o.i.docking.DrawerWindowUI.access$200(DrawerWindowUI.java:84)
      o.i.docking.DrawerWindowUI$Listener.intervalAdded(DrawerWindowUI.java:213)
      o.i.docking.DrawerWindowUI.registerListener(DrawerWindowUI.java:447)
      o.i.docking.DrawerWindowUI.<init>(DrawerWindowUI.java:269)
      o.i.docking.DrawerWindow.createGUI(DrawerWindow.java:397)
      o.i.docking.DrawerWindow.getGUI(DrawerWindow.java:391)
      o.i.navigator.ApplicationNavigatorWindow.getGUI(ApplicationNavigatorWindow.java:695)
      o.i.docking.DockableWindow.getHostedComponent(DockableWindow.java:231)
      o.ii.docking.TitledPanelHolder.getOrCreateComponent(TitledPanelHolder.java:47)
      o.ii.docking.TitledPanel.setPageVisible(TitledPanel.java:902)
      o.ii.docking.TitledPanel.showClient(TitledPanel.java:879)
      o.ii.docking.TitledPanel.setClientVisible(TitledPanel.java:863)
      o.ii.docking.TitledPanel.setDockableVisible(TitledPanel.java:2149)
      o.ii.docking.DockPanel.setDockableVisible(DockPanel.java:311)
      o.ii.docking.AbstractDockPanelHost.setDockableVisible(AbstractDockPanelHost.java:71)
      o.ii.docking.DockStationImpl.setDockableVisible(DockStationImpl.java:652)
      o.ii.docking.DockStationImpl.setDockableVisible(DockStationImpl.java:598)
      o.ii.docking.DockStationImpl.setDockableVisible(DockStationImpl.java:582)
      o.i.docking.DockableWindow.setDockableVisible(DockableWindow.java:162)
      o.i.docking.DockableWindow.show(DockableWindow.java:143)
      o.i.docking.DockUtil.showDockableWindow(DockUtil.java:33)
      o.ideri.navigator.ShowNavigatorController.handleEvent(ShowNavigatorController.java:49)
      o.i.controller.IdeAction$ControllerDelegatingController.handleEvent(IdeAction.java:1469)
      o.i.controller.IdeAction.performAction(IdeAction.java:662)
      o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:1140)
      o.i.controller.IdeAction.actionPerformed(IdeAction.java:617)
      jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      jx.s.AbstractButton.doClick(AbstractButton.java:357)
      jx.s.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
      jx.s.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
      j.a.Component.processMouseEvent(Component.java:6289)
      jx.s.JComponent.processMouseEvent(JComponent.java:3267)
      j.a.Component.processEvent(Component.java:6054)
      j.a.Container.processEvent(Container.java:2041)
      j.a.Component.dispatchEventImpl(Component.java:4652)
      j.a.Container.dispatchEventImpl(Container.java:2099)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
      j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
      j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
      j.a.Container.dispatchEventImpl(Container.java:2085)
      j.a.Window.dispatchEventImpl(Window.java:2478)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
      j.a.EventQueue.access$000(EventQueue.java:85)
      j.a.EventQueue$1.run(EventQueue.java:603)
      j.a.EventQueue$1.run(EventQueue.java:601)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      j.a.EventQueue$2.run(EventQueue.java:617)
      j.a.EventQueue$2.run(EventQueue.java:615)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.a.EventQueue.dispatchEvent(EventQueue.java:614)
      o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
      o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
      j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      j.a.EventDispatchThread.run(EventDispatchThread.java:122)

    My guess is that at some point your JDeveloper was out with force.
    Try to delete this file:
    C:\Users\yourUser\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\o.ide\windowinglayout. XML
    and restart JDeveloper
    If this does not resolve the removal of the directory issue integer o.ide and restart JDeveloper
    and if it does not help remove the directory of the entire system.

  • dynamically change the HomeScreen application title

    Hi all

    As you know, we can dynamically change the application ICON on the home screen,

    what I want to know how to change the title of the application on the home screen.

    I mean when the user foucs on my application, text will appear on the screen.

    When I change an ICON, I want that the text will be changed according to the new icon.

    Is this possible?

    Thank you.

    Try the HomeScreen class - see the documentation of the api for HomeScreen.setName)

  • [ADF, JDev12.1.3] How to manage cookies (configure/create/read) in the ADF applications?

    Hallo,

    I would like to create a cookie in my ADF application.

    To start I used the code shown in this thread code example for create / read a cookie value? but the cookie seems to not be created.

    It is not present in Firebug or it can be retrieved by the code.

        Cookie userCookie = new Cookie("myCookie", "hello");
        userCookie.setMaxAge(-1);
        FacesContext ctx = FacesContext.getCurrentInstance();
        ((HttpServletResponse) ctx.getExternalContext().getResponse()).addCookie(userCookie);
    
    
        Cookie retrieveCookie = (Cookie) ctx.getExternalContext().getRequestCookieMap().get("myCookie");
        if (retrieveCookie != null)
          System.out.println("My cookie is: " + retrieveCookie.getName() + " " + retrieveCookie.getValue());
    

    What's not in the code?

    There may be something to confiure in the application of the ADF?

    Thank you

    Federico

    1. Cookie userCookie is new Cookie ("MyCookie", "Hello");.
    2. userCookie.setMaxAge(-1);
    3. FacesContext ctx = FacesContext.getCurrentInstance ();
    4. (Ctx.getExternalContext () m:System.NET.FtpWebRequest.GetResponse ()) .addCookie (userCookie) (HttpServletResponse);
    5. Cookie retrieveCookie = ctx.getExternalContext () .getRequestCookieMap () .get ("myCookie") (Cookie);
    6. If (retrieveCookie! = null)
    7. System.out.println ("my cookie is:" + retrieveCookie.getName () + "" + retrieveCookie.getValue ());

    Is - this code is run from the same method in java?

    If this will not work (cookie is added to the http response if you can't get this until the next http request arrives)

    Dario

  • The ADF application deployment error

    Hi all

    We get another error in the SOA application

    Each time that attempted to deploy the ADF for the application (.) The EAR) in soa_server1, it gave me error archive invalid soa.

    Help, please.

    Hello

    Thanks for posting.

    The above error isony because we can deploy only archive SOA (.) SAR files) on SOA_server1 managed server.

    We can deploy only SOA archive (.) SAR files) on SOA_server1 managed server. We cannot deploy ADF (.) Applications of EAR) in SOA_server1 managed server. To deploy the ADF (.) Applications of EAR) we must deploy either Jdev Weblogic Console.

  • The Adf Application version

    Hi Experts,
    Y at - it a way through which I can add versions in my jDev Adf Applications.My Version is 11.1.1.5.0.
    Thank you
    Raul

    To do this, you include a MANIFEST. MF file to your gall of the EAR that contains a line like

    WebLogic - Version of the Application:

    It is picked up during the deployment. For more information see http://andrejusb.blogspot.de/2011/12/how-to-set-ear-version-for-adf.html

    Timo

  • Transaction management in the ADF Application using Dynamic Shell

    Hi all

    I use Jdev 12.1.2. We have an application built using design pattern of Shell of dynamic user interface where each workflow in the application will open in a separate tab. So my question here relates by using transaction management in the workflow.

    I read in many places where we are asked to avoid always using "start new Transaction" as it would open multiple connection. But I also vaguely remember reading that best practices to use in an application built using by using Dynamic user interface Shell, is to have isolated Datacontrol with always start new Transaction.

    So could indicate the recommended approach for impact Shell of the user interface and the performance of the approach?

    Note: We have just a data control in our application.

    Thanks in advance.

    Hello

    the transaction is not defined by the shell of the dynamic tab but the workflow. The shell of the dynamic tab displays only the workflow at a glance. If you plan to display a single feed task several times as tabs in a dynamic tab shell, each indicating a different set of data, then you use "isolate" scope of data control or "adaptive databinding (https://blogs.oracle.com/groundside/entry/towards_ultra_reusability_for_adf). If you are using remote data controls then - if you use ADF BC - each instance of the workflow (in shell dynamic tab tab) creates its own connection to the base and the transaction. Workflow transaction parameters are passed to it.

    So use case issues: If you only display a single instance of a workflow tasks at once in a tab of the shell of the dynamic tab so that you can use the scope of shared control (default) data without doing anything. I however you must show the same workflow multiple times then reach isolated from control data or link Adaptive is the implementation, you should go for. The first option - data control isolated - is expensive because it creates additional database connections. There if its use cases.

    Frank

  • Popup of console log in Chrome for the Javascript code for the Adf application

    Hello

    I use JDev 11.1.1.7.

    In our application, I used the same code as in the example (http://www.oracle.com/technetwork/testcontent/27-long-running-queries-169166.pdf) adf code corner next.

    I used this code to my command button on my page.

    The problem is, when you run the application in the browser Chrome, clicking this command button displays a warning for javascript popup (Please find below printscreen).js_error_popup.png

    The application is not break and continues to work even if this popup comes.

    I tried with other browsers, it is works well and do not show this javascript error.

    You can all help to suggest? Is there something wrong with the javascript code? Thank you.

    Best regards

    cmoster

    Hi Timo,

    The problem is now resolved.

    We have corrected by adding these params of context in the web.xml file to work around the problem.

        org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT

        fake

     

     

        oracle.adf.view.rich.profiler.ENABLED

        fake

     

     

        oracle.adf.view.rich.LOGGER_LEVEL

        OFF

     

     

        oracle.adfinternal.view.faces.DISABLE_CONTENT_COMPRESSION

        fake

     

    Best regards

    cmoster

  • View database do not update the ADF application

    Greetings,

    IM facing a weird problem in my application (11.1.2.4.0 - ADF JDeveloper). All this time I was working directly with tables (VO), but now I also started to use database views.

    Everything works fine, when I add a new row in a table that is associated with my point of view of database it refresh properly.

    BUT if I manually remove lines of my database, the view is not updated in my application, not by refreshing the page.

    redeploy the application, execution of the query of the view inside the view object object. The only way to display the DB to be

    update inside the JDeveloper and at the time of deployment is to restart JDeveloper. I try to add an action on my OV of the re - run when

    I do something in particular, I hope that will reset the cache and retrieve the view DB again, but without success...

    Fixed: now, it's not yet update on restart jdeveloper.

    Just for accuracy, I'm talking about database views, and not only opposing views. I create a view of the object inside the application to retrieve data

    According to the results of the database view.

    Can you help me on this please?

    Yes the queries in SQLDeveloper showed me the correct results.

    But I am disappointed... When I went to close SQLDeveloper to try something, it me pop a message to change commit / rollback.

    After I commit to them, my app show too many correct results.

  • Cannot use JaxB classes in the ADF application.

    Hello

    I use JDeveloper 11.1.1.6

    I'm calling the Ruleset of Oracle (OBR) business rules from the interface.

    When I call a simple rule using only Java facts (facts are classes object references that are used in OBR) as input, the rules are checked and executed correctly.

    After that, I tried to give facts XML as input to the application undergoes ClassNotFoundException.

    To access XML facts, that I had to add the class XML is known as JAXB_CLASSES in the libraries and the Classpath in the project properties.

    I first tried to call the rules OBR containing the XML facts / Jaxb_classes of the page and he throwed ClassNotFoundException while deploying the application.

    Then, I tried to call the Jaxb_classes of the main method and it worked fine.

    My Question is: How can I access JAXB Classes in an ADF view controller project / Application?

    Thank you

    Nigel.

    If the rule engine does not pick up libraries. Don't know what you can do about it from the perspective of applications. You can try to install the libraries on the server before deploying the and launched the application. Once the jars are in the class path of servers it should work.

    Timo

  • Connection of the ADF application module

    I use JDeveloper 11.1.1.6

    I would like some advice of good practices on how to manage properly the connection module of the application.

    Here is a code example. I want to know if she properly managed in terms of DB, statement and result set connection? No optimization?

    CallableStatement stmt = null;

    Connection Conn = null;

    ResultSet rset = null;

    String sql = "start Process_query(?,?); end; « ;

    MyAppModuleImpl m = dc_bc.getDataControl () .getApplicationModule () (MyAppModuleImpl);

    try {}

    stmt = am.getDBTransaction () .createCallableStatement (_getAttributesStatement, 0);

    Connection Conn = st.getConnection ();

    ArrayDescriptor = attributeDescriptor

    ArrayDescriptor.createDescriptor ("PARAMS_TAB", conn);

    String [] [] attributes = / / initialize the table attributes;

    AttributesArr = ARRAY

    New ARRAY (attributeDescriptor, conn, attributes);  oracle.sql.ARRAY

    stmt.setArray (1, attributesArr);

    stmt.registerOutParameter (2, java.sql.Types.VARCHAR);

    ResultSet rset = stmt.executeQuery (sql);

    do something here

    } catch (Exception e) {}

    _logger. Sever (e);

    throw e;

    } {Finally

    try {}

    If (conn! = null)

    Conn.Close ();

    } catch (SQLException sqle) {}

    _logger. Warning (sqle);

    }

    try {}

    If (stmt! = null)

    stmt. Close();

    } catch (SQLException sqle) {}

    _logger. Warning (sqle);

    }

    try {}

    If (rset! = null)

    RSet.Close ();

    } catch (SQLException sqle) {}

    _logger. Warning (sqle);

    }

    }

    UPDATE:

    According to Timo, I reorganized the code as follows:

    In MyAppModuleImpl I have a processQuery() method

    public String processQuery (String [] [] attributes) {}

    CallableStatement stmt = null;

    Connection Conn = null;

    ResultSet rset = null;

    String sql = "start Process_query(?,?); end; « ;

    try {}

    stmt = getDBTransaction () .createCallableStatement (_getAttributesStatement, 0);

    Connection Conn = st.getConnection ();

    ArrayDescriptor = attributeDescriptor

    ArrayDescriptor.createDescriptor ("PARAMS_TAB", conn);

    AttributesArr = ARRAY

    New ARRAY (attributeDescriptor, conn, attributes);  oracle.sql.ARRAY

    stmt.setArray (1, attributesArr);

    stmt.registerOutParameter (2, java.sql.Types.VARCHAR);

    ResultSet rset = stmt.executeQuery (sql);

    do something here

    } catch (Exception e) {}

    _logger. Sever (e);

    throw e;

    } {Finally

    try {}

    If (conn! = null)

    Conn.Close ();

    } catch (SQLException sqle) {}

    _logger. Warning (sqle);

    }

    try {}

    If (stmt! = null)

    stmt. Close();

    } catch (SQLException sqle) {}

    _logger. Warning (sqle);

    }

    try {}

    If (rset! = null)

    RSet.Close ();

    } catch (SQLException sqle) {}

    _logger. Warning (sqle);

    }

    }

    }

    Then in my grain of support, I'm going to call this method

    MyAppModuleImpl am = (MyAppModuleImpl) dc_bc.getDataControl () .getApplicationModule ();

    try {}

    [ String []] attributes = / / initialize the table attributes;

    AM. processQuery (attributes);

    } catch (Exception e) {}

    manage the code here

    }

    My question is in MyAppModuleImpl,

    I got the connection, statement and result set. But I doubt that I really need to close the connection (in bold)?

    Well, the JNDI Data Source is recommended because you can reconfigure it without redeploying app and connection pool can be shared between different applications on the same server app...

    In fact, in my app, we use JNDI, is it out of the frame?

    Framework will publish connection acquired by AM to the connection pool, and application server (WLS) will manage connections in the connection pool.

    Dario

Maybe you are looking for