Calling valueChangeListener when button is clicked

Hello All,
I am using jdev 11.1.1.6
I have block of code:
If something is changed in inputText then updateDate is called, and my work is done
<af:inputText id="it11" value="#{pageFlowScope.Bean.input}" immediate="true" autoSubmit="true" valueChangeListener="#{pageFlowScope.Bean.updateDate}" />
    public void updateDate(ValueChangeEvent valueChangeEvent) {
        bean.setDate((Date)valueChangeEvent.getNewValue());
        //Do something
I want the similar thing to be done by command button
<af:commandButton text="click" partialSubmit="true" id="click" actionListener="#{pageFlowScope.Bean.Search}"/>  ---> after i click this button i want to call the value change event fucntion
    public void Search(ActionEvent event){
        //How to call value change event ?
<af:inputText id="it11" value="#{pageFlowScope.Bean.input}" immediate="true" autoSubmit="true" valueChangeListener="#{pageFlowScope.Bean.updateDate}" />
    public void updateDate(ValueChangeEvent valueChangeEvent) {
        bean.setDate((Date)valueChangeEvent.getNewValue());
        //Do something

Hi Anitha,
You can use the navigation option. It is the simple and better one.
If you want to call the another BSP application with in a BSP means you can use the URL.
Thanks.

Similar Messages

  • Refresh BSP Page when button is clicked

    Hello friends,
    I am developing a BSP application in which on page1, when button is clicked, new popup window(page 2) for caculating one field is displayed.
    At the same time I want to update value of the field(Calculated in page 2) to be updated in calling page(Page 1).
    Your help would be appreciated.
    Best regards,
    Dharitree

    I think it would be possible using javascript code.
    Try following javascript code:
    Write following 2 javascript functions in Page1.
    function openPopup()
    document.open(u2018page2.htmu2019, u2018page2u2019, "height=450 width=500 left=320 top=200 status=no")
    function transf(calculatedvalue)
    document.getElementById("<ID OF YOUR ELEMENT(INPUTFIELD)>").value = calculatedvale;
    In Page1, onClientClick event of the Button call openPopup() function Javascript
    Write following function in Page2.
    function getCalcValue()
        opener.transf("<%=CALCULATEDVALUE%>");
        window.close();
        return true;     
    In Page2, after the calculation, call getCalcValue Javascript function.
    Let me know if you need any further clarification on this.
    ~Salil
    Edited by: Salil Patel on Aug 8, 2008 2:51 PM

  • When buttons are clicked (in pdf), they flash instead of remaining solid

    Page-turn buttons (mouse click action) with two appearances (white, and with mouse over, grey) flash from the grey back very briefly to white when clicked. Is there some way to avoid this? It's a bit nit-picky, but the flashing makes the buttons in an swf or pdf seem clunky and less smooth.

    Hello,
    I checked your file and I was able to preview it in Browser properly.
    However as I can see, you have Hyperlinked the Labels of Accordian which is why Accordian functionality does not work. When user clicks on it, before expanding it takes the user to the hyperlinked page.
    I would suggest you to Export it as HTML on your computer on a different location and then check if it works or not.
    Regards,
    Sachin

  • Hide Textbox when buttons are clicked

    Hi all,
    Im trying to create a form for our customer service reps to make their lives easier. Which is a plus for me.
    I tried googling and playing with some Validation scripts and nothing seems to work.
    Here is what im trying to accomplish.
    There is 3 Radio buttons ( Credit, Repair, and Replacement), I need to have the ability to only have 1 of the three selected
    So if a button is clicked it would make a series of text and text boxes visible and Hide the others
    I am not quote sure how to do this.
    Found this article but im not sure if it applies. Im using Acrobat X Pro.

    So i found this thread
    http://forums.adobe.com/thread/908481?start=0&tstart=0
    var f = this.getField("c1");
    var g = this.getField("Text2");
    if (f.value==(Yes))
    g.display = display.hidden;
    else
    g.display = display.visible;
    it works but the box does not disappear when I uncheck. It mentions how to do it also in the thread but it doesnt seem to work?

  • How can I remove "click" sounds when buttons are clicked?

    I have created a Captivate project for an online tutorial.
    There is no audio in the project but Captivate has embedded a
    "click" audio which occurs when the user clicks on "Next", "Back"
    and "Menu" buttons.
    How can I remove these "click" sounds?

    Hi dyageme and welcome to our community
    Fellow Adobe Community Expert Paul Dewhurst offers up just
    such a fix.
    Click
    here to visit Paul's site.
    Cheers... Rick

  • Call XML when button pressed

    I am pulling in some XML data that shows up in columns.
    Currently it is working I think how I want it when testing, the
    data is going to the correct column. What I want to do is extend
    this so when a button is clicked the correct column data is shown.
    var myXML:XML = new XML();
    myXML.ignoreWhite = true;
    myXML.load("rels.xml");
    myXML.onLoad = function(success) {
    if (!success) {
    trace("XML FAILED TO LOAD");
    } else {
    trace("XML LOADED");
    var totalButtons:Number =
    myXML.firstChild.childNodes.length;
    for (i=0; i<myXML.firstChild.childNodes.length; i++) {
    trace(myXML.firstChild.childNodes
    .attributes.id);
    var columnData = myXML.firstChild.childNodes;
    //this pulls the values for the columns
    for (var j = 0; j<columnData.childNodes.length; j++) {
    _root["c"+j+"_txt"].htmlText = columnData.childNodes[j];
    XML is like this
    <stuff>
    <but id ="button1" >
    <column id ="1">test 1</column>
    <column id ="2">test 2</column>
    <column id ="3">test 3</column>
    </but>
    </stuff>
    I want to have a button for each node. So if I have five
    nodes, I want to create 5 buttons. I know how to do this via
    attachMovie from the library, but how do I tell it that button2 has
    been clicked? Where do I do that in my code? I want it to be when
    but2 is clicked it finds but2_mc ID in the XML and displays the
    column text for that data.
    initially I had this right before my for loop.
    for (b=1; b<=totalButtons; b++) {
    attachMovie("buttonSelection","but"+b,this.getNextHighestDepth());
    Thanks for the help.

    Thanks Dave. I feel I am almost there. the ind.b doesn't seem
    to be working. I was able to get my button to work but using _root
    instead of this. Any more pointers? Where does getMyXML(this.ind);
    this go?
    var myXML:XML = new XML();
    myXML.ignoreWhite = true;
    myXML.load("rels.xml");
    myXML.onLoad = function(success) {
    if (!success) {
    trace("XML FAILED TO LOAD");
    } else {
    trace("XML LOADED");
    var totalButtons:Number =
    myXML.firstChild.childNodes.length;
    //this determines the button
    for (i=0; i<myXML.firstChild.childNodes.length; i++) {
    trace(myXML.firstChild.childNodes
    .attributes.id);//returns but1_mc, etc
    var columnData = myXML.firstChild.childNodes;
    //this pulls the values for the columns
    for (var j = 0; j<columnData.childNodes.length; j++) {
    _root["c"+j+"_txt"].htmlText = columnData.childNodes[j];
    for (b=1; b<=totalButtons; b++) {
    trace(totalButtons);
    attachMovie("test","but"+b,this.getNextHighestDepth(),{ind:b});
    _root["but"+b]._x = 0;
    _root["but"+b]._y = yPosition;
    yPosition = yPosition+25;
    _root["but"+b].onRelease = function() {
    getMyXML(this.ind);
    trace("ind "+this.ind)
    var yPosition = 0;

  • Text blinking when buttons are clicked in Acrobat

    I have an interactive pdf that has buttons and layers. I am on a mac, and it works as it should. When an icon is clicked text changes out (shifts between layers) But my client is on a PC and is saying that when she clicks the icon, all the text on the page blinks off and then on and then changes. (even the text that is not associated with the button)
    Does anyone know what is causing this, and is there a solution?
    thank you!

    I have an interactive pdf that has buttons and layers. I am on a mac, and it works as it should. When an icon is clicked text changes out (shifts between layers) But my client is on a PC and is saying that when she clicks the icon, all the text on the page blinks off and then on and then changes. (even the text that is not associated with the button)
    Does anyone know what is causing this, and is there a solution?
    thank you!

  • Slide fades to white when button is clicked

    Hello Forum Members,
    I have a problem with Captivate 3.0 that I have not been able
    to solve or figure out.
    I have a concluding slide with 3 standard buttons on it, and
    an audio track.
    Click one button and it jumps to "slide 1" - this is correct.
    Click another button, which uses the "jump to URL" this is
    correct.
    Click the third button - the slide continues to play, and
    fades out to white.
    I never want the slide to play or fade. This button uses the
    "Execute javascript" method to open a separate browser window on
    top of the window where my Captivate app is. When I close this
    window, the Captivate app continues to play, and fades out
    (almost).
    Is there some way I can stop the slide from trying to go to
    the "next" slide? this is the last slide in the presentation.
    Thanks,
    eholz1

    the legend indicates u got a solution could you forward to me

  • Sound lags when button is clicked

    Hello!
    I'm having a problem here, I hope someone can help me out.
    I have converted a SmartShape to a button. When clicked, I want it to play an 'incorrect sound'.
    I selected 'Play Audio' on succes.
    When I click the button, it plays the sound indeed but only after a 3 seconds lag. But I would like it to play the sound immediately.
    There's nothing wrong with the audio file, it starts immediately. I gues it has something to do with Captivate only playing sounds after a small pause?
    I have another question but I will post it in new thread.
    Thank you!
    Sara

    @Lilybiri: inderdaad ;-)
    Well, the problem is solved. I still don't know what actually caused the delay. I just deleted everything and started over, and now it works. I know for sure there was no silence in the beginning of the file, as I can show you in this screenprint.
    Anyway, thank you very much for your replies!
    Sara

  • How to set  a  focus to a text field when  button is clicked

    [b]in sun stdio creator  setting  a focus is not possible is it a bug
    if  we use  java script
    <ui: button  onClick="focuss(form1:text1)"/>
    function focuss(text1){
        var text=text1;
        text.focus();
    the code is executed but  it is not  working  why[/b]

    Sorry, I didn't read carefully your question. My answer refered to client side only. You can set the focus programmatically with Body.setFocus(). In the appropriate action method or action listener call
    this.body1.setFocus("form1:textField1");
    or maybe
    this.body1.setFocus(this.textField1.getClientId());
    to avoid errors due to changing client ID or save the client ID of the TextField in a private member and call Body.setFocus() in prerender().

  • Displaying Image and even hiding after few seconds when button is clicked

    Hi All,
    How to perform an action with a JButton.When clicked image should be displayed and after span of 10 seconds it should get invisible???
    Thanks in advance.
    regards,
    Viswanadh

    kevinaworkman wrote:
    For creating an image, look at the getImage() function of the Toolkit class: [http://java.sun.com/javase/6/docs/api/java/awt/Toolkit.html#getImage(java.lang.String)|http://java.sun.com/javase/6/docs/api/java/awt/Toolkit.html#getImage(java.lang.String)]
    Or use the more modern [ImageIO |http://java.sun.com/javase/6/docs/api/javax/imageio/ImageIO.html] class, which is generally preferred over the older Toolkit methods.
    As for drawing it, I'd suggest extending a JPanel and overriding its paintComponent functionOr simply use a JLabel that displays only the image. There is no need to subclass JPanel simply for displaying an image, that is re-inventing the wheel.
    As for having the image fade away over a few seconds, use a [Swing Timer|http://java.sun.com/javase/6/docs/api/javax/swing/Timer.html] . It ensures that your rendering updates are done on the EDT.
    Try some stuff out and post back with an SSCCE if you are still having problems. We will not write the code for you.

  • Call procedure when button submited

    Hi all,
    I'm new to Oracle APEX... I've created a stored procedure which simply inserts records in a table. I have created a new page of type "Form on a procedure" with 2 btns Submit & Cancel and i want when the btn SUBMIT is pressed the values entered in field/parameters of the procedure/ to be inserted in my table. I just don't know where to put the logic...
    Any ideas?
    Thanks in advance,
    Bahchevanov.

    bahchevanov wrote:
    Hi ,
    I'm facing problems in call to my PL/SQL procedure. Here is what i typed in the box "Enter PL/SQL Page Process":
    declare
    v_res  varchar2(250);
    begin
    v_res := XX_EMPLOYEE_PKG.create_emp(P14_FIRST_NAME
    ,P14_LAST_NAME          
    ,P14_DEPARTMENT                          
    ,P14_SALARY                          
    ,P14_EMP_EG);
    end;but it throws me an error: ORA-06550: line 6, column 2: PLS-00201: identifier 'P14_LAST_NAME' must be declared ORA-06550: line 5, column 1: PL/SQL: Statement ignoredI guess i'm referring wrongly the fields in my page...
    P14_FIRST_NAME,,P14_LAST_NAME,P14_DEPARTMENT ,P14_SALARY ,P14_EMP_EG are the name of the fields in the page and each of them have to passed as a parameter of my procedure.
    Please help
    How items are referenced in various APEX contexts is covered in the documentation (in this case use bind variable syntax), all of which is available here.
    As you appear to be totally unfamiliar with basic APEX concepts, it would be an idea to complete the <a href="<i>2 Day + Application Express Developer's Guide</i> tutorial before going any further.

  • How about some easy (any) customer service like a # to call or a button to click?

    I'm having an issue and can't check out my order (over the evening - multiple tries).  That's just the immediate issue - and so done with all the others.  Previously tried the iPhone app and could never log in over a week so deleted it after reading it was a common issue (from BB support on the forums here).  Couldn't use my "BestBuy Elite" account credentials to access posting on the forums so had to create a separate forum account. :/  It takes repeated searching to find how to even express any satisfaction/dissatisfaction let alone impossible to find a way to contact anyone other than forums (well, other than physically walking in to a store).  I'd say customer service is rather lacking.
    Anyway, trying to check out my cart and it keeps kicking back with no error message, pop up, alert, whatever, to the same page and asking for all the same information again.  Yes, I've tried multiple computers and browsers/browser versions.  If it's going to be this hard to give you my money, forget it.  I'll gladly pay more somewhere else where I can actually get an order through or more importantly a quick means to customer service when I'm having an issue.  I understand technical issues but that's where customer support comes in.  Seems a lot of issues and little of support.
    Don't bother with a follow up.  I'm done.  and expect this to be deleted shortly since "one" unhappy customer can easily be considered the cost of doing business if they're getting everyone elses money.
    (yes, this can be considered a 'rage quit'.  Easy to do when so many others can offer the same products with better service and same or better prices - even higher prices are worth it if the service is there)

    Hello lzrdfrt,
    There seem to be multiple issues all wrapped into one with a side order of confusion. Online ordering should be smooth and hassle-free, and it seems like it has been everything but. When something goes wrong, you are right in that we should be there to support you 24/7 to ensure we fix what’s going wrong.  I’m sorry that you’ve been unable to reach us regarding this, and I want to provide you with the support you need.
    We have many avenues in which you may reach out to us listed on our Contact Us page. This page lists our phone number, email address, forum pages, and our Facebook page along with our Twitter handle. It also includes self-help sections that answer most questions.  While you are not looking for follow up, I do want to try and sort out the many issues you mention one by one to make sure that your concerns are addressed.
    1)      iPhone App: I’m not too sure why you ran into problems, but there was a new update to this application made available on February 12th of this year that corrected some minor issues and has some additional improvements. As it is a free app, I might suggest downloading it and give it another try.
    2)      Best Buy Elite: You are right in that you can’t use the same credentials for your My Best Buy account for your forum account. We are aware that many Best Buy accounts for different programs can make things confusing, but we are working on this. Just recently, we combined our BestBuy.com and our My Best Buy programs to work with one account.
    3)      Cart Not Working:  This one is a little harder to give a concrete answer to. Usually, the only time an item may be added to a cart is if it’s available online. If the item goes out of stock, we try and update our website as soon as possible. You may have attempted to add an item to your cart that was out of stock, but not showing its correct status as it changed during your viewing of the item.  However, without seeing it happen or knowing what item you were looking to purchase, I can’t let you know for certain. What were you attempting to purchase?
    I realize that you are looking for a place to express your dissatisfaction, and this is one of the many great places to do this. We do try our best to address all concerns that come our way, as we realize there are areas in need of improvement. Thank you for letting us know of your experiences as your feedback is vital for us to know if we are heading in the right direction.
    If you have any questions or further concerns, please don’t hesitate to ask.
    Alex|Social Media Specialist | Best Buy® Corporate
     Private Message

  • When-button-pressed trigger save two records ?

    Hi all,
    I'm very new to Oracle form. I intend to make a very simple form where will allow user to enter and save record when finished.
    There I have build up the form and one push button where will called the when-button-presses when the user click.
    I have write the query as below :-
    begin
         if :device is null then
              message('Device no is null!!');
              raise form_trigger_failure;
         else
              insert into aic_std_cost_sell_price values ( :device, :asm_price, :tst_price);
              commit;
         end if;
    end;          
    however when save, two record had been inserted? and why ?
    rgds
    Lim

    When you create a block based on a database table, Forms builds and executes a SQL insert statement for you when you issue a commit statement. Therefore, yours is running, then Forms builds and executes one.
    Remove your insert statement. You don't need it.
    And change the COMMIT; to COMMIT_FORM; They do the same thing, but using commit_form will help you remember that lots of things are going on behind the scenes when you use it.

  • Calling from java buttons in an applet

    ok i made this program here and now i'am tryin to call certain certain classes from each button. i can't figure out how to do that.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class JDemoGridLayout extends JApplet
    JLabel greeting = new JLabel("SAMPLE", JLabel.CENTER);
    Font HeadlineFont = new Font("Helvetica",Font.BOLD, 24);
    private JButton b1 = new JButton ("Button 1");
    private JButton b2 = new JButton ("Button 2");
    private JButton b3 = new JButton ("Button 3");
    private JButton b4 = new JButton ("Button 4");
    private GridLayout layout = new GridLayout(6,6,6,6);
    JLabel personalGreeting = new JLabel("");
    Container con = getContentPane();
    public void init()
      greeting.setFont(HeadlineFont);
    personalGreeting.setFont(HeadlineFont);
    con.add(greeting);
    con.setLayout(new FlowLayout());
    setLayout(layout);
    add(b1);
    add(b2);
    add(b3);
    add(b4);
    }Edited by: javastudent101 on Mar 4, 2009 7:12 AM

    javastudent101 wrote:
    ok i made this program here and now i'am tryin to call certain certain classes from each button. i can't figure out how to do that.You don't call classes from buttons. What you can do is add a java.awt.event.ActionListener to each button. This ActionListener's actionPerformed() method will get called whenever the button is clicked. An example:
    MyActionListener listener = new MyActionListener();
    JButton button = new JButton("Do My Taxes");
    button.setActionCommand("DoTaxes");
    button.addActionListener(listener);
    JButton button2 = new JButton("Take a Shower");
    button2.setActionCommand("TakeShower");
    button2.addActionListener(listener);
    private class MyActionListener implements ActionListener {
       public void actionPerformed(ActionEvent e) {
          String command = e.getActionCommand();
          if ("DoTaxes".equals(command)) {
             // Whatever processing is necessary to do taxes
          else if ("TakeShower".equals(command)) {
             // Whatever it takes to take a shower.
    }See [How to use Buttons|http://java.sun.com/docs/books/tutorial/uiswing/components/button.html] for more information.
    Alternatively, you could use an Action specific to each JButton. Once you understand ActionListeners, it's pretty easy to understand Actions.

Maybe you are looking for

  • EPS Preview format in AI CS4

    I was just told by Filemaker tech support that, as of CS4, Illustrator saves the Mac format EPS files with a TIFF preview (same as PC) rather than the PICT format preview that has been around since Illustrator 1.0. True or False? Thanks! Steve Willis

  • LSMW procedure for PP master data

    Hi i have some doubts regarding LSMW .... can we upload  PP master data BOM,Resource,MasterRecipe and Production versios through LSMW. could u pls guide me in this issue. Regards hgvd

  • MAS Scripts Editor error

    Hello friends, i open the tile in edit mode and when i try to add code in the scripts editor for a bound/unbound control, i get an error message 'script editor is not in edit mode..cant replace'. i would really appreciate if you could please let me k

  • Deleting a "ZWave" Device

    One of my window/door sensors was damaged when I recieved it.  When I set it up, I was unable to sync it to the gateway.  SInce it was unable to connect, it was listed as a zwave device.  I received a replacement sensor and was able to synced it with

  • Album Problems with new iPod

    Some of the songs are in the wrong order on my iPod. That is, the album is all out of order. I have checked in iTunes, and everything is where it should be. Also, if I have one album by an artist, and some other downloaded tracks as well, whenever I