Problems of closing popup in filedownload actionlistener
Cannot close the popup after download the file
JSFF
< af:commandButton id = "cb2-generateKey.
Text = "#{msg.oauthCertOpGenKeyPair} '"
partialSubmit = "false" clientComponent = "true" >
< af:fileDownloadActionListener filename = "keyStore.p12" contentType = "application/x-pkcs12" method="#{viewScope.OAuthClients.generateKeyPairListener}"/ > "
< / af:commandButton >
Java
public void generateKeyPairListener (FacesContext context, OutputStream) out {}
downloadActionListener (context, outside, "keyStore", (String) this.getDnField () .getValue (), (String) this.getPwd () .getValue ());
this.closeGenerateKeyPop ();
}
Any ideas?
You can paste the code so that we can see what exactly you tried.
Another approach is to close the popup with javascript, similar to this: http://jneelmani.blogspot.com/2013/03/adf-11g-how-to-close-popup-using.html
Dario
Tags: Java
Similar Questions
-
Title: close research will not get messagebusy if close ddown will cause problems
Windows will work not to close the get message windows is busy. There will be problems if closed. I don't want to stop anyway. Microsoft internet Explorer
Thank you. I solved the problem by uninstalling and reinstaling research.
-
Problem with closing a PopUp window
Hello
I'll call you a pop-up of my page parent (Pg 41) via:
JavaScript:popUp2('f?p=&APP_ID.:67:&session.:::P67_CORP_ID:&P41_CORP_ID.','800','420');
and it works very well. I have a "Close" button on my page of popup, and the button property is redirect to the Page for this Application - Page 41. It also works, however, when you press the close button, it closes the popup page 67 and redirects to page 41 but on the INSIDE of the popup. So I have my parent page 41 still showing (full-size) and in the pop-up window, I also have page 41 (popup - and without any data size).
Can you please help is to explain how close popup entirely and simply navigate to the calling page of the parent (full screen), 41?
I am running 4 Apex.
Thank you
LauraHi Laura,
The button must have an action to 'Redirect to the URL' with a 'target URL' to:
javascript:window.close();
Andy
-
Closing popup workflow throws exceptions of serialization is not the managed beans.
JDev 11.1.1.6
When a popup that is launched from a work stream is closed, this exception is thrown for a lot of managed beans I set:
[< SessionBasedScopeMap > < writeScopeMap > ADFc: scope objects serialization failed (no serializable object), scope='viewScope[/WEB-INF/get-value-rules-task-flow.xml#get-value-rules-task-flow@GetValueRules]', objectKey = 'GetValueRuleBean', 'com.mtg.fwd.view.beans.GetValueRuleBean' = objectType.
< SessionBasedScopeMap > < writeScopeMap >
java.io.NotSerializableException: com.mtg.fwd.view.beans.GetValueRuleBean
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at oracle.adfinternal.controller.util.Utils.verifySerializable(Utils.java:341)
at oracle.adfinternal.controller.state.SessionBasedScopeMap.writeScopeMap(SessionBasedScopeMap.java:122)
at oracle.adfinternal.controller.state.ViewScope.writeObject(ViewScope.java:90)
...
Related Posts:
I tried setting the scope of control of data in the workflow for the popup shared and isolated, the behavior is the same. I thought that the scope must be insulated for the tf of the pop-up window. The data-control-scope on the calling workflow shared.
No idea why?
Thanks - Rudy
I don't know if you can disable registration points. However, I'd go for the second option to bind components to ask the beans reach max.
This way you don't have problems later and it is best practice not to tie UI components to the higher bean then ask. You can adopt the UIManager (https://blogs.oracle.com/groundside/entry/the_uimanager_pattern) model.
Or use ComponentReference as shown here https://blogs.oracle.com/ATEAM_WEBCENTER/entry/rules_and_best_practices_for
Timo
-
Problem with validation popup function and af bean.
I have the following code from the model:
View1.JSPX contains a popup with 2 text entry. the text of entry has a custom validator (is not allowing the user to enter text containing 'A'):
The validation function is contained in a bean managed with a scope of application:<?xml version='1.0' encoding='UTF-8'?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"> <jsp:directive.page contentType="text/html;charset=UTF-8"/> <f:view> <af:document id="d1"> <af:form id="f1"> <af:commandButton text="Show Popup" id="cb1"> <af:showPopupBehavior popupId="p1Adauga2"/> </af:commandButton> <af:popup id="p1Adauga2"> <af:panelWindow id="pw2" title="Adauga entitate la lista"> <af:panelGroupLayout id="pgl7" layout="horizontal" halign="center" valign="top"> <af:panelFormLayout id="pfl1"> <af:inputText label="text1:" maximumLength="10" id="it11" rendered="true" validator="#{TestBean.validateText1}" autoSubmit="true"> </af:inputText> <af:inputText label="text2:" maximumLength="10" id="it9" rendered="true"> </af:inputText> </af:panelFormLayout> <af:spacer width="10" height="30" id="s7"/> </af:panelGroupLayout> <af:panelGroupLayout id="pgl8" layout="horizontal" valign="bottom" halign="center"> <af:commandButton text="Add" id="cb11Adauga"/> <af:spacer width="10" height="30" id="s9"/> </af:panelGroupLayout> </af:panelWindow> </af:popup> </af:form> </af:document> </f:view> </jsp:root>
My problem:import javax.faces.application.FacesMessage; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import oracle.adf.view.rich.component.rich.input.RichInputText; public class TestBean { public TestBean() { } public void validateText1(FacesContext facesContext, UIComponent uIComponent, Object object) { String val = (String) object; if (val.contains("A")) { FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, "Eroare", "Cannot contain A"); facesContext.addMessage(uIComponent.getClientId(facesContext), message); ((RichInputText)uIComponent).setValid(false); } } }
1. I enter invalid text
2. an error message is displayed, saying that that text I put in place is not valid.
3. I press the Add - button the popup is closed. Why? The component is not valid. Shouldn't the blocked popup until all text entry are valid?
How to achieve this.
Please see the screenshot below, it better describes my problem:
Published by: Andrei Ciobanu on 12 Aug 2011 06:16
Published by: Andrei Ciobanu on 12 Aug 2011 06:19You should read the documentation of af: popup [http://download.oracle.com/docs/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_popup.html url] and understand everything about auto-licenciement
-
Restart the problem after closing the lid of the laptop for a few minutes
I use Windows 7 Home Premium on my Asus A53S. I have reboot issues a few minutes after closing the computer laptop lid eventhough I put what to do after closing the lid to "do nothing" for both on battery and the plug. And it will keep restarting over and over again. Rest
Hi DennisHii,
You did changes to the computer before the show?
Method 1
I suggest you perform the clean boot and check if the problem persists.How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Note: Follow step 3 of section of boot KB929135 to reset the computer in normal mode.Method 2
I suggest you try the steps from the following link:Windows 7 is not going to sleep
http://support.Microsoft.com/kb/976877Hope this information is helpful and let us know if you need more assistance. We will be happy to help.
-
Transitional not erased after cancellation when closing popup
Hello
JDev 11.1.2.4
I have a table with a transitional OS displays a checkbox to make a selection.
The user selects some lines, click on a button that makes a Rollback, the selection is deleted as expected.
In the second case, the user selects some lines and then opens a popup, does nothing, close it. The user clicks the restore button again, the selection is cleared.
In the third case, the user selects a few lines then opens a popup, just commit (no data entry), close it. The user click again on the button restore, selection is NOT cleared. I checked the value of the transient, and it is true, then the user interface is in harmony with the model.
It seems that a consecutive call commit and Rollback does not erase the transitory values. I know what to do a Commit followed by a restoration seems silly, but I'm trying to find the problem, I (transitional non cleared) in a more complex UI, and I noticed that the problem occurs in this case. It seems that the Rollback is not done because there is nothing to do. Is this why my transitional cannot be erased?
Thank you
Try adding the transitional attribute VO level instead of level OE
-
region of refresh on the page parent after closing popup inframe
Hello
I have parent page with several regions, and one of the reports is related popup to another page using inframe. All these are works fine but now iam trying to a parent region partially regenerate after closing the window contextual inframe, I tried apex.submit (region1) but it does not work? no idea how can I update this after the closure of the window popup?
Best regards and thank you
Hi Gor_Mahia,
Gor_Mahia wrote:
Here are the details,
application ID = 46268
page ID = 13
demo123/demo123
proj2010 = workspace
Use the links in the second column IR
Once again thanks for your time.
Check your application now. The interactive report is refreshing on the closure of the modal dialog box using the method of dynamic, such action described in the blog post:
Monkey on Oracle: Modal popup with dynamic Actions
Here are the changes:
- Edited your action dynamic and value:
In the section "Advanced":
Scope of the event: Dynamics
In 'true Actions:
Action edited your "run the Javascript Code" and "Code" to modified:
From:
/* prevent default behavior on click */ var e = this.browserEvent; e.preventDefault(); /* Trigger JQuery UI dialog */ var horizontalPadding = 30; var verticalPadding = 30; $('').dialog({ title: "Edit Employee", autoOpen: true, width: 700, height: 300, modal: true, close: function(event, ui) { apex.event.trigger('#P13_AFTER_MODAL','select',''); $(this).remove(); apex.submit('edit-IR'); }, overlay: { opacity: 1.0, background: "black"} }).width(700 - horizontalPadding).height(300 - verticalPadding); return false;
NOTE: remove the apex.submit call in the function close to the code below so that it submits the page.
TO
/* prevent default behavior on click */ var e = this.browserEvent; e.preventDefault(); /* Trigger JQuery UI dialog */ var horizontalPadding = 30; var verticalPadding = 30; $('').dialog({ title: "Edit Employee", autoOpen: true, width: 700, height: 300, modal: true, close: function(event, ui) { apex.event.trigger('#P13_AFTER_MODAL','select',''); $(this).remove(); }, overlay: { opacity: 1.0, background: "black"} }).width(700 - horizontalPadding).height(300 - verticalPadding); return false;
I hope this helps!
Kind regards
Kiran
-
All,
IAM trying this example in the url of Denes Kubicek
http://Apex.Oracle.com/pls/OTN/f?p=31517:257:4044366874569:no:257:
Sometimes I get popup but entering and clicking on save errors and after no longer not the popup or popup if I logout to erase my session and log back in, but it still does not work. I need help with this pls?
= > I made the changes to the pop-up window but the economy does not work?
pls have a look at my sample
wkspace = proj2010
user/pwd = demo123/demo123
AppID = 760/page 17 page clicking = search
Kind regards
Published by: Gor_Mahia on February 6, 2013 20:35Gor_Mahia wrote:
All,
IAM trying this example in the url of Denes Kubicek
http://Apex.Oracle.com/pls/OTN/f?p=31517:257:4044366874569:no:257:Sometimes I get popup but entering and clicking on save errors and after no longer not the popup or popup if I logout to erase my session and log back in, but it still does not work. I need help with this pls?
===>, I made the changes to the pop-up window but the economy does not work?
pls have a look at my sample
wkspace = proj2010
user/pwd = demo123/demo123
AppID = 760/page 17 page clicking = searchKind regards
Published by: Gor_Mahia on February 6, 2013 20:35
The problem was with your request application process-addEmpGarbage. You had this in pl/sql code:
BEGIN INSERT INTO emp (ename, job, mgr, hiredate, sal, comm, deptno ) VALUES (:p257_ename, :p17_job, :p17_mgr, SYSDATE, :p17_sal, :p17_comm, :p17_deptno ); EXCEPTION WHEN OTHERS THEN HTP.prn ('Error adding record to the EMP_GARBAGE Table. / ' || SQLERRM); END;
Look at the value passed for the ename column - it's p257_ename.
I changed it to p17_ename.Thank you
Rohit -
problem with the table of jbuttons actionListener
Hello friends,
I have a class of card whose 52 objects are stored in a vector.
I have 2 players who have a vehicle for 11 objects of type map of each card.
In my DispGame JFrame.
I stored 11 JButtons in a vector that appear in the JPanel.
When I click on a particular card (IE JButton) it is displayed on a JLabel in the middle of the game.
to do this, following code is written to associate the actionlisteners
Now, here's the real problem. When the JButon is clicked, it is removed from the Vector and JPanel.private void reAssociateBtnListener() { for(byte b=0; b<(byte) (btnCardsPL.size()); b++) { btnCardsPL.elementAt(b).addActionListener(new BtnCardLocalPlayer(b)); } } private class BtnCardLocalPlayer implements ActionListener { byte index; public BtnCardLocalPlayer(byte idx) { index = idx; } public void actionPerformed(ActionEvent evt) { // Remove the btnCardPL from the local player button array removeCardAndButton(); playCard(index); } private void removeCardAndButton() { DispGame.pnlGame.remove(btnCardsPL.elementAt(index)); // ERROR aray idx out of bounds //Game.playerL.plyrCard.removeElementAt(index); btnCardsPL.removeElementAt(index); repaint(); } } protected void playCard(byte b) { // Display the image on the board reAssociateBtnListener(); // Problem here }
Then I re associating the actionListeners.
And also the associated object is removed from the 11 cards of players.
When I re associate the actionlisteners then re action is performed. That is to say the event automatically fires again and a new card is played. How can I stop this!
Below is the reference to my previous post about the event of the dashboard buttons.
Get the index of the clicked on JButton
as suggested by jduprez
I hope I explained my point of view and clearly doubt!
Thanking in advance!When you 'relink the action listeners', you add only more action listeners to the buttons. You never remove the original action listener. When you press the second button, it has two headphones. When you press the third button, there are three listeners.
-
How to call navigation flow task after closing popup inline?
With the help of JDev 11.1.1.3; I have a commandButton control that is currently executing workflow navigation when you press. But I need to invoke an inline popup button press on ahead of the navigation of workflow (conditional). The action parameter on the button should then be deleted, but it is not clear where to restore them. I have the button running some managed code bean that conditionally invoke the popup inline, and when the popup (contains FY: dialog) is closed, I have a few more managed bean code that determines if navigation workflow should happen or not. What I need to know is how to trigger the Action of the managed bean. Any suggestions?
Thank youI understand you right, you want to call another action from the bean code?
If the action has an earpiece attached to it, you can call the listener from your bean code method.
Or you can use the navigation Manager to navigate to the target names:... FacesContext context = FacesContext.getCurrentInstance(); NavigationHandler nh = context.getApplication().getNavigationHandler(); nh.handleNavigation(context, "", "NEXT_TARGET"); ...
Timo
-
ADF11g:
I have problem in refreshing the popup.
On the homepage, there is a table and a column of this table, I put commandImageLink one click on this image that I supposed to open a popup where I display the result of information.
during the first click on this image, I am able to show the result correctly, but if I change the line and try to click the image once again, of that I am not able see the new result .it antique watch. OnClick, I checked the new result values are extracted by the server, but not reflecting does not Popup.
Yet one thing i course is only the first time when I click on the image goes to the action method and then open popup but at next until it clicks fisrt popup opens and then call the action method.
< af:column sortable = "false" headerText = "Actions".
rendering = "true" width = "50" >
< af:panelGroupLayout layout = "horizontal" >
"< af:commandImageLink icon="/image/info.jpg ".
shortDesc = "Info".
partialSubmit = "true" action = "#{IssueActionBean.refresh_ContentRevisionInfo1} '"
launchListener = "#{IssueActionBean.getRevisionLauncherListener}" >
"" < af:showPopupBehavior popupId = ": popupinfo".
triggerType = "click on" / >
< / af:commandImageLink >
"< af:commandImageLink icon="/image/checkinout.jpeg ".
shortDesc = "Check in/out" >
"" < af:showPopupBehavior popupId = ": popupMenu.
triggerType = 'action '.
align = "beforeStart" / >
< / af:commandImageLink >
< / af:panelGroupLayout >
< / af:column >
< / af:table >
< af:popup id = popupFetchListener = "#{IssueActionBean.getfetchRevisionLauncherListener"popupinfo"}" >
< af:panelWindow title = "information content".
inlineStyle = "width: 600px; height: 500px; ">
< af:table value = "#{bindings.documentRevisions.collectionModel} '"
var = 'row' id = 'popupinfo1 '.
Rows = "#{Bindings.documentRevisions.rangeSize} '"
emptyText = "#{bindings.documentRevisions.viewable?" "{"No line yet.":"Access Denied."}"
fetchSize = "#{bindings.documentRevisions.rangeSize} '"
selectedRowKeys = "#{bindings.documentRevisions.collectionModel.selectedRow} '"
selectionListener = "#{bindings.documentRevisions.collectionModel.makeCurrent} '"
rowSelection = 'single '.
inlineStyle = "width: 750px; height: 250px; margin: 20px; ">
< af:column sortProperty = "revLable" sortable = "true".
headerText = "#{res}" >
< af:outputText value = "#{row.revLable}" >
< af:convertNumber groupingUsed = "false".
pattern="#{bindings.documentRevisions.hints.revLable.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "release date".
sortable = "true".
headerText = "#{res}" >
< af:outputText value = "#{row.releaseDate}" >
< af:convertDateTime pattern="#{bindings.documentRevisions.hints.releaseDate.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "expirationDate".
sortable = "true".
headerText = "#{res}" >
< af:outputText value = "#{row.expirationDate}" >
< af:convertDateTime pattern="#{bindings.documentRevisions.hints.expirationDate.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = 'status' sortable = "true".
headerText = "#{res}" >
< af:outputText value = "#{row.status}" / >
< / af:column >
< af:column sortProperty = 'fact' sortable 'true '.
headerText = "#{res}" >
< af:outputText value = "#{row.did}" >
< af:convertNumber groupingUsed = "false".
pattern="#{bindings.documentRevisions.hints.did.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "docName" sortable = "true".
headerText = "#{res}" >
"< af:goLink destination =" #{row.docURL} "text =" #{row.docName} ".
targetFrame = "_blank" / >
< / af:column >
< af:column sortProperty = "docURL" sortable = "true".
headerText = "#{bindings.documentRevisions.hints.docURL.label}" >
< af:outputText value = "#{row.docURL}" / >
< / af:column >
< / af:table >
< af:panelFormLayout >
< / af:panelFormLayout >
< / af:panelWindow >
< / af:popup >
public String refresh_ContentRevisionInfo1() {}
BindingContainer links = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
Object result = operationBinding.execute ();
Bindings.Refresh ();
DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("documentRevisionsIterator");
iterBind.executeQuery ();
iterBind.refresh (DCIteratorBinding.RANGESIZE_UNLIMITED);
Returns a null value.
}
{} public void getRevisionLauncherListener (LaunchEvent launchEvent)
BindingContainer links = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
Object result = operationBinding.execute ();
Bindings.Refresh ();
DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("documentRevisionsIterator");
iterBind.executeQuery ();
iterBind.refresh (DCIteratorBinding.RANGESIZE_UNLIMITED);
}
Thanks for any help.
KatieTry to set the attribute contentDelivery of the pop-up window to layzUncached and see if that helps.
If this is not the case, try to send a ppr to the pop-up window.
Timo
-
HP ab125ax: have gambling problems and closing system
Hi, I bought this laptop about a month ago and since then I have trobles with her, it stops automatically even when watching a TV show or something on this subject but the most important is his worst game performance serusly man I'm still not able to play nfs most wanted edition 2005 on it.it gets hanged in time not completely that I know not what is happening the system gets automatically stop the same thing happens when I play counterstrike source on it (this is also an older version) I don't know what it takes I already posted several times but never get an answer or help you please send someone to fix this thing up.i am really fed up with him if I wanted a performance like this that I wud have bought a lapyop 20 k cheaper that it so please help me.
Hi @rkbaldola,
Thank you for the update. That you have completed all the troubleshooting steps, from my previous post, and the problem persists, I would check for hardware failures. You also said that the laptop is hot on the side of the fan when it stops, I'm including HP laptops - reducing heat inside the laptop to prevent overheating step 6 to test hardware failures. Please keep me updated.
-
Problem of closing on the Satellite A100-906
Hello.
I use a Satellite A100-906. The problem is the thing began to close when starting hot (and NOT too hot, too, paying all in 35 minutes of play or so!)
Can anyone help?Thanks in advance
SARP
According to the description of your problem in short, there must be an overheating problem. For me, the first step is to make the laptop clean. It may be that the cooling fans are full of dust and dirt blocking the air flow. The result is material high temperature.
Or, you can try to do it alone by using vacuum or pay for professional cleaning.
-
Problem of closing IdeaPad black 300
I'm under W10 V1607 OS 14393.187 and I can't get off the computer correctly. I get the standard Windows message stop then the whites of the screen on. However if the keyboard is connected, the led remains power on and it is certainly still on. I changed the power to stop settings when the lid is closed, does not. The ONLY way to stop using the hard stop by pressing the button and the volume control at the same time, which is not really my preferred option.
I installed all drivers etc that are suggested, but still without a bit of luck.
Someone has an idea, what do I do now?
Welcome to the NorfolknHope forums!
Could you please try with starting fast disabeling in-Control Panel > power options?
Kind regards
Pavlo
Maybe you are looking for
-
laptop N5Y05UA #ABA: unable to pair Bluetooth speakers
I'm trying to pair a speaker wireless computer bluetooth with my new hp laptop N5Y05UA #ABA.
-
Expandable balloons broke while debugging in VB2005EE and VC #2008
As described here http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/adf9e518-92ac-4068-8c75-56b5edc69fc6 my problem is that I can't open extensible ToolTips for debugging, they all disappear just as if I had moved the slider away from some
-
Failed to install graphics Win 8.1 on Dimension E520
Hello I just bought a 'new' E520 and tried to install Windows 8.1 with the x 1300, ATI video card (onboard). However, immediately after the 'Windows of the Pavilion' bootscreen, my monitor stops showing a message "Input not supported". I adjusted th
-
Wheel scrolled is no longer on the mouse
The wheel on my Logitech optical mouse stopped working about two weeks ago. For no apparent reason. The mouse works fine, but I can't use the wheel to scroll. It is not a problem that is desperate because I can navigate using the top and to the botto
-
Support for OS Linux in Cisco ISE
Hi all Can someone help me to know. If any Linux OS posture assessment is available in ISE like Windows & MAC OS.