ADF Faces & BC: work done Toolkit.getDefaultToolkit ()?

I have the following lines of code in a managed bean.

Toolkit toolkit = Toolkit.getDefaultToolkit ();
Dimension size = toolkit.getScreenSize ();


Locally, it works, but not luck once deployed.


This does not work because:
1. I am trying to run native code to the OS server-side.
2. from security restrictions of client computer that prevents access to the operating system information.
3. None of the above?

Thank you very much
Wes

Wes,

Because this code runs on the application server and not on your PC - client, it is the size of the Server screen. According to the version of java, if you run a server without a head (one without a video card), you get an error.

There is no general way for code that runs on the server to reach your browser-operation-pc and determine the size of the screen. Has nothing to do with the ADF at all.

Best,

John

Tags: Java

Similar Questions

  • ADF BC working with libraries of components of UI (except ADF Faces)

    Hello world

    I use JDev + ADF version: 12.1.2.0.0.

    I was wondering and also try to create an application of Fusion (using jsf, jsp pages not) but with other libraries of components, PrimeFaces and RichFaces rather than ADF faces. You could probably ask "why?" I'm really interested to integrate all the benefits that come from the ADF BC and use of a comprehensive library of user interface components (which could compensate for some missing components of the ADF Faces). My first choice would be on PrimeFaces, since it is entirely compatible JSF 2.0 and is the market leader. But my question is: is it still possible? If Yes, how can I do this? Note that my problem is not to put a simple component in a jsp page as in this tutorial: https://www.youtube.com/watch?v=-wHKWYwgr4o . But instead the exposure of data with these components controls, through the link layer (or the only possible way does all this programmatically?).

    PS: I tried to do the same procedure that Shay has shown on the tutorial above for PrimeFaces, but it seems that the pots of primefaces-4.0/3.5 do not have a definition of taglib included. AM I missing something or is it just that the community primefaces version does not include it?

    Thank you in advance!

    I managed to make it work. I had actually left behind the use of the taglib, but there are other problems with PrimeFaces. It seemed that there was some sort of conflict of the lifecycle when used in a merger application. For example, a simple submit button could not run its binded action, and all components with built-in ajax functionality had issues like this.

    The solution: I had to create another object of ViewController and remove all the adf associated configuration files (in my case, just adfc-config. XML). so I have an application with both a project for the "web" version and another for mobile. Of course, while deploying I include only one of them.

    NOTE: This method above works fine when you deploy in WLS. But another step is necessary in the event of deployment in Glassfish.

    1. After you have created an ear, I have to manually change the file "web.xml" in the package of the war, because while that JDev packages include some filters are specific for the ADF. In fact, I replace this file with the one used during development.

    2. starting at the war, remove all the libraries, with the exception of: jsf - api .jar, jsf - impl.jar, primefaces.jar and welding - integration.jar (if there are others).

    Hope this helps someone else.

  • including the extension in jdeveloper with ADF Faces?

    Hello

    We have an application with ADF Faces components that must be migrated to OracleAS weblogic 11 g Server (10.3.5).

    We strive to upgrade the application under jdeveloper 11.1.1.5.0.  I have 3 questions.

    1. which the ADF jdeveloper extension should download us for this purpose?

    We already seem to have the extensions 'Fusion Web Applications (ADF)' and ' Applications Java Desktop (ADF) "."

    2. during the upgrade, we were given an option to upgrade the ADF Faces in Trinidad, when this option has been chosen, we got a "unexpected mistake."

    is it necessary to go to TRINIDAD to be able to deploy successfully on weblogic 10.3.5? If Yes, is the extension for Jdeveloper MAVEN?

    3. in weblogic server, I understand, we need the extension JRF to support the length of the ADF, is there anything else that we need on weblogic server that the adf works?

    Thank you in advance.

    If the origins of your application of jdev 10g and runs on the OAS, you can migrate to Trinidad. No extension is required for this as the required libraries are already there. Maven is useless and will not work for 11.1.1.5.0. First version with the full support of MAVEN is 12 c.

    If you get an unexpected error during the migration from the old app to 11 g, you should try to find out

    (1) projects that is causing the error

    (2) file that is causing the error

    and work from there. There are some configurations that cannot be migrated (check the release notes), however they should not lead to unexpected errors. However, check the release notes.

    If you don't find anything and cannot pass through the error, you must open a SR with support.oracle.com.

    Next question is why migrate to 11.1.1.5.0 which is already obsolete.

    Timo

  • ADF does not work in JDeveloper 10 g

    Hi all

    I tried to get ADF to work with JDeveloper 10 g but nothing helps. I followed the steps from the following link: http://www.oracle.com/technetwork/developer-tools/jdev/how-to-adf-faces-10gjdev-085657.html

    the only thing I can't seem to follow is in the creation of the library. I have only the adf faces - api .jar and adf faces - impl.jar but not the hand - 1_1_18.jar
    I don't know if it's creating the problem like my error message is not helpful.

    part on the error msg:
    May 8, 2013 12:25:11 com.sun.faces.config.rules.ConverterRule end

    WARNING: [ConverterRule] {faces-config/converter} Merge (javax.faces.Long, null)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ConverterRule end

    WARNING: [ConverterRule] {faces-config/converter} Merge (null, java.lang.Long)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ConverterRule end

    WARNING: [ConverterRule] {faces-config/converter} Merge (javax.faces.Float, null)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ConverterRule end

    WARNING: [ConverterRule] {faces-config/converter} Merge (null, java.lang.Float)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ConverterRule end

    WARNING: [ConverterRule] {faces-config/converter} Merge (javax.faces.Double, null)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ConverterRule end

    WARNING: [ConverterRule] {faces-config/converter} Merge (null, java.lang.Double)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ValidatorRule end

    WARNING: [ValidatorRule] {faces-config/validator} Merge (javax.faces.LongRange)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ValidatorRule end

    WARNING: [ValidatorRule] {faces-config/validator} Merge (oracle.adf.DateTimeRange)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ValidatorRule end

    WARNING: [ValidatorRule] {faces-config/validator} Merge (oracle.adf.RegExp)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ValidatorRule end

    WARNING: [ValidatorRule] {faces-config/validator} Merge (oracle.adf.ByteLength)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ConverterRule end

    WARNING: [ConverterRule] {faces-config/converter} Merge (oracle.adf.Color, null)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ConverterRule end

    WARNING: [ConverterRule] {faces-config/converter} Merge (null, java.awt.Color)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ConverterRule end

    WARNING: [ConverterRule] {faces-config/converter} Merge (javax.faces.DateTime, null)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ConverterRule end

    WARNING: [ConverterRule] {faces-config/converter} Merge (oracle.adf.DateTime, null)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ConverterRule end

    WARNING: [ConverterRule] {faces-config/converter} Merge (null, java.util.Date)

    May 8, 2013 12:25:11 com.sun.faces.config.rules.ConverterRule end

    WARNING: [ConverterRule] {faces-config/converter} Merge (null, java.util.Calendar)


    I tried to solve this problem by creating a new project, but once I entered adf tags the problem arises again.
    Help, please. Thank you!

    Published by: 1003893 on May 7, 2013 21:28

    Now that I looked at the linked article...

    That showing you how to use a very early ADF Faces (a draft version, in fact) version with a very old version of JDeveloper. This document is almost 9 years old.

    ہ JDeveloper 10.1.3 ADF Faces is "integrated".

    And since JDeveloper 10.1.3.x, we had two this JDeveloper 11.1.1.x and 11.1.2.x series issued.

    Why are you still using 10.1.2.x?

  • Mobile and Adf Faces

    Hello world
    I work with Jdeveloper 11 g
    can I use adfFaces component for Mobile Application development?
    I know that I can use component Trinity
    but I don't know he said Adf Faces

    Hello

    No, you can not

    Frank

  • Looking for 11 JDev ADF Faces example with several filters

    I am looking for an Internet example ADF Faces application that has the following text:

    Several combo boxes (LOVs) - some who invites just for a date range. These could as well be cascade.

    Finally a run button that runs a query based on the values of the drop-down list boxes in bind variable, then displays the results under the filters in a table.

    It sounds easy enough, but I have not found an example of this. Can someone point me in the right direction? I tried to create a quick example on the EMP table with a combobox to date that I could use to date of hire. I can't get this to work with links to view the results of the table well. I don't know how the code for the event to run the query and create the table.

    Thank you, Ken

    Hello

    even if we would work 24 hours a day 7 days a week. At the end of the year we would miss still some usecases as examples. How to do what you want

    -Drag the table
    -Drag the execute with params as a parameter
    -remove the attribute hiring date
    -Drag the variable of the hiring date linking (I think I would use a component date.) MinValue instead of a selectBox date). However, do not hesitate to choose a selectOneChoice component. In the link dialog box, create a reference to a VO list to fill the selectOneChoice (must be located a VO you query the target)
    -Similar to all others

    By pressing the button send the form parameter will execute the query

    Frank

  • ADF Faces 11g on IBM WebSphere Application Server 7

    Hello



    We deploy a product 11g ADF Faces on WebSphere AS 7 (a Java EE 5 certified container, available from September 9, 2008).



    I could not find any information on the question of whether this is possible. It seems not officially certified (but wait it should work).



    Release Notes State: "< em > ADF 11g applications require a Java EE 5 container.» To date, only Oracle WebLogic Server 10g (10.3) is certified, and we intend to support both JBoss and Tomcat. Note, 10.1.3 OC4J and/or OAS 10.1.3 is not fully compliant Java EE 5 and ADF 11 g applications will not work in this environment. < /em >.
    ADF 10 g support WAS 6 and other containers, so I really hope that it is a timing issue and not a victim of the acquisition of BEA.



    -Anyone

    (a) have experience with 11 g & WAS7?

    (b) knowledge if Oracle is planning document or certify has BEEN supported in the future? (and if so, when)



    Thanks thanks in advance!



    David.

    WebSphere 7 certification for the ADF is on our to-do list, but probably would be done for the next version of JDeveloper 11 g.
    If you use just ADF Faces and not the rest of the ADF frame - I don't expect too many problems - you might want to try and see how it works today - and let us know if you encounter any problems.

  • Zoom image using Jquery in ADF Faces

    Hello

    the body of each

    How are I hope to a fine

    Please I want to

    step by step to work

    Zoom image using Jquery in ADF Faces

    Hi user,

    Please specify your jdeveloper version

    Please check if link below help you

    http://www.awasthiashish.com/2014/12/image-zoom-power-zoomer-effect-using.html

  • How to conditionally bind the declarative component custom ADF ADF Faces

    Hi gurus,

    I created the custom declarative component called "Historical Record", following the article of Frank Nimphus Oracle ADF Code corner: How to bind custom declarative ADF Faces components and it works perfectly find.

    But I want to strengthen further to make more generic, as in Oracle EBS we can go to all the blocks and choose Tools-> history of the record and it shows WHO columns to the currently selected record.

    The intention is conditionally bind the attributes of the component with columns of WHO bodies VO.

    The scenario is:

    * all tables have Created_Date, Modified_Date for columns of the WHO.

    * the page containing the 2 instances of VO with different source (for example:-> emp dept)

    * whenever I have navigate dept records it should display columns WHO selected dept and the same thing then to move through the records of the emp.

    Kind regards

    Ferrere

    Well as I said, you shouldn't try to rebuild the Oracle Forms technology-specific behavior in some other technologies such as ADF (because it is not usually possible).

    It is probably best to have a separate button for each shape (square to a coherent position on all pages - as some form, toolbar header...)

    If you want to rebuild the behavior of forms, then you can use the combination of af: clientListener / af:serverListener to set a flag (as the name iterator) see scope that can be used by your 'global' button to retrieve the correct data. Therefore, add af:clientListener to each component entry...

    Dario

  • How to test applications ADF Faces automatically?

    Hello

    I use JDEV 11.1.2.3 - but in fact, my question ist depends on the JDEV version.

    How to test the different layers of the stack of the ADF, in an automatic way?

    1. How can we test business services layer - using business components? I don't mean using the component browser...

    2. How can a test the ADF faces layer? Is there a list of best practices for selenium or so?

    3. is it possible to test the ADF controller layer? Would be a great thing to call the different taskflows programmatically...

    Thx for the answers!

    Marc greetings

    Test with JUnit.

    http://download.Oracle.com/otndocs/OTNVDD-rea/ppt/ADF_VDD_Testing.PDF

  • Pls Help - ADF face and video Streaming Server

    Dear all,

    I want to display video files (only the marker .wmv) inside my ADF faces. The video files are running on Window Server supports.
    Is it features ADF file support showing the video inside the ADF Faces page. Our application doesn't use a database, we used the AAU to store all the content.
    Help me how to do to tackle this problem but also to see me useful articles.



    Best regards
    KT

    JDeveloper version: 11.1.1.5.0
    WebLogic 10.3

    Published by: KT on 10 Sep 2012 11:44

    Thank you Arun,

    This one works


    standbyText = "hello" id = "m2".
    Autostart = "true" playCount = '0 '.
    HauteurInterne = "300" LargeurInterne = "400" >

    * need to installed windows media plugin in the browser *.
    Useful articles
    http://www.baigzeeshan.com/2010/11/how-to-display-videos-in-ADF-fusion.html
    http://jobinesh.blogspot.SG/2011/07/tips-on-using-afmedia-to-display.html

  • Compatibility ADF Faces and jQuery

    ADF Faces and jQuery is incompatible? In some of my pages I used jQuery to improve my drawing. Since ADF Faces has no component such as p or h1 or if I use these tags and ADF behaves unexpectedly. So by jQuery, I can wrap some components like div generated by af:panelGroupLayout. If I specify a styleClass to this pgl I can easily the warp by p as $('.cls').wrap ("< p..."). Are their any risk of error or of bad behavior to do? In one thread, I see as jQuery is not integrated into the life cycle of ADF so it can be difficult to tell whether or not it behaves by mistake. Y at - it no risk to deal with a problem of PPR?

    Hello

    In ADF Faces active JSF 2.0 use of things like JQuery would be more affordable, I would suggest that you test this last integration using Facelets and Jdeveloper 11.1.2.0. However you perception is right, using a lot of JQuery on your page in ADF faces, could potentially break some of the life cycle. There are, however, examples:
    http://codingwithpassion.blogspot.com/2011/01/using-jQuery-in-Oracle-ADF-faces.html
    http://George.maggessy.com/2010/08/ADF-and-jQuery-working-together.html

    What kind of JQuery components are you trying to use?

    -Juan Camilo

  • ADF Faces 11, add where clause to the detail view in the master/detail relationship

    Hello

    I have two display objects only read connected by a link in a relationship master detail.

    They are displayed in a treetable in the form.

    I have a method on the java object impl view master class, I use to add custom where claused based on entries different user and then run the query.

    Works well, master and detail is interview properly.

    But I also want to further filter the detail view (view from destination in the display link). However, as soon as I add whereclause in the detail view against the master
    relationship of detail seems to have disappeared and are no detail record. I also tried to add a view criteria but with the same result.

    Your comments will be appreciated.

    ADF FACES 11g release 1.


    Jan

    You can get the ViewLinkAccessor, then the ViewObject and try to apply the ViewCriteria, followed by executeQuery... what you are already doing.
    Better to paste your code here...

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

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

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

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

    Replace af with h.

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




  • ADF Faces 10g: setting up emulate IE7 mode in IE8 using meta tag

    I have problems setting up the metatag for the IE7 Mode. I have to add the meta tag just after the head tag but afh:head tag generates its own metatag as well as another code.

    JSP code:
    < afh:head title = 'Forms' >
    * < meta http-equiv = "X-UA-Compatible" content = "IE = EmulateIE7" / > *.
    < / afh:head >

    released on the duration of HTML:
    Forms < head > < title > < / title > < name meta = "generator" content = "Oracle ADF Faces" > < link rel = "stylesheet" charset = "UTF - 8" type = "text/css" href="/IE8Test-ViewController-context-root/adf/styles/cache/oracle-desktop-10_1_3_4_0-en-ie.css;jsessionid=abc" > < script > var AdfWindowOpenError =' a window blocker was detected in your browser.» Popups blockers interfere with the operation of this application. Please disable your Blocker for popups or allow popups from this site.'; < /script > < script src = "/ IE8Test-ViewController-context-root/adf/jsLibs/Common101_3_4_0.js; jsessionid = f860a28964c33a5fae90eeaf3726da48b147854ee2ad990a4ba70279b67ea0dd" > < / script > < script _defaultTZ() > < /script >
    * < meta http-equiv = "X-UA-Compatible" content = "IE = EmulateIE7" / > *.
    < / head >

    Copy the following code will not work my page in IE7 mode.

    However, if I change the code of
    < head title = 'Forms' >
    < meta http-equiv = "X-UA-Compatible" content = "IE = EmulateIE7" / >
    < / head >

    It will work in IE7 to IE8 mode.


    1. is there something I can do to replace the code generated by my own meta tag if I use afh:head tag?
    2. If I use head html, what effects it will have on my code? I noticed that the fonts do not work properly, I think it's due to the links generated for skin is are more referenced.

    Any suggestion is recommended.

    Thank you
    Wes

    Hello

    Here's an example I wrote for 11g, which however also will work with 10g

    http://blogs.Oracle.com/jdevotnharvest/2011/04/running_adf_faces_applications_with_ie_9_in_ie_8_compatibility_mode.html

    Frank

Maybe you are looking for