Invoke a sound ADF Faces Jdeveloper 12 c

Hi I have a survey that checks for new records in a table, when this survey concludes the record a new shows a counter of the number of new rows in a table

When this happens, I need to play a sound like facebook when you receive a new notification.

How can I achieve this? Thank you very much!

I solved it this way!

//Jsff

 

//Javascript file - utiles.js
    function playSound() {
         var audio = document.getElementById('audio');
         audio.play();
    }

//Backingbean
if(notifications > 0){
     Utils.invokeJavascript("playSound");
}

//Utils
    public static void invokeJavascript(String metodo){
        FacesContext fctx = FacesContext.getCurrentInstance();
        ExtendedRenderKitService erks = Service.getRenderKitService(fctx, ExtendedRenderKitService.class);
        erks.addScript(fctx, ""+metodo+"();");
    }

Tags: Java

Similar Questions

  • Using OATMEAL - tests for Web Applications with ADF Faces functional

    Hello

    I have tried unsuccessfully to use web functional OATS to test to test a web application written
    with Oracle ADF faces (JDeveloper, ADF BC + ADF Faces).

    It is supposed to work or we are in the same situation as OpenScript when a version 9.1 for ADF Faces
    is scheduled for mid-2010?

    Concerning
    Paul

    Paul

    As you pointed out support for ADF will be released later this year, as it is now can use OpenScript to test ADF but is somewhat complicated and you need to do a bit of editing of your scripts.

    Concerning

    Alex

  • 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

  • Where is the HTML of JDeveloper 11g ADF FACES?

    I use JDeveloper 11.1.1.2.0 for my project. I remembered in 10g I a list of HTML tags such as, afh:tableLayout, afh:cellFormat, etc. under ADF FACES HTML package. However, in new JDeveloper 11 g, I saw that ADF carrots and there is no ADF Faces HTML tag. They are always available in 11g? If so, how can I install these tags in JDeveloper 11 g?

    You will need to add the components of the Trinity to your project - tags are there.
    But the question is if you really need to use these components, or maybe the layout components that provide the ADF Faces will be enough for you.

  • JDeveloper 10 g & ADF Faces: how to pass parameters to the html page request?

    I have a simple HTML as follows:
    ...
    < name of the form = "form1".
    action = "http://myserver/MyApp/faces/start.jsp".
    method = "POST" >
    < label for 'USER' = > USER < / label >
    < input type = "text" id = "USER" > < / input >
    < input type = "submit" value = "Send" > < / input >
    < / form > < / body >
    ...
    In my ADF Faces application, I traced a javax.servlet.Filter custom class with the following text for the doFilter method:

    ' Public Sub doFilter (ServletRequest request, ServletResponse response,)
    FilterChain chain) throws IOException,.
    ServletException {}

    System.out.println ("filter in MyApp");
    Map map = request.getParameterMap ();
    User String = (String) map.get('zoom') ("USER");
    System.out.println ("map of ask size:" + map.size () + "user:" + user);

    ...
    }

    What is printed:

    02/11/16 14:27:26 filter in MyApp

    02/11/16 14:27:26 length of content: 0 coding: iso-8859-1 getContentType: application/x-www-formulaires-urlencoded

    02/11/16 14:27:26 size request card: 0 user CRDBApps: null


    What can be the problem?

    Thank you!

    Hi Wes Fang

    Maybe you can try to use "name" instead of "id" for the input tag?

    
    

    success
    Jan Vervecken

  • Problem running new ADF Faces Rich Client components demo

    Hello

    I download the latest version of Jdeveloper (11.1.1.2.0), an i try to run the demo application, ADF Faces Rich Client components demo.

    I imported the app in jdeveloper, and I deployed on the server of embededd; then, there are many examples of tag and other elements that it does not work (for example the carousel). the server shows me this exception:

    The class ' oracle.adfdemo.view.components.rich.ComponentEditorHandler$ BooleanProperty ' has no property 'obsolete '.

    For more information, see the server error log
    starting with an entry: during the PPR, #7 Server Exception

    This sound has shown in Popup javascript and the server log.

    How to run the sample application to correctly?


    Thank you

    This is the same file on the hosted demo - the difference is the URL parameter allows you to run it: try to add one? Gallery = true to the end.

    http://jdevadf.Oracle.com/ADF-richclient-demo/faces/index.JSPX?Gallery=true

  • 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

  • Source of bean to ADF faces Rich Client Demo

    We use jdeveloper 12.1.3.We often have a glance on the oracle "ADF faces Rich Client Demo" (http://jdevadf.oracle.com/adf-richclient-demo).  With this link, we have a lot of examples, and it is possible to display the source of the pages. But is it possible to have the source of the beans used in these pages?

    Thanks for your help

    User

    Check - How to get the source code of the demo ADF page.

    ADF Faces components demo Install Instructions

    http://docs.Oracle.com/CD/E16162_01/Web.1112/e16181/gs_demo.htm#ADFUI12741

    Ashish

  • Development of pages in the browser Mobile of ADF in jdeveloper

    I use jdeveloper 11.1.1.6 to develop pages (.jspx) web access via a mobile browser. Could I begin with Webcenter Portal-framework Application...

    Thanks in advance,
    Jenifer

    Hello

    No, you haven't. ADF Faces components are not supported on compressed only but mobile phones. Create mobile browser applications using ' ADF mobile browser ' which is based on components of Trinidad

    See: http://docs.oracle.com/cd/E29505_01/web.1111/e10140/pda_ovrv.htm

    Frank

  • 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

  • Mix ADF Faces with HTML, JavaScript, CSS, JSTL question

    Dear all,

    The project is now starting to deploy to the production server. When we try to deploy to the production server who made a lot of mistake. As this used widely used project mix ADF faces with
    HTML/JavaScript/CSS/JSTL. I would like to know what are the most error when we have mixed to use each one and how can we overcome them there?
    There is in the project

    1 mix of tags html with ADF Faces components
    2. the use of JavaScript/CSS inline
    3. mix the JSF/ADF Faces and JSTL tags

    Help me how to address this issues as well as links to useful blog.

    JDeveloper IDE version: 11.1.1.5.0 with Webcenter
    WebLogic version: 10.3



    Best regards
    KT

    Published by: KT on May 16, 2013 21:23

    Hello

    In addition to this project widely used mixture ADF faces with HTML, JavaScript, CSS, JSTL.

    JavaScript, CSS, and JSTL is not a problem, whereas - according to the JSF version - HTML is. JSF 2 is the first version of the JSF, which allows you to mix HTML with less side effects, if you use Facelets as view declaration language.

    I would like to know what are the most error when we have mixed to use each one and how can we overcome them there?

    There is in the project

    + 1. mixture of html with ADF Faces components tags +.

    This could ruin your pages, lead to update issues and - in case of frequent use in the trees - even destroy the functionality

    + 2. online use of JavaScript / CSS +.

    Poor performance because of heavy weight pages. If you were using ADF Faces and your JS addresses the DOM instead of the architecture of client cJavaScript ADF Faces then chances are JS will fail for the components that have changed their HTML output (which has an impact on the DOM structure) or changes are not submitted to the server.

    For CSS, CSS inlineStyle not applay to the DOM element that is external, which means for example af:input the background text color will color the lavel

    + 3. mix JSTL and JSF/ADF Faces tags +.

    Dependa on how you do. JSF has postponed EL syntax, which means that EL resolves at run time, whereas JSTL resolves at compile time. So the race conditions could become a problem

    Overall, it is difficult to say if things were coded wrong in the project (although for the use of HTML you can be sure) without seeing the code. It seems that the team that built the application however did not dare to the suite of recommended practices

    Frank

  • How should I do side tabs in ADF Faces?

    A common component in the web pages of today is an element, similar to the af: panelTabbed, but with the tabs on the side (start, end) for the position, instead of above and below only as panelTabbed. I also see this in JDeveloper in the property inspector and other void signs during their layout is horizontal. For example, ADF Faces has a component that does this? How would I do that. Any suggestions?

    The tab item can be on top or below.
    If you want to have the side tabs, you could use af:commandImageLink with an image of the tab. When you press it, you can switch the content on the right, for example by using an af:switcher or a dynamic region.

  • 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 G + EJB 3 and the bean Validation

    Hey guys,.

    I did research on validations and I would like to use validation (JSR 303) beans in my current project. Today, this project uses ADF Faces 11 G + EJB3 in Jdeveloper 11.1.1.5.0. I see the default value of the JPA application is EclipseLink (TopLink) and this seems like JPA 1.0, probably because the weblogic implements JEE 5.

    I think that there is no problem to use the validation of beans in my project, I have to install the library (apache bean validation or hibernate validator).

    Anyone know or experience something like this?

    Please see
    http://soadev.blogspot.com/2009/12/integrating-JSR-303-bean-validation.html

  • ADF Faces - a 6 - AS / 400

    Hello! eveyone, im new in this forum, also im a junior programmer, I had the opportunity to work with JDeveloper and ADF Faces components, so think about using the same technology, but my boss told me that the servers are AS / 400 and WAS 6, so my question is, can I use ADF Faces framework in accordance with these specifications?
    Thank you and have a nice day.

    We have certified Oracle ADF on 7 has BEEN with the latest version of JDeveloper 11.1.1.4.
    We did not test WAS 6 - if all you are going to use are the ADF Faces components there is a good chance that they will work.

Maybe you are looking for