Calling a method on clicking FileDownload UI

Hi,
I need to call a method when I am clicking FileDownload UI. Please tell me if there is any possibilites.
Best Wishes,
Idhaya R

Hi Sumit,
I want the file to be generated on clicking the filedownload UI. I am having a method to generate the file. If I am able to download and show the file to the user on clicking the button also will be fine. Please tell me is there any possibilities of downloading a file (Working as if clicking File Download) on clicking a button.
Best Wishes,
Idhaya R

Similar Messages

  • How to call a method on click of selectOneChoice dropdown box

    Hi,
    I am using selectOnceChoice whose list is coming from an arrayList.
    On the load of my page, I am populating the arrayList and it is getting visible in the selectOneChoice dropdown.
    But I have a scenario where I need to populate the arrayList(List Items) for selectOnceChoice on click of selectOnceChoice box. Not at the time of page load.
    I tried to do that with the help of clientListener and ServerListener but it seems that it is ServerListener is not the child attribute of selectOnceChoice.
    Can anyone please help me out to perform or call a method on click of selectOnceChoice box.
    Thanks,
    Vicky

    Could someone please explain to me the main difference between adapters and listeners? WindowListener is an interface, if you use it then you have to implement all its methos whether you use then or not while WindowAdapter is a class which implements WindowListener and provides empty implementations of all the methods in the listener, so basically by using windowAdapter you are avoiding
    the implementation of methods which you don't required.

  • Calling a method on click of a hyperlink which opens popup

    Hi,
    I am new to the technology.
    I have a hyperlink on .jspx page. Upon clicking it a pop up should open. I need to pass an object to a methd in the bean which will pre populate data in the pop up as soon as it opens. i.e. want to populate the data in the pop up from the data base. Please tell me how that can be done?
    Using adf 11g jsf 2.0

    1.On click of the hyper link, call a managed bean method. You can set the value to be passed to managed bean method on click of hyperlink via setActionListener.
    Check this for setActionListner example: http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_setActionListener.html
    2.And based on that parameter, populate the data from the data base.
    3. After that launch the popup programatically. Read the article with heading How to launch a popup programatically from Java in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/oct2010-otn-harvest-183714.pdf
    -Umesh

  • How to call a method by clicking on a button

    hi, I have made a jsp page where I define a method toto.
    what the html source code for a button wich when you click it will process this method ?
    thanx

    There is no HTML source (or Javascript source either) that can directly call your toto JSP method. Think of it like this. You want to send a request from the browser to tell the JSP page to run method toto. For example, if the JSP page is named myPage.jsp, then the request could be as simple as myPage.jsp?action=runtoto (or http://yourwebserver/your/page/path/myPage.jsp?action=runtoto as an absolute URL). The JSP would then need to look for the action parameter as it is sent from the browser. If the action parameter equals "runtoto" then you could call the run tot method. Example:
    <%String action = request.getParameter("action");
    if(action.equalsIgnoreCase("runtoto"))
       toto();%>
    This could be coded in myPage.jsp and would run the toto method whenever the browser requested it via the action parameter. The HTML for the request could be coded as a button, a hyperlink, or anything that would generate a new page request.
    <form action="myPage.jsp" method="GET">
    <input name="action" type="button" value="runtoto"> Click to run the toto method.
    </form>
    Of course you have to consider the other parameters that will be submitted with the form. This may present some design issues/questions.

  • How to call a method on clicking Search Button in a jspx page.

    Hi All,
    I made a simple search page with two search criteria. Also i used LOV's for selecting the values to these view criteria's.
    Now i need to validate the criteria's being passed before page renders. Based on the validation i would like to change my base query of the page.
    Is this is possible to have two different query for the same page.
    If yes then please guide me to achieve this !!!
    Regards
    Siva

    Hi Arun ,
    Thanks for the reply,
    This is the actual scenario,
    I need to allow user to querying using a particular atrribute say A1 but applying A1 directly as a criteria on my base query along with other criteria will not fetch any details.
    Instead
    I need to fire the same query with A1 alone initially and on top of the fetched results i need to apply the other criteria
    OR
    I need to get the A1 from user and fetch some other attribute let's say A2 corresponding to A1 and this A2 has to applied as the new attribute along with the other attributes.
    Can this be achieved.
    Regards
    Siva
    I am using jdev 11.1.1.6

  • Need call a method of one iview from another iview

    Hi,
    There are 2 iviews in a component.
    1) FirstView - contains abc() method & xyz() methods
    2) SecondView (a popup) - asdf() method
    i want to call abc() method from asdf() method. i.e. i want to call a method of the firstview from the secondview.
    Note:
    1) i couldn't able to copy the code of abc() method to component controller, as it has the code which uses (iview) local attributes (this can be done by context mapping) & main reason is from the method it calls the xyz() method of the same view (again i couldn't call a method of iview from component controller).
    2) firstView contain 5 tabs, i want to be in the same tab from which secondview (popup) was called, if i use fire plugs between both view, the current tab will be chnaged (i suppose, not sure).
    3) can we use event handlers, if yes how can we do that.
    Please provide a better solution for calling a method of view from another view.
    Thanks
    Maha
    Edited by: Maha Hussain on Jan 13, 2009 12:40 PM

    Hi Maha,
    It is better to have such methods in the component controller to make it reusable and avoid writing same code again and again.
    You can have that method in component controller and call that method on click on a button from Iview1 and can pass the parameters in the mthgod only.
    for example.
    Say Method abc() which is currently in Iview1 and you are passing values from context say aa bb cc to the method now what i am suggesting is
    have that method abc(String aa, String bb, String cc) ;
    and call it on click on button in Iview1 and pass the required parameters.
    Hope this will help
    Regards
    Narendra

  • Call AM method on ActionComponent  events

    Hi ,
    i need to perform some action like calling AM method ,isUserValid() tio check if user is valid or not on
    clicking action components like commandbutton and commandlink.
    i can archive this by adding PagePhaseLsitener ,and in beforePahseListener.
    i can handle action event update model process Phase.
    but the issue is i need to execute the AM method only actioncomponet event processing phase
    how to we know the event was generated by Action Component?
    please suggest
    Thanks,
    Karnakar

    Hi all
    requirement is to call AM method on clicking action compoents.
    and every page in application will call the above methods.
    i am overriding action component behiavour ,on clicking of actioncomoent it will execute AM method
    Thanks
    Karnakr

  • How to call a method from itemRenderer

    Hi,
    I need to call a method on click of a HBox rendered within DataGrid. However, when I try to call the method on click property of HBox control, an error appears stating " Call to a possibly undefined method goToAlertTab." I have duely defined that method within <mx:Script> tag. Here is the sample code. Can anyone please tell me what is the problem?
                <mx:DataGridColumn headerText="Alerts" dataField="alert">
                    <mx:itemRenderer>
                        <mx:Component>
                            <mx:HBox horizontalGap="2" horizontalAlign="center" click="goToAlertTab()">
                                <mx:Canvas height="100%" backgroundColor="Red" alpha="0.8"
                                    width="{data.alert.critical}" toolTip="{'Critical :'+data.alert.critical}">
                                    <mx:Label text=""/>
                                </mx:Canvas>
                                <mx:Canvas height="100%" backgroundColor="0xff6600" width="{data.alert.error}" toolTip="{'Error:'+data.alert.error}">
                                    <mx:Label text=""/>
                                </mx:Canvas>
                                <mx:Canvas height="100%" backgroundColor="Yellow" alpha="0.8"
                                    width="{data.alert.warning}" toolTip="{'Warning:'+data.alert.warning}">
                                    <mx:Label text=""/>
                                </mx:Canvas>
                            </mx:HBox>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:DataGridColumn>

    Here are some links on dispatching custom events:
    http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_1.html
    http://flexblog.faratasystems.com/?p=170
    http://www.beli.ws/blog/2009/04/technology/flex-3-creation-of-custom-events
    If this post helps, please mark it as such.

  • Call Java Method on Commanlink action without page refresh

    Hi,
    I have a radio button in my application which on click calls a new JSP page inside DIV tag of the same JSP. Now before calling that JSP Page i want to perform some functionality . So i placed a commandlink on radio like this -
    <h:commandLink action="#{controller.deleteData}">
         <h:selectOneRadio id="licenseType" layout="lineDirection" value="#{controller.licenseType}" onclick="javascript:getServerInfo();">
                 <f:selectItem itemValue="#{dataTableItem}"/>
         </h:selectOneRadio>
    </h:commandLink> What I am looking for is that when a user clicks on Radio, first a Java method named deleteData() is called and then onclick() event of Radio is processed which loads a new JSP Page inside DIV tag beneath the radio button.
    But what happens is that as i click on Radio, command link takes precedence and refreshes the page.
    Is it possible for commanlink to just call the method and don't refresh or reload the page ????
    Plz assist with some code example

    Thanks Milind..... :-)
    I've not tried it as yet but i guess it would wok for radio.
    Is there any such event available for command link or command button too.... in which i just call the method on click and the page may not refresh ?
    Would "actionListener" event like this -
    <h:commandLink actionListener="#{controller.getsaveData}">call a java method and refresh the page or just call the method and leave the page as it is.
    If thats possible can u assist with some code examples ???
    USAGE :_ Actually I have a commandLink on which I have put a graphic Image "Submit" and on clicking of this image I just want the java method to be called but the page should not refresh or reload. Here is the code -
    <h:commandLink actionListener=" action="#{controller.getsaveData}">
                      <h:graphicImage url="/IMAGES/save_changes.JPG" height="27"
                                      width="136"/></h:commandLink>{code}
    Can u assist me with this Plz.{code}{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Calling a backing bean method by clicking on an image.

    I have several HtmlGraphicImage (h:graphicImage) objects on a page. I would like to be able to call a method inside the backing bean for the JSP page where the images are located when the user clicks on one of the images, and have a parameter sent to that method in the backing bean that will tell it which image was clicked on.
    How can this be done? Unlike buttons that have an action that gets listend to in the backing bean, HtmlGraphicImage objects do not have actions. I know that you can intercept clicks by an onClick Javascript method, but how can you call a mehtod in the backing bean using the Javascript onClick?
    For example, part of my JSP looks like this:
               <body style="background-color: rgb(255, 255, 255); -rave-layout: grid">
                    <h:form binding="#{InitialReport.form1}" id="form1">
                        <h:graphicImage binding="#{InitialReport.frontalImage}" height="204" id="frontalImage" style="left: 144px; top: 240px; position: absolute" width="242"/>
                        <h:graphicImage binding="#{InitialReport.profileImage}" height="198" id="profileImage" style="left: 432px; top: 240px; position: absolute" width="244"/>
                        <h:graphicImage binding="#{InitialReport.smileImage}" height="198" id="smileImage" style="left: 720px; top: 240px; position: absolute" width="244"/>If my backing bean (InitialReport.java) had a method that looked like this:
      public void setCurrentImage(String imageName)what would the javascript look like in order to send a name to setCurrentImage?
    Thanks!

    you can use the <h:button> with type='image'Thanks for the reply, but I cannot use that. The thing is, the images are read at run time from a database and are not present in the resources. The button's image only takes String file names, not URLs.
    There should be a way to do this using onClick.

  • How to call a method on panel tabbed click.

    Hi Friends,
    I am using JDeveloper 11.1.1.5.0.
    I have a method written in the AppModuleImpl class. It calls a procedure from the database.
    In my .jspx page, panel tabbed is used. When I am clicking the 2nd panel tab, I want the method to be executed.
    Please Help.
    Thanks,
    $@M$

    so on click of that tab, use getSource to find which tab in your bean, and there get the application module from the context, and call the method in your app module.

  • How to call javascript function & action method on clicking jsf  button?

    I have one jsf custom button. I am checking client side validations in mail by calling javascript function & also sending mail by calling action method of a bean which will execute at server side for onclick event of that button. Because of this when I click on that button its calling both javascript function and action method. So even though validations failed its sending mail. How can I overcome this problem?? Please help me....

    I am asking regarding commanLinks in jsf. I have the following code block in jsf. Even though mailSentMessage('true'); returns false, its calling action="#{emailObjectAction.sendEmail}" method. thats why I got that doubt. try the following code.
    <h:commandLink id="mailBtn123Send"      onclick="return mailSentMessage('true');" value="send mail"     action="#{emailObjectAction.sendEmail}">          
    </h:commandLink>

  • Calling a method on backing bean in response to contextual event

    Hi
    I am using Jdeveloper 11.1.1.6.0 and using ADF contextual events..
    I have a drop down list and i am rasiing a contextual event on changing the current selection. In response to that event i want to call a backing bean method with parameters.. But when i click on the subscriber section for the contextual event, i can see only some bindings of the page.. How can i call a method on backing bean as a subscriber..
    Thanks
    Raghu

    Hi,
    this article has a use case for the POJO approach: http://www.oracle.com/technetwork/issue-archive/2011/11-may/o31adf-352561.html
    Another is to define a method binding in the receiving PageDef file and configure it as explained here
    http://java.net/projects/smuenchadf/pages/ADFSamplesBindings/revisions/3#SMU164
    Frank

  • How to call a method in one JSP from another JSP?

    say that I have 2 JSPs.
    JSP one has a button.
    JSP two has some method that, say, find the square root of the number passed from JPS one.
    How to - when click - the button on page one call the method on page two?
    Please note that I can not use object binding, but I want passing the actual parameter and call the method on page two.
    Please note that this is an update of a previous post on the same topic called "Object scope".
    Thank you all very much.

    No, i dont know how to call other than main methods from other classes
    And one more doubt i have i.e. Like in C can we see the execution of the program like how the code is being compiled step by step and how the value of the variable changes from step to step like(Add Watch).........

  • Problem calling a method which takes a parameter from a table

    Hi guys,
    I'm very new to jsf and hope you can help me out.
    On my page i'm generating a list, which is working fine. now i want to add some commandLinks to the list entries. on click, i want to execute a bean method, which takes a parameter from the list, generates a picture and displays it on my page.
    here's a piece of code thats already working:
    <rich:dataTable var="data" value="#{pathwayBean.orgList}">
    <rich:columnGroup>     
            <rich:column>     
               <h:outputText value="#{data.name}" />
         </rich:column>
    </rich:columnGroup>
    </rich:dataTable>now, i want to replace the outputText with a commandLink, and execute a method with {data.id} as parameter. Unfortunately, the commandLink property "action" can only call bean methods with no parameter, or is that wrong?
    Thanks in advance,
    Alex

    use actionlistener.
    here a typical code that works fine for me:
    (JSF 1.2)
    //Java
    private Integer selectedItemId=null;
         public void selectItem(ActionEvent event) {
              // Find the UIParameter component by expression
              UIParameter component = (UIParameter) event.getComponent().findComponent("itemId");
              // parse the value of the UIParameter component
              try {
                   selectedItemId = Integer.parseInt(component.getValue().toString());
                   // find itemBean here using selectedItemId
              } catch (Exception e) {
                   logger.error(e, e);
              logger.info(" +++ selectedItemId =" + selectedItemId);
         public String viewItem() {
                 //create view beans here
                 return "itemView";//return appropriate view.
    //JSF
    <h:column>
                             <h:commandLink     id="View"
                                                 action="#{itemListBean.viewItem}"
                                                       actionListener="#{itemListBean.selectItem}">
                                  <h:outputText value="select"/>
                                  <f:param id="itemId" name="itemId" value="#{itemBean.id}"/>
                             </h:commandLink>
                     </h:column>

Maybe you are looking for

  • Blue Screen when waking PC up while iPod connected

    Can anybody help here? Often, when I wake my PC from a low-power state I get a BSOD (Blue Screen of Death). The cause is usbaapl.sys. Any ideas of what I can do?

  • Best method for silent-auto DBCA : response file OR dbca scripts ?

    As far as I discovered there are 2 alternatives on creating silently a Database 1. Generate scripts from DBCA itself at end and run the batch - even if you have to make some modification to pass dynamically the DB Name or other parameters eachtime 2.

  • Jdeveloper - GUI not visible in the visual design editor

    Hello everybody! Actually I'm designing a Java Desktop Application with javax.swing. using JDeveloper 11g Release 1 (Studio Edition Version 11.1.1.3.0, Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660), Java Platform 1.6.0_18 and Oracle IDE 11.1.1

  • Finding an Adobe Script

    Hello, I've been trying to create a script in Visual Basic to find text in a document and replace it with a graphic. A tutorial I found mentioned that the Adobe site had a pre-made script called ReplaceTextWithGraphic for download on http://www.adobe

  • Three new bioinformatic coding problems now in WIKI (all require regex)

    At the bottom of this page: https://wiki.sdn.sap.com/wiki/display/EmTech/Bio-InformaticBasicsInRelationtoScriptingLanguages I've defined three new bioinformatic coding problems (Problems 3a-c). These all involve regex parsing in one way or another an