ADF Popup with dialogue

Hello
I use Jdeveloper usecase 11.1.5.0.My is
= > when clicking a command button a popup with 'ok' and 'Cancel '.

my source of jsf page:

< af:commandButton actionListener = "#{bindings.createRow.execute} '"
Text = "createRow.
Disabled = "#{!}" Bindings.CreateRow.Enabled}.
Binding = "#{backingBeanScope.backing_FinYear.CB1} '"
ID = "cb1" partialSubmit = "true" >
< af:showPopupBehavior popupId = "p1" triggerType = 'action' / >
< / af:commandButton >
< af:popup id = "p1" >
< af:dialog id = "d2".
dialogListener = "#{backingBeanScope.backing_FinYear.onDialogAction} '"
title = "Confirmation" >
< af:outputText value = "Do you want to create the next year" id = "ot2" / >
< / af:dialog >

< / af:popup >


And my grain of support:

public BindingContainer {} getBindings()
Return BindingContext.getCurrent () .getCurrentBindingsEntry ();
}

public String cb1_action()
{
BindingContainer links = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("createRow");
Object result = operationBinding.execute ();
If (! operationBinding.getErrors () .isEmpty ()) {}
Returns a null value.
}
Returns a null value.
}

public String callmethodinappmodule()
{
AppModuleImpl callmet = new AppModuleImpl();
callmet.createRow ();
Returns a null value.
}

{} public void onDialogAction (DialogEvent dialogEvent)
If (dialogEvent.getOutcome () .equals (DialogEvent.Outcome.ok))
{
what I'm doing here

} else {}
return;
}
}


My createRow method should run by clicking 'Yes '. What I do on the 'Yes' button in the dialog box?

Published by: Sparks Sep 28, 2011 04:34

Simply call the cb1_action() as methodv

public void onDialogAction(DialogEvent dialogEvent) {
if (dialogEvent.getOutcome().equals(DialogEvent.Outcome.ok))
{
//what I do here
cb1_action(); //Do it like this
} else {
return;
}
}

Tags: Java

