Execute button on page from a seperate page

I have a popup page with checkboxes and a submit button. When the user clicks submit, i need an execute button on the page that called the popup window to fire.. is this possible?

OK: since you want to run a method that is in the backing bean of another page you could do the following: create a managed session scope bean which you can call from the backing bean of the dialog page, or...
...you could create a common method in a class which both of your backing beans extend from... I have one or more backing bean bases that I extend from so that I can call the same method.
Here is a way you can get at another bean from a backing bean if you do not know how to do that:
So if your ActionListener property on the command button in the dialog windown for the Save button or whatever you are calling it called the following method in the local backing bean:
public void onSaveButtonPress(ActionEvent actionEvent) {
CommonMB lCommonMB = (CommonMB)EL.get("#{CommonMB}");
lCommonMB.theMethodYouWantedToCall();
If you defined CommonMB as a session managed bean that had your target method "theMethodYouWantedToCall()" then you could call this method from both the button in the dialog and the button on the calling page. Right? Would this work for you?
Where EL.get is defined as follows (this is more Steve Muench code BTW):
public class EL {
public static boolean test(String booleanExpr) {
return Boolean.TRUE.equals(get(booleanExpr));
public static String getAsString(String expr) {
return (String)get(expr);
public static Object get(String expr) {
FacesContext fc = FacesContext.getCurrentInstance();
ValueBinding vb = fc.getApplication().createValueBinding(expr);
Object lReturn;
lReturn = vb.getValue(fc);
return lReturn;
public static void set(String expr, Object value) {
FacesContext fc = FacesContext.getCurrentInstance();
ValueBinding vb = fc.getApplication().createValueBinding(expr);
vb.setValue(fc,value);
}

Similar Messages

  • Executing a shell script from a jsp page

    Hi,
    I'm facing a problem while executing a shell script from a jsp page.
    I'm using Runtime.exec() function.
    It's working fine for single statement scripts.But if the script consists of any database processing and some other processing statements,it's not returning the correct exit status of the process.
    Will u please help me in this.
    If there is any other ways to execute a shell script from a jsp page other than Runtime.exec() like RMI etc,.If so let me know.
    Thanks in advance.

    Hello,
    It's hard to help you but what you can do is listening to the outputs of your script, you should read the output stream and error stream and send them to the default console.
    Check this excellent article : http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=4
    Best regards,
    Olivier.

  • I want to execute JSP scriplet in onClick function of the button HTML page

    in my JSP page, the code is like this...
    <input type="button" value="xyz" onClick="<% my jsp code%>">
    the jsp code is executing wen the page is loading..
    i want the jsp code is executed wen v click the button..
    can i write like this...if not how should i write.
    plz suggest me...
    Thanking you
    Sorry if i post this in a wrong forum....
    Edited by: Murthy_Srinivas on Jun 5, 2008 10:49 PM

    the jsp code is executing wen the page is loading..
    i want the jsp code is executed wen v click the button..Not possible(in the way you are trying to achieve). JSP codes are processed in the server and only processed data/results are sent to browser which you see in your screen. Browser cannot/willnot execute the jsp code.
    ...if not how should i write.The only way is to make a server call(eg: either submit a form, make a http request using Ajax etc)

  • PDF button menu id from PO Page  ?

    HI ALL Experts,
    i want to know about pdf button menu id from PO From ,
    any body know then please give me solution ASAP .
    Thanks and Regards
    Kalpen

    HI nj
    I create one addon for Send Po Layout in pdf .
    so i want to click this menu button  from my page and i pass parameter PO Docnum ,
    then i want to this PO layout attach my Form and send this PDF Layout to client
    its possible ???
    Thanks
    Kalpen

  • Tried purchasing iTunes music. Put in my apple id and password then i was directed to a 'Terms and Conditions' page. I checked the box then clicked the 'accept' button next page read 'your Session has timed out '  try again  with a Done button to click on

    Tried purchasing music from the iTunes Store. When the window popped up I put in my apple id and password. Then I was directed to a 'Terms and Conditions' page. I checked the box next to the 'Yes I agree to these terms and conditions' - then clicked the 'accept' button next page read 'Your Session has timed out. Try again.'  with a 'Done' button to click on. Oh the same thing happens when i try to download  free iTunes. Yes I have tried & tried it again I even logged off and singed back in-- no joy 
    After accessing my iTunes account I was not able to change anything like my credit card number when I tried and was sent right to the 'Your session has timed out. Try again.'
    The last time I purchased any anything was on September 25th 2011 and the 'terms & conditions' page was last updated on October 12, 2011
    Does anyone have an idea to what is going on with my iTunes version 9.2.1 (5) and I can not upgrade to a higher version my iMac does not have the intel processor chip.Thank you for your time and help with this matter. You are greatly appreciated 

    I am having the same problem also! I posted on here about it, but no one has responded with ideas. I called technical support and e-mailed them, the only suggestions they gave was for the to turn off my firewall. But I didn't change anything, so it shouldn't suddenly stop working. Maybe this is just an iTunes issue? But it doesn't even recognize my account anymore, and I cannot log in now.
    If you happen to get an answer, will you please let me know what works for you?
    Thanks!

  • Can we include common buttons in Page template......

    Hi,
    we are on the process of developing a product using ADF. Now we have implemented a page template. Most of our pages contain the common buttons like [SAVE,DELETE,UPDATE,CANCEL,PRINT].
    I am entirely new to this area. Can anyone advise whether we can include this buttons in page template. How can we differentiate the actions from these buttons in each page. While including the page level validations whether this makes any performance impact compared to put buttons in each page seperately.
    Thanks,
    Prabhash.

    Hi,
    see: http://thepeninsulasedge.com/frank_nimphius/2007/11/23/adf-faces-rc-implementation-strategies-for-global-buttons-in-page-templates/
    Frank

  • Button on page 0 - how to branch to new page

    I have a button (named 'P0_RUN_TASK') created on page 0 that I need to use to branch to other pages. The page to branch will depend on the values of other items on page 0. How do I do this? Application Process?

    Still some issues. I put thie text below in the process text. There is nothing in condition type that has a 'when button pressed' , so I just made it always to test.
    2 issues
    #1 not sure where you make it fire when a button is pressed from page 0.
    #2 It always bringing up the log-in page before directing me to the page I want to go to .
    apex_application.g_unrecoverable_error := true;
    owa_util.redirect_url('f?p=1:2');
    thanks!

  • Strange bug -- adding one more button OR page causes Form warning to appear

    I'm building a simple interactive document in InDesign CS4 on the Mac, to be exported/delivered as a PDF. There are a few text-based buttons on the Master Page that are set to Go To a Text Anchor on Release. There are 4 buttons of these buttons on the page, and each one leads to a different page in the document, and they all work fine. They are all built the same way.
    I want to export a PDF that opens cleanly in Reader, meaning no unexpected dialog boxes or warning messages appear. Up until this point, my document opens cleanly in Reader.
    However, when I create a FIFTH button (using the exact same method used to create the other buttons), OR I add ANY more pages to my document (which currently stands at 16 pages, but will need to ultimately be upwards of 40), for some reason, opening the PDF in Reader causes Reader to start displaying the large, distracting pink warning message at the top of the page:
    "Please fill out the following form. You cannot save data typed into this form. Please print your completed form if you would like a copy for your records."
    The fifth button I create (from scratch) causes this message to appear.
    Or, if I add another page (using my Master Page, where the buttons are used), this message appears. Even if the fifth button is not created, and I add another page from the Master, this message appears.
    If I add a blank new page (without using the Master Page), the message does NOT appear.
    So, for some reason, adding ONE more button, or referring to the Master Page in the document ONE more time by adding a 17th (or more) pages, seems to kick InDesign/Acrobat Reader into thinking my document is suddenly a form, and causes Reader to display that obnoxious pink message when opening the document.
    I've tried several troubleshooting steps.
    - I've ensured my buttons have unique names.
    - I've tried creating the fifth button from scratch, and also tried creating it from duplicating one of the existing "good" buttons.
    - I've made sure the button has a destination page/Text Anchor to go to.
    - I've opened the PDF in Acrobat Pro 9, and gone through all of the page and buttons in the Forms Manager, and there is nothing out of the ordinary in that view.
    Why is Reader suddenly thinking my document is a form (that "cannot be edited/saved") when I add one more button, or one more page!? It's bizarre, and quite frustrating.
    Thanks for any insights,
    Robbie

    You can use that same workaround with ID CS4 files. You just have to make the PDF and then go into Acrobat to add the security that doesn't allow editing (Acrobat -> Security -> Encrypt with Password) . That gets rid of the warning about the form. Of course if you actually have a form somewhere in your document, you won't be able to use that......

  • Form:The user sees on the screen a single page, for the second page (and to fill it in) he will click a button "next page"!

    Hello, sorry for my english!
    I am currently creating a form. This form contains 20 pages. For more comfier to fill it in, I want it to be loaded 1 page to 1 page. The user sees on the screen a single page, for the second page (and to fill it in) he will click a button "next page"!
    Is it possible to do this with adobe acrobat pro?
    In the case of a negative answer, can Indesign do this?
    thank you.

    Technically it's possible to use a script to prevent someone from going to the next page unless they click a button, but I think it's a bad idea and very user un-friendly. You can add a button that will take someone to the next page, but don't try to restrict them from doing so themselves if they so wish.

  • Error when I executed my JSP page

    Hello,
    I have installed in my machine o OracleAS e o OracleDS. I created a JSP page using Reports Builder. When I try run my page, after some time, the following error message is displayed in the browser:
    Reports Error Page
    Wed Jun 19 10:08:29 BRT 2002
    javax.servlet.jsp.JspException: REP-51002: Falha na Ligagco ao Servidor de Relatsrios rep60_mariana
    javax.servlet.jsp.JspException: REP-51002: Falha na Ligagco ao Servidor de Relatsrios rep60_mariana
         int oracle.reports.jsp.ReportTag.doStartTag()
         void MyReport.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    Someone could help me?
    Thanks.
    Carla

    hello,
    this error message is when the report cound not contact the specified report server. since you are saying you are on windows NT i assume you try to run the report using the OC4J instance that comes with iDS.
    take a look at the HOW TO article "How to Execute Oracle9iAS Reports Services from Oracle9iDS" in Getting Started with Oracle9i Reports (http://otn.oracle.com/docs/products/reports/htdocs/doc_library/getstart/GettingStarted/whatsnew.html)
    it describes the necessary configuration you have to do to run a report there for testing.
    regards,
    philipp

  • How to execute a JSP Page?

    Hi Experts,
    I have created a Abstract portal Component JspDynPage.
    the JSP is created in <Componnet Name>/dist/PORTAL_INF/pagelet/test.jsp
    if i want to execute a JSP from the browser directly what will be the URL to execute this jsp page.
    Regards,
    Viswes

    Thanks for your immediate response.
    Actually ive uploaded the par file and also created the iView with respect to that par.
    Actually My Requirement is in my project i have created another jsp file.I want to open a pop-up window for this jsp to open.
    for this to open in new window im using JavaScript. onClick event iam calling this window.open("test.jsp");
    but it is throughing me an error saying not found.
    So i need to specify the correct path to execute this jsp.
    Can you Please guide me?
    Thanks,
    Viswes

  • "MX1000 Buttons" Wiki Page Posted

    This is just a quick note that I have now posted the "MX1000 Buttons" Wiki page that we were discussing here in this forum last week. This page takes you step by step through the process of configuring all of the buttons on the Logitech MX1000 mouse for use with Arch.  Feel free to review, comment, change...
    Thanks again to MrWeatherbee for all the help that led to the creation of this page.
    BTW MrWeatherbee, it turns out that horizontal scrolling is on buttons 12 and 13 on the MX1000 - that is why it wasn't working initially. Applying my learnings here from last week I discovered this, mapped it correctly and now it works like a champ. You have taught me (and I hope many others through this thread) to fish! Thanks again.

    mac57 wrote:This is just a quick note that I have now posted the "MX1000 Buttons" Wiki page that we were discussing here in this forum last week. This page takes you step by step through the process of configuring all of the buttons on the Logitech MX1000 mouse for use with Arch.  Feel free to review, comment, change...
    Is this it?
    http://wiki.archlinux.org/index.php/MX1000_Buttons
    While I haven't read it very, very closely (i.e., I didn't bother trying to nail you for spelling mistakes ), the format and general clarity is very nice and coherent.
    One point, however. As you asserted in so many words in an earlier post on this topic, sometimes the business of setting up a mouse seemed like magic instead logic. I believe that part of the confusion stemmed a great deal from existing tutorials which advocate(d) the use of:
    1. the stock mouse driver
    2. Z-axis mapping
    3. Xmodmap code which only uses a "scrambled" portion of one's available mouse buttons
    Item 2) and 3) were inevitable because the "mouse" driver only supported buttons up to 7, so goofy, hard-to-follow mapping which omitted buttons was required by those other guides.
    However, since you use "evdev" in the wiki, as you should, you have no need for and do not use "Z-axis". Great. BUT you still are using a hard to follow Xmodmap'ing given your mouse:
    xmodmap -e "pointer = 1 2 3 4 5 8 9 6 7"
    It is hard to follow (my opinion) because it is known that the subject mouse (MX1000), per your tutorial, has 14 buttons available. Would it not make more sense, even if it works without it, to use an Xmodmap containing a mapping using all the buttons? At the least, explain better why the code is truncated at "9". Even if the answer to why is, "Hey, it works without them, so in the interest of code conservation, I removed 10, 11, 12, 13, 14. At least then, anyone reading would not be wondering why you "chose" a nine-button mapping for a 14-button mouse.
    Again, it's a minor point in that the code as presented works. But it also clouds a little of the clarity of presentation, especially for those who may have a different mouse and are trying to figure out how to generically apply the guide you have crafted.
    Thanks for all your work.

  • Not able to Enable the Custom Ribbon button On Pages in Sharepoint 2013

    Hi Team,
    Not able to Enable the Custom Ribbon button On Pages in SharePoint 2013. we have used the button edit properties section of the Pages.
    Same is working for Lists but not for Pages.
    Thanks,
    Shrikant

    Thanks for your reply.
    Right now my server is not working to get the code. will share you in some time.
    I am just thinking if page get checked out and my control is also present in the Edit properties section then do I need to specify something explicitly to enable the button. The same is working for Lists.

  • I just purchased Audition CC as a single app purchase for $19.19/month.  I already have Creative Cloud installed. The program is not downloading - I clisk the "downlaod" button, the page says the program is downloading, but nothing is actually happening.

    I just purchased Audition CC as a single app purchase for $19.19/month.  I already have Creative Cloud installed. The program is not downloading - I clisk the "downlaod" button, the page says the program is downloading, but nothing is actually happening.  What is going on?

    Nobody can tell you anything without proper system info or other technical details.
    Mylenium

  • Buttons with page actions not working

    Hi,
    I have a folio with buttons that have actions such as "Go to Page", "Go to First Page" and "Go to Last Page".
    I could export this folio with Folio Builder to the server and I could view it in my tablet with no problems.
    However, today (August 30th) I exported the folio again and it's not working. All other overlays are working fine, but buttons with page actions just show their Click appearance and go back to normal.
    My friend also teels me of this problem.
    What happened?
    My Content Viewer in my iPad is updated and I have made the last Folio Builder upgrade.
    Sincerely,
    Jean

    There was a bug in which these previously supported button actions (Go to Page and Go to First/Last Page) no longer worked, but I thought that bug had been fixed. Let me check on that. In the meantime, the workaround is to use the "navto://" format to jump to a different page within the same document. Use the "navto://articlename#n" format. The first page is 0, so #1 jumps to page 2. For details, go here:
    http://help.adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60-8ad81e812b10bfd837-80 00.html#WS67cb9e293e2f1f606f59889512d69320e0d-8000

Maybe you are looking for

  • Getting oracle.xml.parser.v2.XMLParseException: Start Of root Element

    Hi All, I am getting below error while creating STUB/Skeleton in Jdeveloper to call a web service from OAF Page But getting below error while trying to creating Stub/Skeleton to call weservice ERROR: oracle.xml.parser.v2.XMLParseException: Start Of r

  • CTI toolkit Agent desktop not starting

    Hi I have recently installed a CTI toolkit agent desktop in my PC but it is not starting and is giving error "Cisco Desktop client has stpped working" This is the first time i installed this application in my computer running windows7 64 bit. the ver

  • Subcontracting Vendor and Purchase Vendor

    Dear All, I have created separate Pricing Procedure for Subcontracting PO, since the requirement is to calculate the price on issuing qty. I have put Formula Based Condition type. We issue 100 KG of material and receive less than 10 KG (say 90-95 KG)

  • How to view pictures as "fit-in" in Photos

    Is there a way to view pictures in landscape mode in Photos as "fit-in" rather than "fill-in" mode by default? I just bought an iPhone 5 today and am disappointed to see that my photography work, which is taken in a 3:2 aspect ratio, is strechted out

  • How to make second phase release when project released?

    Hi all,            I'm new to cproject. My issue is second phase (does not has tasks) can not be release when project is released and however first phase which under project directly able to release. Do you have any idea on what cause this problem an