EL in the "action" property of the button

I am using ADFBC with JDeveloper 10.1.3.3
I have a scenario where by pressing on a button on a page, I want to be able to return to the originating page, and there are multiple originating pages.
I can achieve this by putting the logic in the "action method" of the backing bean. It just seems to me to be lots of overheads with creating backing beans just for this purpose. I am wondering if there are easier ways. What I would like to be able to do is to put the logic as an EL in the "action" property of the button itself, but apparently, this is not allowed. Please advise.

User,
The backing bean is absolutely the correct place for this type of logic. Backing beans are part of the "controller" piece of the MVC (model-view-controller) architecture. The controller is responsible for flow-of-control; hence the backing bean is a proper place for it.
What you are trying to do is to essentially put the controller logic into the view layer - much like the way people used to create JSP's with code interspersed with markup.
I would strongly recommend you do this type of logic/code in the backing bean.
Regards,
john

Similar Messages

  • How to assign a dynamic value to the value property of a button ?

    Hi Folks,
    I have a need, can i know how to assign a dynamic value to the value property of a button. Scenario is like follows...
    This is a struts based web application
    1. I have a file which consists of login user details (user name and his previlages) for a web application.
    2. I got those user details, into a List.
    3. When a user logged into the web app, in the home page there are few buttons. The type and number of buttons shown depends on the type of user/ user. (Buttons have different combination and the number of buttons available are not constant, they will vary from user to user).
    4. for each button, there will be a different action. I can pass the value of a button to an action class, but here button must have a dynamic value.
    Here is my test code:
    <%
    if (List != null)
    for (int i = 0; i <List.length; i++)
    %>
    <html:submit property="rduname" value= "<%=List%>" onclick="return submitRdu('<%=List[i] %>');"/>
    <%
    %>
    But my problem is how to assign a dynamic value to the value property of the button ( i know 'value= "<%=List[i]%>" ' will not work, just wanted show you guys).
    Thanks in advance,
    UV
    Edited by: UV_Dev on Oct 9, 2008 2:15 PM

    Let me try i know am not good at JSP but do we need double quotes here
    value= <%=List%>i think JSTL should help you about the dynamic thing                                                                                                                                                                                                                                                                                                                       

  • Have to click the button twice to invoke its action!!!!

    I am using netbeans 5.5 visual web pack and tomcat server for my JSF project.
    In one of my pages i have to click the submit button twice to invoke its action.
    I searched forum for the answer but could not find any that could solve my problem.
    Whenever i first click the button from the lifecycle listener class i used i found the application goes through following phases:
    BeforePhase: RESTORE_VIEW 1
    AfterPhase: RESTORE_VIEW 1
    BeforePhase: APPLY_REQUEST_VALUES 2
    com.sun.rave.web.ui.renderer.UploadRenderer::decode()
    com.sun.rave.web.ui.renderer.UploadRenderer::     Looking for id form1:citizenshipFileUPloadField_com.sun.rave.web.ui.upload
    com.sun.rave.web.ui.renderer.UploadRenderer::     Found id form1:citizenshipFileUPloadField_com.sun.rave.web.ui.upload
    AfterPhase: APPLY_REQUEST_VALUES 2
    BeforePhase: RENDER_RESPONSE 6
    AfterPhase: RENDER_RESPONSE 6There is no INVOKE_APPLICATION phase in first click. In second click, the status i got is:
    BeforePhase: RESTORE_VIEW 1
    AfterPhase: RESTORE_VIEW 1
    BeforePhase: APPLY_REQUEST_VALUES 2
    com.sun.rave.web.ui.renderer.UploadRenderer::decode()
    com.sun.rave.web.ui.renderer.UploadRenderer::     Looking for id form1:citizenshipFileUPloadField_com.sun.rave.web.ui.upload
    com.sun.rave.web.ui.renderer.UploadRenderer::     Found id form1:citizenshipFileUPloadField_com.sun.rave.web.ui.upload
    AfterPhase: APPLY_REQUEST_VALUES 2
    BeforePhase: PROCESS_VALIDATIONS 3
    AfterPhase: PROCESS_VALIDATIONS 3
    BeforePhase: UPDATE_MODEL_VALUES 4
    AfterPhase: UPDATE_MODEL_VALUES 4
    BeforePhase: INVOKE_APPLICATION 5
    AfterPhase: INVOKE_APPLICATION 5
    BeforePhase: RENDER_RESPONSE 6
    AfterPhase: RENDER_RESPONSE 6Now the INVOKE_APPLICATION phase is invoked.
    I have <h:messages /> tag but no errors could be seen.
    What can be the reasons behind this problem

    Well the code that is producing the problem is quite big. Anyway i will post it, hoope you can get something out of it.
    The jsp page is:
    <ui:body binding="#{ReceptionPage$CompanyPersonPage.body1}" id="body1" style="-rave-layout: grid">
                        <div align="center">
                            <ui:staticText binding="#{ReceptionPage$CompanyPersonPage.staticText1}" id="staticText1"
                                style="font-family: Georgia,'Times New Roman',times,serif; font-size: 18px; font-weight: bold" text="Company Person Page"/>
                        </div>
                        <div align="left" style="color:red;font-weight:bold;layout:table;">
                            <h:messages id="errMsgs"/>
                        </div>
                        <ui:form binding="#{ReceptionPage$CompanyPersonPage.form1}" id="form1">
                            <ul>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label1}" id="label1" style="" text="Citizenship Number:"/>
                                    <br/>
                                    <ui:textField binding="#{ReceptionPage$CompanyPersonPage.textField1}" id="textField1" required="true" style="" text="#{CompanyPersonBean.citizenshipNumber}"/>
                                </li>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label2}" id="label2" style="" text="Name:"/>
                                    <br/>
                                    <ui:textField binding="#{ReceptionPage$CompanyPersonPage.textField2}" id="textField2" required="true" style="" text="#{CompanyPersonBean.name}"/>
                                </li>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label3}" id="label3" style="" text="Country:"/>
                                    <br/>
                                    <ui:textField binding="#{ReceptionPage$CompanyPersonPage.textField3}" id="textField3" required="true" style="" text="#{CompanyPersonBean.country}"/>
                                </li>
                                <li>
                                    <fieldset style="width:250px;float:left;">
                                        <legend>Temporary Address</legend>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.tempDistrictLabel}" id="tempDistrictLabel" text="District:"/>
                                        <br/>
                                        <ui:dropDown binding="#{ReceptionPage$CompanyPersonPage.tempDistrictDropDown}"
                                            converter="#{ReceptionPage$CompanyPersonPage.integerConverter1}" id="tempDistrictDropDown" immediate="true"
                                            items="#{ReceptionPage$CompanyPersonPage.tempDistrictDataProvider.options['DISTRICT_ID,DISTRICT_NEPALI_NAME']}"
                                            onChange="common_timeoutSubmitForm(this.form, 'ul:li:fieldset:tempDistrictDropDown');" valueChangeListener="#{ReceptionPage$CompanyPersonPage.tempDistrictDropDown_processValueChange}"/>
                                        <br/>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.tempAreaLabel}" id="tempAreaLabel" text="Area(VDC/Municipality):"/>
                                        <br/>
                                        <ui:dropDown binding="#{ReceptionPage$CompanyPersonPage.tempAreaDropDown}"
                                            converter="#{ReceptionPage$CompanyPersonPage.integerConverter3}" id="tempAreaDropDown" items="#{ReceptionPage$CompanyPersonPage.tempAreaDataProvider.options['AREA_ID,AREA_NEPALI_NAME']}"/>
                                        <br/>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.tempWardNoLabel}" id="tempWardNoLabel" text="Ward No:"/>
                                        <br/>
                                        <ui:textField binding="#{ReceptionPage$CompanyPersonPage.tempWardNoTextField}" id="tempWardNoTextField" required="true"/>
                                        <br/>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.tempHouseNoLabel}" id="tempHouseNoLabel" text="House No:"/>
                                        <br/>
                                        <ui:textField binding="#{ReceptionPage$CompanyPersonPage.tempHouseNoTextField}" id="tempHouseNoTextField"/>
                                    </fieldset>
                                    <fieldset style="width:250px;">
                                        <legend>
                                        Permanent Address</legend>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.permDistrictLabel}" id="permDistrictLabel" text="District:"/>
                                        <br/>
                                        <ui:dropDown binding="#{ReceptionPage$CompanyPersonPage.permDistrictDropDown}"
                                            converter="#{ReceptionPage$CompanyPersonPage.integerConverter2}" id="permDistrictDropDown" immediate="true"
                                            items="#{ReceptionPage$CompanyPersonPage.permDistrictDataProvider.options['DISTRICT_ID,DISTRICT_NEPALI_NAME']}"
                                            onChange="common_timeoutSubmitForm(this.form, 'ul:li:fieldset:permDistrictDropDown');" valueChangeListener="#{ReceptionPage$CompanyPersonPage.permDistrictDropDown_processValueChange}"/>
                                        <br/>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.permAreaLabel}" id="permAreaLabel" text="Area(VDC/Municipality):"/>
                                        <br/>
                                        <ui:dropDown binding="#{ReceptionPage$CompanyPersonPage.permAreaDropDown}"
                                            converter="#{ReceptionPage$CompanyPersonPage.integerConverter4}" id="permAreaDropDown" items="#{ReceptionPage$CompanyPersonPage.permAreaDataProvider.options['AREA_ID,AREA_NEPALI_NAME']}"/>
                                        <br/>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.permWardNoLabel}" id="permWardNoLabel" text="Ward No:"/>
                                        <br/>
                                        <ui:textField binding="#{ReceptionPage$CompanyPersonPage.permWardNoTextField}" id="permWardNoTextField" required="true"/>
                                        <br/>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.permHouseNoLabel}" id="permHouseNoLabel" text="House No:"/>
                                        <br/>
                                        <ui:textField binding="#{ReceptionPage$CompanyPersonPage.permHouseNoTextField}" id="permHouseNoTextField"/>
                                    </fieldset>
                                </li>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label4}" id="label4" style="" text="Phone Number:"/>
                                    <br/>
                                    <ui:textField binding="#{ReceptionPage$CompanyPersonPage.textField4}" id="textField4" style="" text="#{CompanyPersonBean.phoneNumber}"/>
                                </li>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label5}" id="label5" style="" text="Mobile:"/>
                                    <br/>
                                    <ui:textField binding="#{ReceptionPage$CompanyPersonPage.textField5}" id="textField5" style="" text="#{CompanyPersonBean.mobileNumber}"/>
                                </li>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label6}" id="label6" style="" text="Email:"/>
                                    <br/>
                                    <ui:textField binding="#{ReceptionPage$CompanyPersonPage.textField6}" id="textField6" style=""
                                        text="#{CompanyPersonBean.emailAddress}" validator="#{ReceptionPage$CompanyPersonPage.textField6_validate}"/>
                                </li>
                                <li>
                                    <b>Person Company Relation:</b>
                                    <br/>
                                    <ui:checkbox binding="#{ReceptionPage$CompanyPersonPage.checkbox1}" id="checkbox1" label="Is Promoter" style=""/>
                                    <br/>
                                    <ui:checkbox binding="#{ReceptionPage$CompanyPersonPage.checkbox2}" id="checkbox2" label="Is Board Oof Director" style=""/>
                                    <br/>
                                    <ui:checkbox binding="#{ReceptionPage$CompanyPersonPage.checkbox3}" id="checkbox3" label="Is Shareholder" style=""/>
                                    <br/>
                                    <br/>
                                </li>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label7}" id="label7" style="" text="Citizenship Certificate File"/>
                                    <br/>
                                    <ui:upload binding="#{ReceptionPage$CompanyPersonPage.citizenshipFileUPloadField}"
                                        columns="#{CompanyPersonBean.citizenshipFilePath}" id="citizenshipFileUPloadField" required="true" style=""/>
                                </li>
                                <li>
                                    <ui:button action="#{ReceptionPage$CompanyPersonPage.button1_action}" binding="#{ReceptionPage$CompanyPersonPage.button1}"
                                        id="button1" style="height: 23px"
                                        text="Save"/>
                                    ||
                                    <ui:button
                                        binding="#{ReceptionPage$CompanyPersonPage.button2}" id="button2" onClick="window.close()" style="height: 24px" text="Close"/>
                                </li>
                            </ul>
                        </ui:form>
                    </ui:body>
                        The corresponding bean is:
    public class CompanyPerson {
        private String citizenshipNumber;
        private String name;
        private String country;
        private String phoneNumber;
        private String mobileNumber;
        private String emailAddress;
        private String citizenshipFilePath;
        private String isShareHolder;
        private String isBoardOfDirector;
        private String isPromoter;
        public CompanyPerson() {
        public String getCitizenshipNumber() {
            return citizenshipNumber;
        public void setCitizenshipNumber(String citizenshipNumber) {
            this.citizenshipNumber = citizenshipNumber;
        public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
        public String getCountry() {
            return country;
        public void setCountry(String country) {
            this.country = country;
        public String getPhoneNumber() {
            return phoneNumber;
        public void setPhoneNumber(String phoneNumber) {
            this.phoneNumber = phoneNumber;
        public String getMobileNumber() {
            return mobileNumber;
        public void setMobileNumber(String mobileNumber) {
            this.mobileNumber = mobileNumber;
        public String getEmailAddress() {
            return emailAddress;
        public void setEmailAddress(String emailAddress) {
            this.emailAddress = emailAddress;
        public int getTemporaryAddressId() {
            return temporaryAddressId;
        public void setTemporaryAddressId(int temporaryAddressId) {
            this.temporaryAddressId = temporaryAddressId;
        public int getPermanentAddressId() {
            return permanentAddressId;
        public void setPermanentAddressId(int permanentAddressId) {
            this.permanentAddressId = permanentAddressId;
        public String getCitizenshipFilePath() {
            return citizenshipFilePath;
        public void setCitizenshipFilePath(String citizenshipFilePath) {
            this.citizenshipFilePath = citizenshipFilePath;
        public String getIsShareHolder() {
            return isShareHolder;
        public void setIsShareHolder(String isShareHolder) {
            this.isShareHolder = isShareHolder;
        public String getIsBoardOfDirector() {
            return isBoardOfDirector;
        public void setIsBoardOfDirector(String isBoardOfDirector) {
            this.isBoardOfDirector = isBoardOfDirector;
        public String getIsPromoter() {
            return isPromoter;
        public void setIsPromoter(String isPromoter) {
            this.isPromoter = isPromoter;
    }No all the properties of the bean has been bind to components.
    I also have value change listener methods for two drop down lists whose immediate property is set to true to bypass the validation. If i change the dropdownlist selection then its value change listener method is successfully invoked, then after if i click the submit button, then it will works.

  • How do I have the learner perform a conditional action based on a button selection?

    The learner needs to select a checkbox on the screen of a performance exercise.  I've put the widget in for the checkbox and it works fine.  After the select the checkbox, they need to select OK on the screen to move them onto the next screen.  However, I don't want the learner to just select OK without selecting the checkbox in order to replicate the sequence correctly. 
    I have a slide which shows the message  which tells them as to what they did wrong when they select OK without checking the box, but when I tie that to the correct response, it will go there whether they select the checkbox or not.
    I've tried adding multiple actions to the button, which doesn't work, becuase the OK button has to be tied to the learner conditionally selecting the checkbox to move on to the correct slide.  If I use multiple actions, and the first action is to SHOW  the slide with the incorrect message, if they correctly check the box and then hit OK, it will first SHOW them the incorrect slide.
    I think what I need is a variable and then add an advanced action with a conditional statement.  However, I don't really know how to do that.  Here's the variable I created, but I don't know what value I should assign.  Here's the screen shot of the variable and conditional statement.  Could someone tell me how to do the variable and the conditional statement so that the learner when selecting OK WITHOUT selecting the checkbox first will be redirected the the error slide and if they select the checkbox FIRST, and then OK, they move on to the next screen?  Thanks,

    Thanks, you definitely got me started on the right track on variables and advanced action statements.  The screen shots helped.
    Here's how the actual fix went to make sure the OK button on the screen had a conditional statement attached to it, with
    an advanced action:
    I created parameters for the widget to link to the variable:
    I created a variable:
    Then I created an advanced action conditional statement for that variable which enabled the button to advance to the next slide when the clickbox was checked:
    Then where I finally realized my final mistake was not setting the button properties to execute advanced action:

  • How do I use the button states in an action script?

    In my Captivate 8 project I use smart shape as buttons. The buttons have different images presented dependent on the state of the button. I have also created a simple action script that shows what happens when the button is pressed. When the button has been pressed the normal state of the button appear. I, however, want the down state of the button to remain visible util the user presses another button. How do I accomplish this? Is there variables for the buttons different state or how can I create that?
    BR,
    Madeleine

    When you talk about 'actionscript' do you mean advanced or shared actions? You cannot write actionscript within Captivate, only Javascript. If you use advanced/shared actions they'll be converted on runtime to either Actionscript (for SWF output) or Javascript (for HTML5 output).
    The states in shape buttons are the normal way buttons behave (not only in Flash). If you are indeed using shared/advanced actions, and you want the down state to remain until the next shape button is clicked, you'll have to go the way described by iFlashAppsToo. Create shapes that have the look of the down state, make them initially invisible and group all those shapes on one slide. Add two statements to the shared/advanced action (please do use shared actions, you'll save time):
    Hide Group   so that eventual down mimicked states on previously clicked buttons disappear
    Show Im_Downx    to show the down image for that button

  • I am trying to create a button in flash that will display 4 separate images at the same time when clicked.  I can't get the images to stay on when I take the mouse of the button.  I need the actions script code to make this happen.

    I am trying to create a button in flash that will allow the user to click on the button and 4 separate images show up at the same time.  I can get the images to appear when I click the button but they will not stay on the screen.  I need to know what code I use to make the images stay once the button is clicked, then I need to know exactly where I place that code.  It does not appear to be possible to add the action code to the buttons layer since each time I add a new layer I just get another "up" "over" "down" and "hit" line.
    Thank you in advance
    AP

    It is not clear how you are trying to realize this from your description.  If you are trying to create this within a button symbol it will not work.  Explain your approach and if there is code involved, show what you have so far.

  • HT1430 my very new iphone5s will not turn on its as if the button no longer works is there any additonal swiping actions or hidden buttons i may have triggered accidently it is barely 2 weeks old and has no obvious signs of wear............not impressed A

    my very new iphone5s will not turn on its as if the button no longer works is there any additonal swiping actions or hidden buttons i may have triggered accidently it is barely 2 weeks old and has no obvious signs of wear............not impressed APPLE

    im hoping that by holding both the power and circle buttons it will spring back to life ..........somtimes apple you are too clever with your secert hidden butttons switches

  • Uses for the Action Property with SQL and Oracle DB Adapters

    This thread is a complement to the Wiki Article
    BizTalk: Streamlining WCF SQL and Oracle Messaging-Only and Other Patterns
    The question.  In what circumstances is explicitly setting the Action value with the WCF SQL and Oracle DB bindings useful or beneficial. 
    A complimentary question.  Is it even possible to set the Action value to anything other than exactly what is required by the Message.
    I ask because of three very specific behaviors of the bindings themselves:
    The binding enforces a match between the Action and the Message, therefore...
    There is a one-to-one relationship between the Message and Action, but...
    The binding is able to correctly derive and perform the requested operation with the unspecific CompositeOperation.
    For clarity, I understand how to set the Action. I. understand what the Action represents in the SOAP scheme. I understand how Action can be used as an abstraction for SOAP operations.
    Thoughts?

    Do you have any good suggestion to learn how to use action property with SQL and Oracle DB adapters?  I learn a lot from your replies for years in BizTalk forum. :)

  • Put the Button Script in the Actions Frame

    When I click each button I want it to advance the play head
    to the Frame Lable.
    This code works but I need to change the state of the button.
    If I change the button State to Graphic in the Key Frame
    Lable it makes the code not work.
    I would like to have all the code the the main timeline
    Actions Layer.
    ie: When Button1 is pressed it goes to "F1" and is now in the
    Down State.
    When Button 2 is press it goes to "F2" and is in the Down
    State and Button 1 goes back to its' Up State.
    Here's the code:
    stop();
    Button1.onRelease = function() {
    gotoAndStop("F1");
    trace ("Frame 1");
    Button2.onRelease = function() {
    gotoAndStop("F2");
    trace ("Frame 2");
    Button3.onRelease = function() {
    gotoAndStop("F3");
    trace ("Frame 3");

    OK, I put this code in the main timeline:
    stop();
    //root code:
    function resetButtons() {
    Button1.gotoAndStop(F1);
    Button2.gotoAndStop(F2);
    Button3.gotoAndStop(F3);
    //and then I put this code on each button
    //code to place on each button
    on (release){
    _root.resetButtons();
    this.gotoAndStop(3); //go to pressed state
    on (rollOver){
    if (this._currentframe <> 3)
    this.gotoAndStop(2); //go to roll over state.
    on (rollOut, releaseOutside){
    if (this._currentframe <> 3)
    this.gotoAndStop(1); // reset button to it's original state
    // Nothing happens???
    What am I missing here?

  • Having problems us ng my ipod 7g Nike Fitness.  When running when I press the button between the volume buttons, I get a different action almost every time.

    I am having problems using my ipod 7g with Nike Fitness.  When running when I press the button between the volume buttons, I get a different action almost every time. And usually I end up either turrning volume up very high or ending the workout. I need to be able to pause workout, and get spoken feedback regarding time, distance, and pace, that's all. I'm using a Griffin brand armband, that covers all of the buttons.  I've read the online manual.  no help.  I'm just about ready to return it and go back to my 5th gen with its smaller song capacity and no blurry.  Any help or suggestions very welcome.

    Jeff:
    I have had both good and bad experiences with Acronis True Image. I got the recent copy of ATI via a Newegg.com bundle. I haven't tried it yet on any Windows 7 editing systems. ATI installs some services that I would rather not have running in the background.
    What made you change from ATI to ShadowProtect Desktop Edition?
    Are you running Windows 7?
    What do you see as advantages to running ShadowProtect Desktop Edition as opposed to Acronis True Image?
    Thanks

  • How to programmatically mimic the user action of selecting a button ?

    I am using JAVA Swings to build a desktop application. The application has many buttons, lists and text boxes etc. I have created actionPerformed methods that monitor the source for user action. I am able to execute the code whenever an action is performed by user manually.
    I also require to save the choices, and texts entered by a user during his active run with the application. This is to avoid user to re-enter all the information once again.
    The problem is to programmatically select those buttons and lists which were saved during users earlier session. How can I perform the action event of selecting a radio button from my java code.

    Kiran,
    Your approach is missing the whole idea of Model-View-Controller. I suspect that somewhere you are saving the data of the user's choices. For example, if you have a checkbox, I suspect you have a java bean somewhere containing a boolean value that is set to true when the checkbox is selected, and false when the checkbox is unselected. This process is mediated by a controller, which has a references to the model (the data) and the view (the UI). The controller sets up as a listener to the actions within the UI, and, when notified, sets the appropriate properties of the data, usually into one or more java beans.
    So, on the reverse side of things, the data is read into the java bean(s), and the controller uses that data to set the state of the UI elements. So, your controller can do something like this:
        uiThing.initUI(yourBean);And in the initUI method you have:
        public void initUI(DataBean data) {
             cbxBlue.setSelected(data.isBlue());
             txtLastName.setText(data.getLastName());
             // etc...
        }If you take that general approach, you'll find you don't need to simulate user actions.
    In the few cases within the UI where you think you do, you really don't. An ActionListener is just a receiver of when something like a button is pressed. If your program needs to do the same thing as when the button is clicked, create a method to perform the processing, and invoke it directly, rather than trying to figure out how to programmatically press a button.
         public void actionPerformed(ActionEvent e) {
              if (e.getActionCommand().equals("BlueButton"))
                  this.setBlue();
              //... etc.
         private void setBlue() {
             // whatever
         // somewhere else in the code
         private void someProcess() {
              // other work
              // other work
              if (someCondition) this.setBlue();  // rather than forcing an action event
              // other work
              // other work
         }

  • HT202159 Tried restarting download from the "Purchases" tab but the app comes out with "an error ocurred " message and I the button next to it is grey without any text or action. Please help, cannot dowload bad piggies game

    Tried restarting download from the "Purchases" tab but the app comes out with "an error ocurred " message and I the button next to it is grey without any text or action. Please help, cannot dowload bad piggies game

    Hi aaronvilla,
    Sorry to hear you are having issues with your iTunes Store purchase.   The following information should help you with this:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    To report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase, follow these steps:
    Find the email receipt for your purchase.
    Click Report a Problem under the app that is having the issue.
    When prompted, enter the Apple ID and password you used to purchase the item, then click Report a Problem.
    Click Report a Problem next to the item you are having an issue with.
    From the Choose Problem dropdown menu, choose the appropriate issue.
    Follow the onscreen instructions and—if prompted—type a description of the problem into the text field.
    Click Submit to have your issue reviewed.
    Hope this helps ....
    - Judy

  • Using the same action sequence with multiple buttons and exclusive conditional interactions

    Hi all,
    first of all, pardon me for my english and if I post questions already answered, but I can't find anything about that.
    I'm new to flash and I decided to use Flash Catalyst to speed up the building process of a multimedia presentation for university.
    I have a menu with 10 buttons that change a text box on rollover (I converted it to a button label) and I need to reset the name of the current page on RollOut. Since the action sequence for it is the same of every button on one page, is there a faster way to apply the sequence than repeating it for every button? (I had to do it 10x10=100 times... and what if I made some mistake? )
    Another question is I want to disable the interaction of the menu button of the current page, but conditional interaction let me choose only an "if in state" condition an not a "if not in state". How can I do this? should I simply disable the button on that page?
    Thanks a lot for the help!
    Cheers from Italy

    I answered to myself by grouping buttons and disabling the button in his state.
    Thanks anyway!

  • I have a course in Captivate 6, when I try to publish in captivate 8 the actions of the buttons disappear

    I have a course in Captivate 6, when I try to publish in captivate 8 the actions of the buttons disappear
    i feel very concerned, because the work it's hard

    I was able to resolve this without support.  I identified the slide where the course stopped playing and the ppt from which the slide background was located.  Even though the ppt deck in the Captivate library showed that the ppt was to date, I updated the ppt anyway and that resolved the issue.
    The course would stop playing at the same slide, and didn't allow me to advance to any slides beyond that slide using the TOC, I simply got a blank gray screen, refreshing the course in the browser caused the course to start over from the beginning and it would stop at the same slide.  Refreshing the ppt allows the course to play through and the TOC now allows navigation.

  • Not given complete list of multi-state objects in the buttons & actions list

    I have a 2 buttons on a single page in my article. I have 2 multistate objects (A and B) on the page. Button one, triggers MSO A to its 2nd state, and MSO B to its 2nd state. The 2nd state of MSO A also contains button 2. No problems so far. The Problem is when i try to use button 2 to reverse both MSO's back to their first states. In the button panel, after specifying the 'on release' action for button 2, and the action 'go to state" the dropdown box for "objects" is an incomplete list of all MSO objects on the page - it only includes MSO A? why? It means MSO B is stuck at its 2nd state.
    thanks

    FWIW, this is an InDesign limitation, not a DPS limitation so don’t hold your breath waiting.
    Bob

Maybe you are looking for