[ADF, JDev12.1.3] How to resize and style default popup of the message of faces?

Hallo,

popups messages of faces that I take the floor in managed beans or auto-affichent by the application to show errors (e.g., https://dl.dropbox.com/s/hsje8m0meci2wai/FacesMessage.png?dl=0) do not adjust automatically based on the content.

I would like to know how I can fix this problem and:

Thank you

Federico

Well, for automatic resizing, you can use this workaround: https://agungor.wordpress.com/2014/05/14/handling-un-resizable-facesmessage-popup/

Also, if I remember correctly, you can download the fix for this problem for Oracle Support(if you have support contract).

Inline messages you must provide the id of the component when you create messages of faces.

For global inline messages you need to af:messages component.

As an alternative, you can use something like this: Awasthi (Jdev/ADF) Ashish Blog: better interface user-display the notification message of jQuery (for error, warning, info) to Oracle ADF

Dario

Tags: Java

Similar Questions

  • [ADF, JDev12.1.3] How to display a gif of loading during the loading of the af: table (through the ExecuteWithParams method call)?

    Hallo,

    in the fragment of my page, I created an af:table you drag an instance of VO for the data control; I also have a search button by dragging the operation ExecuteWithParams of the same instance of VO.

    I double clicked on the serach button to create the searchButton_action method in the bean calling the ExecuteWithParams operation after you have made a few operations.

    Next to the button, I put a table whose source is a gif of "load".

    I would like to make visible the gif while research is underway and make it invisible when the search is complete.


    In the beginning, I followed this approach.

    In the searchButton_action, I wrote the code to set the visible of the image property.

    But it did not work because the gif never appears. I also tried to set the property PartialTriggers of the image with the ID of the button table and search.

      public String searchButton_action() {
        RichActiveImage imgSearch = (RichActiveImage) FacesUtils.findComponent("ImgSearch");
        imgSearch.setVisible(true);
        AdfFacesContext.getCurrentInstance().addPartialTarget(imgSearch);
        // ...
        OperationBinding operationBinding = BindingsUtils.getBindings().getOperationBinding("MyVOInstanceExecuteWithParams");
        // ...
        imgSearch.setVisible(false);
        AdfFacesContext.getCurrentInstance().addPartialTarget(imgSearch);
        // ...
      }
    

    Then I tried with another approach which is to set the Visible property using the value off of the search button which is #{! links.} MyVOInstanceExecuteWithParams.enabled}

    But also, this approach has not worked.

    I also tried to set the property PartialTriggers of the image with the ID of the button table and search.

    What's not in my efforts? You could you kindly help me to solve the problem?

    Thank you

    Federico

    PS

    FacesUtils.findComponent is a method that retrieves the item passed as param. It works well since I used it several more times in my application.

    Your approach may not work add there is only a single thread of UI work. Your trigger reached the component when the execute with Péan has finished its work.

    For your use case there are a few solutions combining JavaScript and client-server events showing a window as long as the operation is running. Read https://blogs.oracle.com/groundside/entry/notification_during_long_running_transactions for all the info.

    Timo

  • [ADF, JDev12.1.3] How to design and integrate PDF reports in my web application?

    Hallo,

    I would like to know if JDeveloper offers the functionality for creating visually (dependent or not data db) reports for which the client can see the preview and then print the PDF file.

    It would be very useful to design a report like UI (so for example drag attributes from VO instance to the report).

    Thank you

    Federico

    No, there are none of these available components. You will need to create one yourself (doable but complicated) or use another product the report design, and then call the report of your app engine to return the repost for example in pdf format. The user can to decide to print it or not. At this point, the report is already downloaded on the client as for example pdf.

    Timo

  • [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

  • [ADF, JDev12.1.3] How to get the column headers, request of VO and VO bind vars used by an af:table?

    Hallo,

    I want to create a method that takes as a parameter the id of an af:table (used to display the search results) and returns:

    • the column headings of the af: table
    • Visible property (true/false) of the columns af:table
    • the actual query of the VO instance used to create the af: table
    • the values of real bind variables passed to the query of the instance of VO

    I would like to create a servlet which takes the parameters reruns the query and returns a report Excel/PDF file that contains exactly the same columns and same of the af records: table.

    I'm a little confused on who use the code to achieve this... you kindly help me?

    I did a similar qustion here Re: [ADF, JDev12.1.3] how to export an af:table to Excel in an ADF Essentials application? but then I guessed that it was preferable to create a new thread.

    Thank you

    Federico

    For this, you can use this type of code

    Context LocaleContext = _adfTableBinding.getLocaleContext ();

    for (attr AttributeDef: attributeDef) {}

    Label As String = attr.getUIHelper () .getLabel (context);

    _logger.info ("Attritbute name:" + attr.getName () + "column name:" + attr.getColumnName () + "Col4Query name:" + attr.getColumnNameForQuery () +)

    "Name:"+ label);

    }

    which produces this output

    Timo

  • How do I know how is Administrator and where should I put the password to?

    My computer keeps asking for a password
    I have 3 standard users on my computer & no one is assigned to be administrator
    Cannot install updates because do not know or do not have a password
    How do I know how is Administrator and where should I put the password to?

    Hello

    The manual installation of the operating system on the Microsoft Update Web site updates requires the Office of the operating system to run with administrative rights.

    Please follow the steps mentioned below.

    a. click the Start button.

    (b) in the search box of start, type user accounts and click on user account.

    c. click on Manage.

    d. check which account is designated as administrator account.

    Also check out the links below.

    Why use a standard account instead of an administrator account?

    http://Windows.Microsoft.com/en-us/Windows-Vista/why-use-a-standard-user-account-instead-of-an-administrator-account

    What is an administrator account?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-an-administrator-account

    Change the type of user account

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-a-users-account-type

    Install Windows updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/install-Windows-updates

    Updates: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/updates-frequently-asked-questions

  • How to enable and disable, copy or rename the rules via the groovy script?

    A client, we received this question:

    How to enable and disable, copy or rename the rules via the groovy script?

    Foglight 5.7.5

    Hello

    There is this example of support KB

    support.Software.Dell.com/.../99059

    and there is also documentation of Service layer of the administration on the RuleService console.

    Best regards

    Golan

  • My navigation bar collapsed onto the gallery page not working gas not star tutorial - how to make and style of a sensitive web page

    Hello

    I made the tutorial how to make and style of a sensitive web page. This is the tutorial of Star Gazer. My Gallery with the images of the planets page works well until I reduce the size of the browser and displays the "sandwich" of the navigation bar icon collapsed, when I click on this icon, nothing happens. Could someone please tell me what is the problem with my HTML or otherwise I you have filled the gallery page and it works could you please paste your code in the response. Any help is much appreciated, thank you.

    Vincent

    < title > Stargazer / < /title >
    <!-"bootstrap"->
    "< link href="css/bootstrap.css" rel="stylesheet">" "
    "" < link href= "css/styles.css" rel= "stylesheet" type= "text/css" > ".
    <! - HTML5 shim and Respond.js for IE8 take in charge of the HTML5 elements and questions from the media - >
    <!-WARNING: Respond.js does not work if you view the page via file://-->
    <!-[if lt IE 9] >
    " < script src =" https://OSS.MaxCDN.com/html5shiv/3.7.2/html5shiv.min.js "> < / script > .
    " < script src =" https://OSS.MaxCDN.com/respond/1.4.2/respond.min.js "> < / script > .
    <! [endif]-->
    < / head >
    < body >
    "< div class="container-fluid" id="wrapper">" "
    "< nav class="navbar, navbar - default">".
    "< div class="container">".
    <
    ! - Brand and toggle get grouped together for better mobile display->"< div class="navigation-head bar' > '."" < button type= "button" class= "navbar toggle collapsed" data-toggle= "collapse" data-target= "#defaultNavbar1" > < span class= "only sr" > toggle thenavigation / </span >< span class= "toolbar" ></span >< span class= "toolbar" ></span >< span class= 'toolbar' ></span > </ button > """< a class="brand navigation bar" href="index.html"> Stargazer< /a >< / div > " "<!-collect the nav links, forms, and other content to alternate->"< div class="navbar-collapse collapse" id="defaultNavbar1">" ""< ul class="navbar-nav right navbar nav">".< li > <a href="#"> On< /a > </li >< li > <a href="#"> Gallery< /a > </li >< li > " < a href="http://www.nasa.gov"> ". NASA< /a > </li >< /ul >< / div ><!-/ .navbar-collapse->< / div ><!-/ .container-fluid->< / nav >"< idarticle = 'main' > '.< h1 > Close to the Sun. < / h1 >< p > Lorem ipsum dolor sit amet, adipiscing elit computer. CRAs gravida, ligula libero sem, condimentum mauris risus vitae orci sold computer and elementum tristique, felis. Nulla justo nisl, ut ut felis, tempus dapibus purus vestibule. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos inceptos. Donec lectus vel lacinia dolor quis massa mollis nisi. Phasellus at pretium ipsum. Surpassing vestibule risus vitae. Surpassing fringilla tempus lacus, vitae elementum felis efficitur. < /p >< / item >"< div class="container">"."< div class="row">"."< div class="col-md-4">".«"< div class="thumbnail"> < img src="images/gallery/gallery-thumbnail-1.jpg" alt="Thumbnail Image 1" class="thumb"> »"< div class="caption">".< h3 > Mercury< / h3 >< p > In libero non ultricies rutrum lacus feugiat. Etiam dignissim, massa and vestibule molestie nibh nisl ante, vitae city eros nec dui aliquet magna. Aenean egestas diam, pretium nisl, ullamcorper felis vitae. Suspendisse blandit lorem turpis, non tempus imperdiet aliquet leo. < /p >< / div >< / div >< / div >"< div class="col-md-4">".«"< div class="thumbnail"> < img src="images/gallery/gallery-thumbnail-2.jpg" alt="Thumbnail Image 1" class="thumb"> »"< div class="caption">".< h3 > Mariner< / h3 >< p > In libero non ultricies rutrum lacus feugiat. Etiam dignissim, massa and vestibule molestie nibh nisl ante, vitae city eros nec dui aliquet magna. Aenean egestas diam vitae ullamcorper, pretium nisl felis. Suspendisse blandit lorem turpis, non tempus imperdiet aliquet leo. < /p >< / div >< / div >< / div >"< div class="col-md-4">".«"< div class="thumbnail"> < img src="images/gallery/gallery-thumbnail-3.jpg" alt="Thumbnail Image 1" class="thumb"> »"< div class="caption">".< h3 > Messenger< / h3 >< p > In libero non ultricies rutrum lacus feugiat. Etiam dignissim, massa and vestibule molestie nibh nisl ante, vitae city eros nec dui aliquet magna. Aenean egestas diam, pretium nisl, ullamcorper felis vitae. Suspendisse blandit lorem turpis, non tempus imperdiet aliquet leo. < /p >< / div >< / div >< / div >< / div >< / div >"< div class="container">"."< div class="row">"."< div class="col-md-4">".«"< div class="thumbnail"> < img src="images/gallery/gallery-thumbnail-4.jpg" alt="Thumbnail Image 1" class="thumb"> »"< div class="caption">".< h3 > Magnetic< / h3 >< p > In libero non ultricies rutrum lacus feugiat. Etiam dignissim, massa and vestibule molestie nibh nisl ante, vitae city eros nec dui aliquet magna. Aenean egestas diam vitae ullamcorper, pretium nisl felis. Suspendisse blandit lorem turpis, non tempus imperdiet aliquet leo. < /p >< / div >< / div >< / div >"< div class="col-md-4">".«"< div class="thumbnail"> < img src="images/gallery/gallery-thumbnail-5.jpg" alt="Thumbnail Image 1" class="thumb"> »"< div class="caption">".< h3 > Microwave< / h3 >< p > In libero non ultricies rutrum lacus feugiat. Etiam dignissim, massa and vestibule molestie nibh nisl ante, vitae city eros nec dui aliquet magna. Aenean egestas diam, pretium nisl, ullamcorper felis vitae. Suspendisse blandit lorem turpis, non tempus imperdiet aliquet leo. < /p >< / div >< / div >< / div >"< div class="col-md-4">".«"< div class="thumbnail"> < img src="images/gallery/gallery-thumbnail-6.jpg" alt="Thumbnail Image 1" class="thumb"> »"< div class="caption">".< h3 > Mapping < / h3 >< p > In libero non ultricies rutrum lacus feugiat. Etiam dignissim, massa and vestibule molestie nibh nisl ante, vitae city eros nec dui aliquet magna. Aenean egestas diam vitae ullamcorper, pretium nisl felis. Suspendisse blandit lorem turpis, non tempus imperdiet aliquet leo. < /p >< / div >< / div >< / div >< / div >< / div >< footer >& copy; 2015 stargazer< / footer >< / div ><! - jQuery (necessary to Bootstrap JavaScript plugins) - >" < script src="js/jquery-1.11.2.min.js"> ". < /script ><! - Include compiled all the plugins (see below), or individual files as needed-->" < script src="js/bootstrap.js"> ". < /script >< / body >< / html >

    The cause of the problem is not attached jQuery library.

    Make sure that jquery - 1.11.2.min.js is located in the subdirectory js as in

  • I paid for CC (photography) and yet I still get the message that I'm in the 'trial period' when I open Photoshop. How can I fix it?

    I paid for CC (photography) and yet I still get the message that I'm in the 'trial period' when I open Photoshop. Please tell us what should I do to solve this problem.

    Hi Raoul,.

    In addition to the steps above, you also follow instructions on the link below.

    Applications creative Cloud back in test mode after an update until 2015 for CC

    In case you are working on a windows machine and after following the instructions above, you still encounter the same problem, can you please review the instructions below.

    1. Restart the computer in safe mode with network.

      • Immediately after the computer is turned on or restarts (usually after your computer beep), press F8 at 1-second intervals.
      • After that your computer displays hardware information and performs a memory test, the Advanced Boot Options menu appears.
      • Use the arrow keys to select Safe Mode or Safe Mode with network and press ENTER.
    2. Please sign out and sign back for the creative Cloud Desktop Application and verify that the subscription is not trial showing.
    3. Restart the computer and check the creative Cloud Desktop Application.

    Hope this will solve your problem.

    Kind regards

    Hervé Khare

  • How do I close the message of faces by programming

    Hi all
    I'm working on Jdeveloper 11.1.1.5 and I show faces messages conditionally in my form on key press F4. :-
    The idcomp is the component of Id that I'm passing javascript on key press F4.

    {} public void displayMessage (entry from list < ErrorDetail >)
    bussLogic (input);
    List < ClassB > classBList = getDescBasedOnId (idcomp);
    for (ClassB classB: classBList) {}

    FacesMessage fm = new FacesMessage (classB.getErrorDescription ());
    fm.setSeverity (FacesMessage.SEVERITY_ERROR);

    FacesContext context = FacesContext.getCurrentInstance ();
    context.addMessage (null, fm);

    }
    Now, I have to close the message press F8 key. I am able to show the error on the F4, but how do I close the message of faces? Is there a method to achieve this?
    Please suggest!
    Thank you.

    "The use of JavaScript to clear validation error messages" on page 14 of http://www.oracle.com/technetwork/developer-tools/adf/learnmore/nov2010-otn-harvest-190744.pdf

    Timo

  • How is Samsung TV, possible to permanently hide the message that explains how to use Air play via Apple TV?

    How is Samsung TV, possible to permanently hide the message that explains how to use Air play via Apple TV?

    Apple Tv has the conference room mode turned on causing the message to appear.  Turn it off:

    On restrictions of airtime and the mode of the conference room on your Apple TV - Apple Support

  • How can I make my default program for the Adobe Downloads?

    How can I make my default program for the Adobe Downloads?

    Set up the default program depends on the type of file you download, Ex:-PDF file open in Adobe Reader or Acrobat.

    The downloaded file is opened in the default program set on your computer for this file type.

    The steps may vary for Windows and Mac.

    Windows

    Right click on any file with the file type that you want to change the default program Ex:-Pdf,.

    Select 'open with '.

    and from the list select your application that you want to set default Ex: Acrobat

    Check the option on the bottom, "always choose this application to open this file type.

    Mac

    CTRL + click on any file with the file type

    Go to 'Get Info '.

    Modify the Application in the 'open with '.

    Select 'change everything '.

    Close window 'Get info '.

  • I use Windows XP and on startup, I get the message insert the disc from center of solutions?

    I use Windows XP and on startup, I get the message insert the disc from center of solutions?

    You have one something or other HP connected to the PC? Check the CD-ROM that
    came with it. Otherwise, contact HP support.

  • KB2518870 and KB2539636 always fail with the message Code 643 and has Code 66

    Security for Microsoft .NET Framework 4 updates on... Windows Vista... KB2518870 and KB2539636 always fail with the message Code 643 and Code 66 has.  I can't find these codes or the reasons for these failures.  This happened for well over a month now.  They are reported as of the important updates, but won't install but no problem with the other updates.  Should I be worried?  Is there a solution to this problem?

    Thank you, but it doesn't work anymore. CD don't has not given me the possibility to upgrade the existing installation, so I had to reinstall the system...
    Kind regards
    Ricardo
  • Creative Cloud Desktop manager and application manager Adobe disappeared during some sort of update. Tried to uninstall and reinstall creative clouds (received the message I needed to App Manager). Tried to install App Manager (got the message, I needed c

    Creative Cloud Desktop manager and application manager Adobe disappeared during some sort of update. Tried to uninstall and reinstall creative clouds (received the message I needed to App Manager). Tried to install App Manager (got the message, I needed creative cloud). Tried Cleanup tool for CC and CS6. Always impossible to install CC desktop manager or Adobe Applications Manager. Running on Mac, Yosemite 10.10.3.

    See the link below:

    Of nowhere, cloud Creative works not

Maybe you are looking for