Similar Questions

  • Window Popup with strange characters when you want to play music from the cloud

    When I try to play music on the cloud (music downloaded on my computer), I get a popup with some strange characters. It was working fine 2 days ago. Nothing has changed on my computer. I tried uninstalling iTunes and reinstalling. Shows the problem. Any help would be appreciated.

    This is what looks like the pop-up window.

    PS - all anti-virus software are up and running.

    As an addendum, I tried to download music (by clicking on the cloud icon, which then shows an arrow pointing downwards). This popup has shown once again.

    Then I thought maybe it was having a problem with my account or my computer don't think she was allowed. So I checked my account login, and I was connected. Then I tried allowing my computer and this popup appeared again. I then tried my scroll wheel and it seems that it is a right screen. I guess that is the lower right button 'accept' but I'm not confident in the present.

    Strange things brewing.

  • After downloading the update for Yosemite 10.10.5, I got an annoying popup with a beep sound blaring that says that Safari crashed. I've forced to leave Safari, rebooted and popup returned once more. Restarted again and popup went. What was it?

    After downloading the update for Yosemite 10.10.5, I got an annoying popup with a beep sound blaring that says that Safari crashed. I've forced to leave Safari, rebooted and popup returned once more. Restarted again and popup went. What was it?

    Open Safari while holding the SHIFT key

    Try to reset the settings of Safari:

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select the Preferences/Privacy tab

    4. click on remove all data from the Web site

    5. close Safari.

    Remove cache Safari files:

    1. click on finder

    2. look for the menu GO to top

    3. click on GO and hold down the option key. This will show a user library folder.

    4. click library and find the Caches folder

    5. in the folder caches com.apple.Safari Ouvrezledossier

    6. move the Cache.db file Trash.

    This should solve the problem. If it does not help, try to disable the Safari extensions

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select Preferences

    4. find the Extensions tab

    5 disable all extensions of

    6. relaunch Safari

  • When I mouse over any peak in an online store, I have a popup with similar items in other stores. What is and how it stop?

    Whenever I'm shopping online, if I right-click a picture if gives me a popup with similar items in other stores, this plugin doing this and how can I turn it off? It's really annoying. When I'm shopping I don't need to know that I can get a product randomly, remotely similar elsewhere.

    Hello, this looks like a problem maybe caused by adware on your pc. Please go to firefox > addons > extensions and remove any suspicious entries (toolbars, the things that you have not installed intentionally, I don't know what purpose they serve, etc.). also, go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software you have in place and various other tools such as the free version of malwarebytes & adwcleaner.

    Remove a toolbar that has supported your Firefox or the homepage search
    Fix Firefox problems caused by malicious software

  • Export an ADF table with default column order

    Hello

    Jdev 11.1.1.5.0

    We have ADF Table with column drag and drop option. Also we have implemented ADF Table with excelHTMl type of export.

    Everything works as expected. Only problem is if we try to exchange a few columns by drag-and - drop option and then export the table, we receive the order of the columns with brewing. But our demand is, the user must obtain the export with the initial order table by default.

    It would be great, if you can suggest an idea to export the ADF table with default column order.

    Thanks in advance,

    MSR.

    I realized the required functionality. We can restore the default order of the columns to aid

       Function richeTableau = this.getFetchResultsTable ();
       Iterator rItr = rTable.getChildren () .iterator ();
       {while (rItr.hasNext ())}
           ((RichColumn) rItr.next ()).setDisplayIndex(-1);
       }

    Then we can call the real export help feature

       queue the event via a JavaScript inserted into the page
       FacesContext context = FacesContext.getCurrentInstance ();
       Erks = ExtendedRenderKitService
       Service.getService (context.getRenderKit (), ExtendedRenderKitService.class);
       erks.addScript (context, "customHandler()");
  • ADF security with identification details &amp; role of database table

    Dear experts,

    I have developed web applications by ADF with JDeveloper 12.1.3.0.0

    I want to apply the ADF security for authentication and authorization process.

    I mentioned several blogs that associated with example ADF security with the database table, but unfortunately I couldn't reach my task of them because all the blogs that make reference to the roles of username, passwords, and user to hardcode.

    In my web application, there are 3 database table (users, roles, User_Role).

    A user can have one or more roles.

    I was able to accomplish this task using spring-mvc + Hibernate + sprig security. Its code of even below.

    <>Authentication Manager

    <>authentication provider

    < jdbc-user-service data-source-ref = "dataSource".

    users by name of user-query =

    "username, password, enabled users to select where username =?"

    authorities-by-name of user-query =

    "" Select username, role of user_roles where username =? ". / >

    < / authentication provider >

    < / authentication manager >

    Pls guide me to solve this problem.

    Thank you

    Mauricette

    User, your question is not clear. You have implemented the safety with the spring? So, what's your question?

    The ADF security can be combined with a sql authentificator that reads users and roles of the DB tables. See Java / Oracle SOA blog: the use of tables of database as in WebLogic authentication provider and anything on the Fusion Middleware: Tables of database user to implement authentication in ADF and http://soadev.blogspot.de/2010/04/sqlauthenticator-simply-best.html.

    All of these solutions do not use users coded hard and rolls.

    Timo

  • ADF taskflow with not get every page refresh

    Experts,

    We have created a portal WebCenter ADF application.  The ADF taskflow with 3 pages on this subject.

    1. first page includes a data control that uses a session bean method that calls an external Web service.

    2. second page has a feature to view the details of a record that is selected on the first page.

    3. third page has a function to download a file.


    The user navigates and downloads a file, we redirecting them to the first page where the control data must display the list of issues.  The problem is that after adding a new record, and his return to the control of data page (which is a list of records), the newly added drive does not appear.  The only way to view seems at this point to ask the user to shut down and log in to the system and reactivate the workflow.


    We have a phase listener to clean the cache, in the hope that it could solve the problem.  But it does not.


    Any ideas or advice on how to automatically refresh the data in control when the user navigates to this page?


    Thanks in advance.

    Sam.

    In the links page, verify all conditions of discount on the data control.

    Read also the understanding of the lifecycle Page Fusion (in particular article 19.2.1) and using ADF data binding in an Application of Web Java EE model (especially the Section 2.3.4)

  • Cache popup with a button property immediate = "true".

    Hello

    I use jdevloper 11.1.2.2

    I have caching problem with popup a contentDelivery = "lazyUncached" and I add the button cancel on popup with immediate = "true" to ignore the validation in the fields in the pop-up window.

    When I click the button cancel hide popup, but once again if I show popup, it hides always old data in the entry fields.

    My source of popup is as below

    < af:popup childCreation = 'deferred' id = 'compPop '.

    autoCancel Binding = "#{pageFlowScope.CustomersBean.compPop}" = "disabled" contentDelivery = "lazyUncached" > "

    < af:dialog id = "d1" title = "#{viewcontrollerBundle.COMPANY} #{pageFlowScope.mode}" closeIconVisible = 'false' "

    type 'none' = >

    < f: facet name = "buttonBar" >

    < af:toolbar id = "t2" >

    < af:commandButton text = "#{viewcontrollerBundle.SAVE}" id = 'cb6' "

    actionListener="#{pageFlowScope.CustomersBean.onClickSaveCompPop}"/ >

    < af:commandButton text = "#{viewcontrollerBundle.CANCEL}" id = 'cb7' "

    actionListener = "#{pageFlowScope.CustomersBean.onClickCancelCompPop} '"

    immediate = "true" / >

    < / af:toolbar >

    < / f: facet >

    < af:panelFormLayout id = "pfl1" >

    < af:inputText value = "#{bindings.CompanyNumber.inputValue} '"

    label = "#{Bindings.CompanyNumber.hints.label} '"

    required = "#{Bindings.CompanyNumber.hints.Mandatory} '"

    Columns = "#{Bindings.CompanyNumber.hints.DisplayWidth} '"

    maximumLength = "#{bindings.CompanyNumber.hints.precision} '"

    shortDesc = "#{bindings.CompanyNumber.hints.tooltip}" id = "it1" > "

    < f: validator binding="#{bindings.CompanyNumber.validator}"/ >

    < / af:inputText >

    "< af:inputText value =" #{bindings.CompanyName.inputValue} "label =" #{bindings.CompanyName.hints.label} ".

    required = "#{Bindings.CompanyName.hints.Mandatory} '"

    Columns = "#{Bindings.CompanyName.hints.DisplayWidth} '"

    maximumLength = "#{bindings.CompanyName.hints.precision} '"

    shortDesc = "#{bindings.CompanyName.hints.tooltip}" id = "it2" > "

    < f: validator binding="#{bindings.CompanyName.validator}"/ >

    < / af:inputText >

    < af:selectOneChoice value = "#{bindings.CompCategory.inputValue} '"

    label = "#{Bindings.CompCategory.label} '"

    required = "#{Bindings.CompCategory.hints.Mandatory} '"

    shortDesc = "#{bindings.CompCategory.hints.tooltip}" id = "soc3" > "

    < f: selectItems value = "#{bindings.CompCategory.items}" id = "si3" / > "

    < / af:selectOneChoice >

    < af:selectOneChoice value = "#{bindings." City.inputValue}"label =" #{bindings. " City.label}.

    required = "#{bindings." City.hints.Mandatory}.

    shortDesc = "#{bindings." City.hints.ToolTip}"id ="soc4">

    < f: selectItems value = "#{bindings." City.Items}"id ="si4"/ >

    < / af:selectOneChoice >

    < af:inputText value = "#{bindings." Tele1.inputValue}"label =" #{bindings. " Tele1.hints.label}.

    required = "#{bindings." Tele1.hints.mandatory}.

    columns = "#{bindings." Tele1.hints.DisplayWidth}.

    maximumLength = "#{bindings." Tele1.hints.precision}.

    shortDesc = "#{bindings." Tele1.hints.ToolTip}"id ="it3">

    < f: validator binding = "#{bindings." Tele1.validator} "/ >"

    < / af:inputText >

    < af:inputText value = "#{bindings." Tele2.inputValue}"label =" #{bindings. " Tele2.hints.label}.

    required = "#{bindings." Tele2.hints.mandatory}.

    columns = "#{bindings." Tele2.hints.DisplayWidth}.

    maximumLength = "#{bindings." Tele2.hints.precision}.

    shortDesc = "#{bindings." Tele2.hints.ToolTip}"id ="it4">

    < f: validator binding = "#{bindings." Tele2.validator} "/ >"

    < / af:inputText >

    < af:inputText value = "#{bindings." Fax.inputValue}"label =" #{bindings. " Fax.hints.label}.

    required = "#{bindings." Fax.hints.Mandatory}.

    columns = "#{bindings." Fax.hints.displayWidth}.

    maximumLength = "#{bindings." Fax.hints.Precision}.

    shortDesc = "#{bindings." Fax.hints.ToolTip}"id ="it5">

    < f: validator binding = "#{bindings." Fax.Validator} "/ >"

    < / af:inputText >

    < af:inputText value = "#{bindings." Website.inputValue}"label =" #{bindings. " Website.hints.label}.

    required = "#{bindings." Website.hints.Mandatory}.

    columns = "#{bindings." Website.hints.displayWidth}.

    maximumLength = "#{bindings." Website.hints.Precision}.

    shortDesc = "#{bindings." Website.hints.ToolTip}"id ="it6">

    < f: validator binding = "#{bindings." Website.Validator} "/ >"

    < / af:inputText >

    < / af:panelFormLayout >

    < / af:dialog >

    < / af:popup >

    Hello

    You can try and add the tag af:resetActionListener to the Cancel button?

    http://docs.Oracle.com/CD/E28280_01/apirefs.1111/e12419/tagdoc/af_resetActionListener.html

    Frank

  • 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 to pre-fill the ADF form with the data?

    Hi guys,.

    I was wondering how you go about the generation of a pre-filled form of ADF. Is this something that is done if the designer of the ADF and the business objects? or do you create database tables stay and bind in the ADF and the workflow. Specifically, I want that if a user is presented with a several drop-down lists when the human task of the initiator is executed.

    Thank you
    Ross

    Hi Ross
    1. Yes, in all first place in the database, we added all the data manually for all research. Its our own schema custom. We plan to provide a few simple administration screens in a different WebApps to maintain these values to search. Note that it is a different simple ADF application, with a layer of EJB and EJB layer calling this and get/update database values.

    2. in ADDITION, we have a few search values we get from system/application totally another as Oracle EBS Suite. To do this, we have created custom schema. In this custom scheme, we have a few stored procedures created by the developers of EBS database (they are more familiar with EBS). Now in our EJB layer, we use architecture JPA, call these stored procedures and get all values for the search and display in the TaskDetails page. These values are maintained in EBS itself, so we have not all custom within our SOA/BPM project admin screens.

    In conclusion, our SOA/BPM applications, we have 2 databases. First database is for components SOA where we run RCU comand and there all SOA_INFRA, MDS, diagrams ORABAM etc. The second database is for our custom schema specific to our application. Here, we have our own lookup tables, custom table and all cutom stored procedures than coonect to external EBS etc. Weblogic console, we have just to create a data source for this second database and use layer JPA (persistence.xml file). For the first database, you already know that in the creation of the field itself, it will create all sources of data also.

    Thank you
    Ravi Jegga

  • ADF: Calling an AMImpl method before the launch of an adf:PopUp

    Hello

    I have an InputText, on doubleClick in the InputText I run an adf:Popup. for which I use component adf:ClientListener.
    I also have a requirement that, before the launch of this Adf:PopUp, I want to call a method of AMImpl. No idea how can I achieve this?

    Can I use a component more clientListener under same inputText?


    Thank you
    Thyagy

    For the mentioned usecase, you can use the Fetch of Popup listener method, it is called before the loading of the pop-up window:

    Sample:





    Bean:

    {} public void popupFetchListener (PopupFetchEvent popupFetchEvent)
    Add the code in the event here...
    }

    Thank you
    Nini

  • How can I make the popup with empty fields and create new record?

    I would use a popup create new record.
    I created an af:popup drag and drop a data control VO in jsff. Then, I created a button and place an af:showPopupBehavior. I was able to pop-up window by clicking on the button.
    However, the window filled with information from the record 1. and when I select a record in the table and click on the popup, the popup is filled with this record.
    How can I make the popup with empty fields and create a new record by recording the popup?
    Thank you

    Hello

    You must call the CreateInsert for the underlying ViewObject operation when opening the popup because it does not allow to clear the input field, you must have a new record created

    Frank

  • [adf:popup] Cancel a popup with the required fields

    Hello everyone

    I have a requirement in which I need to change some values of a required attribute, but I don't know how to cancel the popup without triggering the error: "this field is required.

    Does anyone has solutions?

    Thanks in advance
    Angel

    Hello
    on the Dungeon of button cancel immediately = 'true '.

    Published by: dhiraj Clement on November 17, 2010 04:24

  • How a popup that dialogue in many reentrant vis

    Hi all

    In my project, I write a TEST.vi to test an object to measure and set the TEST.vi be reentrant. So I can test UUT a lot at the same time. In general, I have 8 or 16 DUT online.
    During the test, there is a promotion at the operator of power - off UUT and turn on again. But if I place a dialog box in TEST.vi, there will be many popup dialogs.
    How that a contextual dialog and TEST.vi of all instances DUT waiting for the dialog box to confirm?
    Thank you.

    Here's how I would do based on a few advanced concepts:

    * A dialogue global vi with the structure of the event, using a state machine can be useful.

    * A user event is used to send a message to the vi dialog box (this can contain the data number USE power off and -)

    * A Notifier is used to broadcast the pause and resume the messages to the other DUT

    * When the user is raised, the vi dialog box sends notification of the break to all the vi USE and shows that it is FP (using node call)

    * When the dialog box is confirmed, the dialogue vi closes it is FP and sends notification of curriculum vitae

    * The vi USE is state machines that check periodically (survey) for the alert system if there is a notification of break, if if they go to the paused state.

    * In the State of the pause, they check the resume notification (perhaps enough to use wait for notification instead of polling, as they do not need to do something in the meantime

    Felix

  • Refresh a form Popup (with a .jsff) region

    Hi guys,.

    First of all, I use JDEV 11.1.1.6.

    I take a long time with a problem that should be simple, at least in theory. I have to spend, because, I ask your help.

    My question is:

    I have a table and each show has a column that opens a pop-up window. This popup was conducted using a region that uses a jsff file. For each line, when I open the popup data presented to the user should be the data associated with this line. The data of table control has child filed by association/viewlink. The two children are presented in the pop-up window, is another table, and the other is presented as a form.

    When the change in the row in the main table and open the pop-up, the pop-up window table is updated to new values, but form is not updated, maintains the last value inserted by the user.

    I tried partial triggers but without success.

    Any thoughts?

    If my English was confused, please tell me to try to explain the situation in a way less confusing.

    Read this blog article http://www.oracle.com/technetwork/developer-tools/adf/learnmore/53-taskflow-in-popup-169196.pdf which covers your use case.

    Timo

Maybe you are looking for