Conditionally show an af:popup

When the persistence of data, I have a jsf in the form validator, Validator validates the data, if any component set empty, I need to open a popup with error messages when < af:message > taken at the level of components, other wise I do not have.

But I couldn't find the way to open a popup on conditionally, can someone guide me this way.

From your description, you must call popup programmatically managebean

Tags: Java

Similar Questions

  • Conditionally showing a popup

    I try to display a popup of a bean to conditionally support. I tried the following post,

    How to show popup programmatically

    In the debugger, it completes the line without error:

    erks.addScript (context,
    "AdfPage.PAGE.findComponent('closeBillPeriodPopup').show ();");

    but the popup does not appear. I don't know how to configure the showpopupbehavior. If I associate the id of popup with showPopupBehavior of the button, the popup will be displayed automatically instead of going to the action of the backing bean button code. If I remove the id of the pop-up window, the action button on the bean code is executed, but the popup does not appear. Am I supposed to dynamically set the popup with the showPopupBehavior id?

    Hello
    The problem is when you are looking for the java script component can:
    You must first script in the protective or managed bean
    you need the popup component bean then the example:
    ID of the pop-up is p1
    P1.getClientId (Context)
    and context the faces context it returns the Javascript id you need is :D
    then
    erks.addScript (context,
    "AdfPage.PAGE.findComponent ('" + p1.getClientId (context) + "') .show ();");
    Joaquin

    Edited by: ADFboy 04 / May / 2010 11:41

  • Conditional call forwarding and popup screen.

    Hi all

    I push a pop-up screen to cover a call out with my own information. However on my device and several others, a pesky "conditional call forwarding" popup is displayed by the phone which briefly takes precedence over my popup screen. Is this anyway to prevent this.

    I push the screen by using the following code.

    UiApplication.getUiApplication().pushGlobalScreen(activeOutDialScreen, 0,UiEngine.GLOBAL_SHOW_LOWER) ;
    

    I tried setting the summary field on a few different things, but nothing can stop the pop-up conditional reference poster.

    Any help or just confirming, that it is not possible would be greatly appreciated.

    Kind regards

    Alan

    None

  • Conditionally show a field

    I would like to show a field based on the value of a variable user with just a bit of JavaScript. A copy of the field would appear on each slide of the question in a quiz. The field contains a reference to the issue. So, if my var user = 1, the field will automatically appear on each slide where it exists. If my user var is not equal to 1, the field remains hidden.

    I don't seem to be able to associate actions with a standard field object if anyone has a suggestion, describing how I could go to the realization of this behavior?

    Must I have a use for a fast action on every page? If this is the case, then each page should have its own copy personalized of the tip action to refers to each unique name field in the quiz. It is my current hypothesis because I have not found a way to make the generic actions so logical in the tip action applies to an object based on a generic reference to something like 'my' or 'this '.

    Thank you

    Pete

    I think that I have answered it for me.

    Yes, when I mentioned a text field, I was talking to a text caption in "Captivate talk." In my case, I want a unique piece of information stored with each question in a quiz. This piece of information will be the reference for the study of the issue. It will be visible only when a user variable has been set to the value of '1' by a call from javascript. This call is triggered by a "backdoor" on the title page. When a simple password request this transparent button double-click. If the correct password is supplied, the user var is set to 1.

    The answer is to place a copy of the field on every quiz page and use a shared action triggered by the event type for each slide to see the normally hidden field.

  • XML report - conditionally showing a column between other columns

    I have a XML report with columns

    A, B, C, D


    Now, I need to add a new column E between B and C when some condition is met.


    A, B, E, C, D


    for column E, I kept <? If: column = 'X '? > columnname <? endif? >.

    When the condition is satisfied, it displays the columns and values also, but when not a column empty appears worthless, I don't want this empty column when the condition is not satisfied.


    We must just see them A, B, D instead of A, B, C, C, D

    Ask you to help me with my requirement.

    It will be like

    Header:

                         OM expiry Date        

    Data record:

          

  • Balance sheet of the conditionally show by checkbox checked

    All,
    I have created 8 check boxes:
    'Source '.
    STATIC2: a 1, b; 2, c; 3, d; 4, e; 5, f; 6, g; 7, h; 8

    According to c (checked) I want to show a report.

    Status of the report:
    "Function from PL/SQL body returning a Boolean".
    Start
    If (: c = '3') then
    Returns true;
    on the other
    Returns false;
    end if;
    end;

    But it does not work.

    Any help appreciated,
    See you soon
    Lucio

    You must call the name of your box, not: c If your box has been named P1_SOURCE your code so as:

    begin
       if (:P1_SOURCE= '3') then
          return true;
       else
          return false;
       end if;
    end;
    
  • Conditionally show image report

    Hello

    I have this SQL base report
    SELECT
      POJ_CODE, -- #POJ_CODE#
      CASE poj_typ_rizika
        WHEN 2 THEN CASE
                               WHEN poj_typ_pripojisteni IS NULL THEN '<span class="ui-icon ui-icon-circle-plus"></span>'
                               ELSE NULL
                             END
        ELSE NULL
      END pripojisteni -- #PRIPOJISTENI#
    FROM
      N_POJISTENI, 
      FISPRO_USER
    WHERE
      POJ_PREDMET = :P42_PRE_CODE and
      POJ_VYTVORIL = USR_CODE
    Now, I try to use #PRIPOJISTENI # in the link column, but with problems (maybe the exhaust apex tanks in #PRIPOJISTENI #). My settins in the links in the column are:

    Display as: Standard report column
    Text link: #PRIPOJISTENI #.
    Target: URL
    URL: javascript:pridejPripojisteni(#POJ_CODE#)

    When I run this report in the column "Pripojisteni" there's nothink (#PRIPOJISTENI # value is not NULL) in the column :-/
    <table class="report-standard" cellspacing="0" cellpadding="0" border="0" summary="">
      <tbody>
        <tr>
        <tr class="highlight-row">
          <td class="data" headers="POJ_CODE"><td>
          <td class="data" headers="PRIPOJISTENI">
          <a href="javascript:pridejPripojisteni(113)"></a>
          </td>
    correct version should be
    <table class="report-standard" cellspacing="0" cellpadding="0" border="0" summary="">
      <tbody>
        <tr>
        <tr class="highlight-row">
          <td class="data" headers="POJ_CODE">
          <td class="data" headers="PRIPOJISTENI">
          <a href="javascript:pridejPripojisteni(113)"><span class="ui-icon ui-icon-circle-plus"></span></a>
    </td>
    </td>
    Anyone know what to do to the good running report? Problem look like which is somewhere in excaping when you use #PRIPOJISTENI # in link. I'm not sure.

    David

    David,

    It works for me, then try this

     .... THEN 'test' 
    
  • How to stop a query showing a popup when an error occurs?

    Hello

    Suppose that a user click on "New folder" and immediately clicks on "Show détail Popup" button prior to fill all the required fields in the records.
    What is happening is that a box of exception will be shown on the screen, asking the user to fill in the mandatory fields.
    However, it IS NOT stop the detail popup to display on the screen as well as the exception.
    Of course, I can set the property of the button to avoid the user to click on the Popup of detail, but sometimes it's not so easy, and I would have preferred a more general solution.

    Is it possible to say with some components in the .jspx Hey, "If an exception occurs here, do not display the context menu:
    <af:commandToolbarButton id="ctb2" icon=" " partialSubmit="true" text="Show Detail Popup"rendered="true">
             <af:showPopupBehavior align="endBefore" popupId="::p3" triggerType="click"/>  // this should only be triggered if there are no previous errors
    </af:commandToolbarButton>

    Hello

    I suggest that you change the launch of popup to use the tag showPopupBehavior to a solution based on Java that call you through the listener to action 'commandToolbarButton '.

    RichPopup popup = ... get handle to popup instance ...i
    
    f(my condition is met){
    
      RichPopup.PopupHints hints = new RichPopup.PopupHints();
      //set alignment hint options as explained here: http://jdevadf.oracle.com/adf-richclient-demo/docs/apidocs/oracle/adf/view/rich/component/rich/RichPopup.html
      hints.add(RichPopup.PopupHints.HINT_ALIGN_ID , ... the id ...)
      hints.add(RichPopup.PopupHints.HINT_ALIGN, RichPopup.PopupHints.AlignTypes.ALIGN_END_BEFORE);
      popup.show(hints)
    }
    

    This also fixes another bug in your implementation, which is that the popup is open when the mouse is clicked and enter a button on the toolbar button

    Frank

  • How to show the component validation errors inline instead of in a popup note?

    Hello

    IM using jdeveloper v. 11.1.2.3.0

    I want to show validation errors for an inline element, and not in a pop-up note without counting as the component.

    I found that it is possible through the use of the af:message component.

    The af:message works very well as long as the component must be committed, is not within a taskflow in a region.

    If this is the case, it seems that the af:message component is ignored, and validation errors is still a time showed in a popup note.

    For an example, see the code below. This works very well on an ordinary jspx page. If the same code is implemented within a fragment of jsff in a taskflow and taskflow is then implemented as a region in a regular jspx page - the validation error is displayed in a pop-up note instead of inline.

    < af:message = "input1" ID = "message1" / >

    < af:inputText id = value of '1' entry validator = "< some binding value > ' ="< some binding validator >"/ >

    I solved the problem. Apparently there's a bug in the ADF, so that the attribute 'for' points to a component id wrong (client side). It simply puts the container of name in twice.

    The solution is to prepend ":" in front of the id of the component in the attribute 'for' during the use of the af:message within a fragment of a page in a region. See the example below.

    
    
    
  • Show/hide conditional text to a book level

    I use TCS2 on Windows XP.

    9.0 FM p250

    I have several files as part of a great book of FM. Each file has the same conditional text tags. Can I, at a level of book, put my conditions to show/hide, etc. and then update the book? So far, I don't know how to open each file, define the TEXT CONDITIONAL SHOW/HIDE like I need (is not to show very indicators and according to my built-up expression) then save and close each file.

    Is there a way to make all my files at once? Note I want them all put the same way... so that might make it easier...

    Thank you

    Adriana

    adrianaharper wrote:

    I use TCS2 on Windows XP.

    9.0 FM p250

    I have several files as part of a great book of FM. Each file has the same conditional text tags. Can I, at a level of book, put my conditions to show/hide, etc. and then update the book? So far, I don't know how to open each file, define the TEXT CONDITIONAL SHOW/HIDE like I need (is not to show very indicators and according to my built-up expression) then save and close each file.

    Is there a way to make all my files at once? Note I want them all put the same way... so that might make it easier...

    Thank you

    Adriana

    I do not have FrameMaker available right now, so I work from memory, using FrameMaker traditional menus, rather than the FM 9 tools.

    Select all the files in the window of the book. With the asset book window, open the view menu and search for conditional text. Your settings here apply to all the files selected in the address book window, so it is possible to establish conditions on some or all of the files. CTRL + click to select non-contiguous files; Shift + click to select a range of contiguous files.

    HTH

    Kind regards

    Peter
    _______________________
    Peter gold
    Know-how ProServices

  • Can I export only conditional text 'show' for a mif?

    When I export a document with conditional text to a pdf file, just the conditional text which has the value 'show' (and the unconditional text) appears in the pdf file.  It's good, but I want the same thing when you export a mif.  There are two reasons for this:

    (1) we have an internal tool that analyzes a mif and retrieves the data in some tables to fill a database.  The tool is not analyze PDF files.  And the tool does not always correctly, manage conditional text lines conditional in particular the table text.  The tool will work fine if the conditional text was already "solved" when exporting to the mif.

    (2) I would use the Boolean logic for conditional text, which is available in FM9 but I need to supply files to other groups in society who use FM7.  Their FM7 wouldn't show conditional text correctly if it depends on nothing else than to the logic of the GOLD.  But they would be happy to accept files mif which had no conditional text because it had been "resolved" when I generated a file mif7 for them.

    I tried different ways to convert a pdf into a mif file, but no process seems to preserve the formatting and text editable. I'd be ready to accomplish this somehow roundabout on Framemaker, Acrobat Pro or another tool.

    But the happiest result for me would be to discover that FM9 already has the ability to export only the conditional 'show' and the text unconditionally to a mif.

    Or is it possible to make a copy of the document and then somehow automate the removal of conditional text 'hide' and 'show' unconditional conditional text conversion?

    doc_engineer,

    You could manually delete the conditions hidden from the files before the Save as MIF, by choosing the option remove all text hidden as well. If you want to completely automated, however, you need to perform some shows, in which case I would recommend setting your post-processing tool in order to recognize the conditional text correctly, rather than make FM do something which is less-than-optimal, IMHO.

    Your best bet of all would be to abandon the MIF format altogether and use a structured XML author, with which you can use for the conditional metadata attribute values. With this, you could also abandon the model of FrameMaker condition for a much more robust system of conditionalizing content tag. It would be more flexible and certainly easier to design the post-processing step, as there are many tools available for the treatment of XML metadata and the ability to analyze the attribute values is commonplace among them.

    Russ

  • How to show popup on the filedownload button action

    Hi Experts,

    Work on jdev 11.1.1.3.0, ADF BC with rich faces.

    I need in my application as I need to display the pop-up window and at the same time need to download the file. as the selected lines in the table I have validation on each line, if the validation failed lines I need to show in the popup to the user as I have rows of validation success also these lines I need to generate a file and I want to download.

    I have written logic on the command button that has fileDownload, logical remaining here works very well except the popup display. can someone tell me how to solve this problem.

    Published by: user5802014 on August 19, 2010 17:57

    Hello

    I must admit that I did not sample myself. However, in your JavaScript code, I see 1 problem

    you have the following line in the script

    actionEvent.forceFullSubmit ();

    This causes a shipment of full page and a page refresh, which prevents the opening of popup

    Frank

  • Showing a standby screen while the background processing

    Hi all

    I implement a wizard have been I let the user fill in some parameters of network connection. When the user clicks 'next' I want to run a background process to see if the entered parameters are correct. According to the result of the background process, the wizard can continue to the next screen or remain on the current screen.

    There must be something like this:

    boolean onNext()
    {
      // Executed when the user presses 'next' (run in the EDT)
    
      // Show a wait popup
      UiApplication.getUiApplication().pushScreen(progressPopup);
    
      // do my network stuff
      boolean success = false;
      UiApplication.getUiApplication().invokeAndWait(new Runnable()
      {
        public void run()
        {
          // try to connect to the network
          // ...
          success = true;
        }
       });
    
      // hide the popup
      UiApplication.getUiApplication().popScreen(progressPopup);  
    
      // return whether the network stuff was successful
      return success;
    }
    

    This does not work because the popup does not appear. How can I achieve that?

    Thanks in advance!

    Modal screen is very good and has some advantages, in that it means that your logic that knows what it is in the State.

    What you want to do depends on the application.  For example, we have a server locator tool, the user launches the search, then we do not secure anything, except that they cannot launch a new search until they cancel the old one.  Alert us when the search is completed or dead or expired.

    With a modal form (and we do too) I personally like this to have a Cancel button, so that the user can stop waiting - which complicates the Interface.  In fact, there is a case for the wireless network to bring an observer of the screen modal, so that he knows that he has to ignore the answer if the screen has been cancelled.

  • With the help of JavaScript condition in the dynamic action of JQuery selector

    Hi guys,.

    I have a Setup master detail on a page.

    The detail section, I have a tabular presentation.  One of the fields is a selection list.  The first record in the select contains the value * not * that has a value of primary key for the 1.  I have a distinct region with a simple text field where the user can insert a value into the table if the value does not exist.

    I want than the region of text element to only appear if the value * not listed * is selected.

    I managed to make it work when the value is selected with the help of dynamic action with a bit of JQuery and JavaScript by setting the ID on the selection list to 'create' and have the following in JavaScript $(this.triggeringElement) .val ()! = 1 in the JavaScript for dynamic action condition shows it or hides the region of 'create' and that works well.

    However, if the secondary table is empty before the detail records were created (nothing selected in triggering jQuery Selector) the region of create is displayed when I don't want it.

    I guess I need some sort of NVL in JavaScript condition?

    I use APEX v4.2.

    Any advice would be appreciated.

    Chris

    Cashy wrote:

    I have a Setup master detail on a page.

    The detail section, I have a tabular presentation.  One of the fields is a selection list.  The first record in the select contains the value * not * that has a value of primary key for the 1.  I have a distinct region with a simple text field where the user can insert a value into the table if the value does not exist.

    I want than the region of text element to only appear if the value * not listed * is selected.

    I managed to make it work when the value is selected with the help of dynamic action with a bit of JQuery and JavaScript by setting the ID on the selection list to 'create' and have the following in JavaScript $(this.triggeringElement) .val ()! = 1 in the JavaScript for dynamic action condition shows it or hides the region of 'create' and that works well.

    However, if the secondary table is empty before the detail records were created (nothing selected in triggering jQuery Selector) the region of create is displayed when I don't want it.

    I guess I need some sort of NVL in JavaScript condition?

    I use APEX v4.2.

    Simple solution is to hide the region containing the element of text by default, using the style = "" view: no ' in the property of the attributes of the area in the region. " It will be always hidden when the page initially, but its visibility will be controlled by the DA subsequently.

  • Problem with apex.navigation.popup.url and the symbol + (more)

    Hello
    I use Apex 4.2.6.00.03 in an Oracle DataBase 11g.

    I want to show in a popup over information about a line in a report, to do this, I use apex.navigation.popup.url JavaScript function to open an apex page and set a variable in this page with the ROWID of the register, the url is

    JavaScript:apex.navigation.Popup.URL ('f? p = & APP_ID.:59: & SESSION.: P59_ROWID: #ROWID #');

    It works fine, but when the ROWID contains a symbol '+', it is replaced with a space when the value is set to the article and the code that uses this value returns an error.

    Oracle Docs the ROWID can have letters, numbers and symbols '+' and ' / ', I tested it with "/" and it works fine.

    I could use the replace to replace the space with a '+', but I want to know if this can be corrected in the URL, and what other symbols he affects.

    Thank you

    Diego (SniperCat) wrote:

    I use Apex 4.2.6.00.03 in an Oracle DataBase 11g.

    I want to show in a popup over information about a line in a report, to do this, I use apex.navigation.popup.url JavaScript function to open an apex page and set a variable in this page with the ROWID of the register, the url is

    JavaScript:apex.navigation.Popup.URL ('f? p = & APP_ID.: 59: & session.: P59_ROWID: #ROWID #');

    It works fine, but when the ROWID contains a symbol '+', it is replaced with a space when the value is set to the article and the code that uses this value returns an error.

    Oracle Docs the ROWID can have letters, numbers and symbols '+' and ' / ', I tested it with "/" and it works fine.

    I could use the replace to replace the space with a '+', but I want to know if this can be corrected in the URL, and what other symbols he affects.

    That's why I only spend the alphanumeric key values as URL parameters. It could affect all the reserved characters in the URL.

    Add a hidden column of ROWID_URL to the report query, that JavaScript and URL does not escape the ROWID value:

    select
       ...
     , apex_escape.js_literal(apex_util.url_encode(rowid), null) rowid_url
     , ...
    from
       ...
    

    and use this column in the column link URL:

    javascript:apex.navigation.popup.url('f?p=&APP_ID.:59:&SESSION.::::P59_ROWID:#ROWID_URL#');
    

Maybe you are looking for