Cannot disable a button 2 times using an EL expression

Using a EL expression for the disabled attribute on a button does not work the second time... It will not disable again.
Below is a simple example.... The EL updates the text of the button but does not enable/disable the button.
Any help would be greatly appreciated!
JSPX Code:
<af:showDetailHeader text="Enable/Disable Test" disclosed="true">
<af:panelGroupLayout>
<af:panelFormLayout labelWidth="150" fieldWidth="300" rows="1" maxColumns="1">
<af:commandButton text="Toggle isButtonEnabled - value = #{ToggleTestBk.buttonEnabled}" disabled="#{ToggleTestBk.buttonEnabled}" partialTriggers="toggleBtn">
</af:commandButton>
<af:commandButton id="toggleBtn" text="Toggle Button" actionListener="#{ToggleTestBk.toggleButtonAL}" partialSubmit="true">
</af:commandButton>
</af:panelFormLayout>
</af:panelGroupLayout>
</af:showDetailHeader>
Backing Bean Code:
private boolean buttonEnabled = true;
public void toggleButtonAL(ActionEvent event) {
setButtonEnabled(!buttonEnabled);
public void setButtonEnabled(boolean _buttonEnabled) {
this.buttonEnabled = _buttonEnabled;
public boolean isButtonEnabled() {
return buttonEnabled;
Thanks!
Matt
Edited by: Matt Cannon IBI on Apr 3, 2010 4:28 PM

Hi,
try two things:
1- check your backingbean scope if it is request scope try to change it. (try make it session scope).
if it is not working ....
2- try your backingbean like this:
private boolean buttonEnabled = true;
public void toggleButtonAL(ActionEvent event) {
isButtonEnabled();
public void setButtonEnabled(boolean _buttonEnabled) {
this.buttonEnabled = _buttonEnabled;
public boolean isButtonEnabled() {
setButtonEnabled(!buttonEnabled);
return buttonEnabled;
}Sameh Nassar

Similar Messages

  • Cannot disable internet connection and use wlan co...

    hi i have download skype and i cant use it with my wlan connection because its already connected with internet and i might get charge for using this service could you please tell me how to disable internet and use wlan connection when i am in home
    my handset details are
     its made in hungary  software version is v 11.0.0.029 software date 11-08-10 rm612
    and there is no update availabe for my handset at the moment

    It sounds like you are using an unsupported App like "Jailbreak" which technically voids the warranty on your iPhone. Your call on that.
    If so, the app creates an "ad hoc" wireless network which the Airport Express cannot join or participate in. So, you cannot use both the AirPort Express and the "modem" function of your iPhone at the same time.
    You should be able to turn the app off and log off the internet, and then setup another separate wireless network to run AirTunes, or AirPlay. But, you'll have to "switch" wireless networks to be able to do this and the network will of course not have access to the Internet.
    Message was edited by: Bob Timmons

  • Disable Shutdown Button while using Terminal Services

    When I remote desktop into the server remotely, the shutdown button shut's down the server.  Granted I have the reason for shutdown turned on, so some less skillful admin's have to fill in the reason and click okay before they really shutdown the server... but
    Is it possible to replace the shutdown button with a Log Off button for remote sessions or disable it all together?
    Seems like it could be a huge problem if I (or someone logged in as Admin) shutdown the server that's 4 hours away.

    Absolutely, we have had this since 2000 (though we do tend to change the name in each new policy editor) :-).
    In 2008 you need to use group policy and set the user config -> admin templates -> start menu and taskbar -> remove and prevent access to the shutdown, restart, sleep and hibernate comands = enabled
    You probably want to apply this to a machine OU with loopback policy so it only applies to terminal severs.
    You may also want to filter it to apply only to the remote desktop users group (this way it only applies when you logged in remotely).
    if you still need to shutdwon the remote machine when remotely connected then use ctrl-alt-end to bring up the remote SAS and the shutdown button is there in the bottom right hand corner.
    Alex

  • Prevent Agents from disabling Headset Button hen using Auto Answer With Headset

    Help!!!
    When you enable "Auto Answer with Headset" an agent can still press the Headset button and break that function.  Is there a way to keep the agent from being able to disable the Headset button on the phone (Cisco IP Phone 7962g) while maintaining the ability to force Auto Answer with Headset??
    Thanks for any ideas!

    Hi,
    It sounds more like training or organizational issue. If agents do it accidentally, usually this behavior disappeas in a couple of days (if agents were using other phones). And if they do it on-purpose, then supervisors should take care for this issue.
    Technically this issue may be resolved by placing some kind of plastic cap over the headset button, but then you should have a mechanism to activate a headset button, if it was deactivated (for excample, afther the phone reboots).
    Alternatively you may use longer cord and place the phone out of reach (not exactly "far-far away", but at least out of the hand reach. Plus, depending on the CallCenter software you use, agent may never need touch a phone, in most cases all interaction happens on the PC.
    Good luck,
    Mike / CCNP, CCVP, CCSP, CCDP, MCSE, CCIE Voice (written), etc.
    Headset Adapters for Cisco IP Phones

  • Java.sql.SQLException: Cannot disable AUTO_COMMIT

    Hi,
    I am getting "java.sql.SQLException: Cannot disable AUTO_COMMIT" exception when using mySQL
    with Weblogic 5.1 EJB (through org.gjt.mm.mysql.Driver JDBC driver).
    Can anybody help!!!!!!
    Thank you, Eric
    [email protected]

    eric wrote:
    >
    Hi,
    I am getting "java.sql.SQLException: Cannot disable AUTO_COMMIT" exception when using mySQL
    with Weblogic 5.1 EJB (through org.gjt.mm.mysql.Driver JDBC driver).Hi. I'd have to see the whole stack trace to know for sure, but it looks like the
    DBMS/driver you're using doesn't implement the transactional calls/behavior that
    are required for managing EJB transactions. If you can write a small standalone
    java program that just gets a JDBC connection to your database, then calls setAutoCommit(false),
    then does a few updates, then calls Conenction.commit(), then there may be a weblogic problem,
    but if your simple program gets the same error, you need a transactionally capable DBMS.
    Joe
    Can anybody help!!!!!!
    Thank you, Eric
    [email protected]

  • Cannot disable or enable Bluetooth with user rights

    Hi,
     If user do not have administrator rights he/she cannot disable or enable bluetooth using Fn+F5 menu.Is there any solution to this problem?

    Still looking for solution....

  • Disable 'SAVE' button on 'FILE' menu on some forms using personalization

    Hi there,
    I need to disable 'SAVE' button on 'FILE' menu on some forms using personalization. Please let me know if you know how to do this. Currently we have done this through custom.pll and we are trying to phase out custom.pll. Any help is appreciated.
    thanks
    Sudeep

    whether i know u cannot disable SAVE toolbar through Personalization. You do it with custom.pll.
    CHECK FOLLOWING LINK
    Disable Save item from Contrl Menu
    Pradhyumn Sharma

  • How to Disable a Button Using JavaScript

    Hi,
    I want to disable a button based on a condition. I am using a template based button (button Alternate 3). I am using Theme 3. I have created buttons of type item but when I view the source there is no button name populated in the html. My javascript is not disabling the button.
    Please advice.
    Thanks
    sukarna

    Hi,
    You can't disable an A tag (FireFox, for example, will still let you click the "link").
    What you could do would be to create a second button that doesn't work and only show one of these at a time.
    I have done that here: [http://apex.oracle.com/pls/otn/f?p=35917:30]
    The Button has been based on a custom Button Template. The definition for this is:
    &lt;table class="t10Button" cellspacing="0" cellpadding="0" border="0"  summary="" id="#BUTTON_ATTRIBUTES#"&gt;
    &lt;tr&gt;
    &lt;td class="t10L"&gt;&lt;a href="#LINK#"&gt;&lt;img src="#IMAGE_PREFIX#themes/theme_10/button_left.gif" alt="" width="4" height="24" /&gt;&lt;/a&gt;&lt;/td&gt;
    &lt;td class="t10C"&gt;&lt;a href="#LINK#"&gt;#LABEL#&lt;/a&gt;&lt;/td&gt;
    &lt;td class="t10R"&gt;&lt;a href="#LINK#"&gt;&lt;img src="#IMAGE_PREFIX#themes/theme_10/button_right.gif" width="4" height="24" alt="" /&gt;&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
    &lt;table class="t10Button" cellspacing="0" cellpadding="0" border="0"  summary="" id="#BUTTON_ATTRIBUTES#_DISABLED" style="display:none"&gt;
    &lt;tr&gt;
    &lt;td class="t10L"&gt;&lt;img src="#IMAGE_PREFIX#themes/theme_10/button_left.gif" alt="" width="4" height="24" /&gt;&lt;/td&gt;
    &lt;td class="t10C" style="padding:1px 4px;"&gt;#LABEL#&lt;/td&gt;
    &lt;td class="t10R"&gt;&lt;img src="#IMAGE_PREFIX#themes/theme_10/button_right.gif" width="4" height="24" alt="" /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;This actually creates two buttons - the first one, which actually has the link, is visible to start with. The second one, which has no link at all, starts off as invisible.
    Both buttons use the #BUTTON_ATTRIBUTES# setting to get the button name into the ID - though the second button adds "_DISABLED" to this so that it has a unique, but known, ID
    Then it is just a case of calling a function to show one button and hide the other or vice versa:
    &lt;script type="text/javascript"&gt;
    function disableButton()
    document.getElementById('P30_TEST_BUTTON').style.display = "none";
    document.getElementById('P30_TEST_BUTTON_DISABLED').style.display = "block";
    function enableButton()
    document.getElementById('P30_TEST_BUTTON').style.display = "block";
    document.getElementById('P30_TEST_BUTTON_DISABLED').style.display = "none";
    &lt;/script&gt;Another possibility is to add the #BUTTON_ATTRIBUTES# to the TABLE tag instead of the A tag in a new button template (based on a copy of the normal Button template). Then, the ID value would be applied to entire "button". You can then make this invisible using:
    $x('BUTTON_ID').style.visibility = 'hidden';The button will be removed from the page as far as the user is concerned, so they can not click the link.
    Andy

  • Using iPad 2 - if i use the slide switch to lock rotation, i cannot unlock rotation, unless i use it to mute sounds.  i can't therefore have unmuted sounds and unlocked rotation at the same time??

    using iPad 2 - if i use the slide switch to lock rotation, i cannot unlock rotation, unless i use it to mute sounds.  i can't therefore have unmuted sounds and unlocked rotation at the same time??

    Uh .... Yes you can. You just have to understand how the whole thing works.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the task bar. Double tap the home button and in the task bar at the bottom, swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock rotation can be accessed via the task bar in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • HT4847 I am unable to delete the last backup from icloud, i checked my all device setting but it still say "cannot delete icloud this time because it is in use,"Please tell me what should i do.

    I am unable to delete the last backup from icloud, i checked my all device setting but it still say "cannot delete icloud this time because it is in use,"Please tell me what should i do                             

    It still didn't work...
    Within this commonfiles\apple folder, there is only one folder, labeled "Internet Services." Within this folder, there are 6 folders, labeled:
    APLZOD.resources
    BookmarkDAV_client.resources
    CoreDAV.resources
    iCloud.resources
    iCloudServices.resources
    ShellStreams.resources
    Within all but CoreDAV and BookmarkDAV_client, there are multiple different folders, all labeled starting with a two letter (acronym I believe, for different languages) then .lproj (for example, a folder is labeled "ar.lproj".
    In each of the folders of APLZOD.resources, there is a file labeled "APLZODlocalized.dll."
    In all of the folders containing the multiple .lproj folders, there are likewise "name"localized.dll files contained.
    In the BookmarkDAV_client and Core DAV folders, they each contain only one file, "Info.plist"
    I attempted to delete all of these files, and still, the FileAssassin could not delete them. I unlocked one of them for instance, and I tried to delete the file myself (thru windows explorer and just clicking delete), and I still had the same issue of coming eventually to the window requesting me to "try again" to have permission.
    What can I do?? I'd like to avoid Unlocker, but if it really is a reliable and SAFE program, and someone knows a SAFE place to download it from, I'd appreciate it very much so!!
    thanks!!

  • How to run  multi reports at a time using button

    dear all
    i have a button on form, that call a report abc.rep. when i press the button report is displayed. now i want to show another view of that report when i press button second time. but it doesn't appear. when i close the first report that it gets run.
    how can i run same report multiple time using this button.
    regards.
    Asif iqbal
    Software Engineer
    (Karachi, Pakistan).

    HI
    Call you report using this code then you can run more then 1 report at the same time
    declare
    AppID PLS_INTEGER;
    begin
    AppID := DDE.App_Begin('RWRUN60 module=d:\reports\LEDGER_NEW.Rep userid='||:global.the_username||'/'||:global.the_password||'@'||:global.the_Connect||' maximize=yes user_id='||:global.the_username||' user_password='||:global.the_password||' user_connect='||:global.the_connect, DDE.App_Mode_Maximized);
    end;
    Rizwan
    www.rizwanshafiq.blogspot.com

  • In Lion 10.7.x I cannot disable the Lock documents for 2 weeks in Time Machine! Thus it prevents to change anything else like the system preferences or other settings. How I can disable it?

    Hello, In Lion 10.7.x I cannot disable the Lock documents for 2 weeks in Time Machine! Thus it prevents to change anything else like the system preferences or other settings. All is locked. How I can disable it?

    Do you mean the check box isn't enabled?
    Or you remove the check but it doesn't "stick"?
    Or you remove the box but documents are stil getting locked?
    That setting doesn't apply to other things in System Preferences, just apps that support AutoSave and Versions.  If you're having a problem with System Prefs, please clarify exactly what.

  • How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?

    How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?

    Hello,
                  Regarding the skip/force pass/force fail options, when I set the ControlExecFlow to True in Teststand 3.1 and 3.5, in the Sequence Editor the menu options for skip/force pass/force fail are not active for Technician but, when I launch the Operator Interface logged with Technician the options are active. The problem is that if the technician sets one step to one of these options, and change the user to Operator, the test step remains skip/force pass.
                  Is there any possibility without modifying the Operator Interface (at programming level), to reload default values of the steps when changing the user to Operator?
    Thank you,
    Best regards,
    paio

  • Use rich:fileUpload/ to enable/disable my buttons with checking file names

    Hello!
    I need to upload some files with using <rich:fileUpload>,and i did it but i need to check file names for some reasons and enable or disable upload button but my problem is that when i open my modal panel and click add button of <rich:fileUpload> and then add upload button of <rich:fileUpload>(not my upload button but upload button wich <rich:fileupload> has) i check file name but the button is not enable/disable until i close my modal panel and open it agin,so i need to know how to modify my code to make it work?
    <rich:modalPanel  id="uploadFile" autosized="true" resizeable="false">
                    <f:facet name="header">
                     <h:panelGroup>
                         <h:outputText value="uploadFiles"></h:outputText>
                     </h:panelGroup>
                 </f:facet>
                 <h:form>
                      <rich:fileUpload  maxFilesQuantity="#{uploadBean.maxUploadFiles}" allowFlash="true" fileUploadListener="#{uploadBean.uploadListener}" immediateUpload="false"/>
                             <table>
                                <tr>
                                     <td><h:commandButton disabled="#{!uploadBean.xlsNameValid}" rendered="#{!uploadBean.admin}"  action="#{uploadBean.upload}" value="upload" /></td>
                                     <td><h:commandButton action="#{uploadBean.clearFiles}" value="cancel" id="cancel"/></td>
                                </tr>           
                           </table>
                 </h:form>
                 <rich:componentControl for="uploadFile" attachTo="cancel" operation="hide" event="onclick"/>
              </rich:modalPanel>

    No the problem is that file is being checked on server side, but if file is invalid the button Upload(my button ,not standart rich:fileUpload) must be disbaled,and shown,but i have to close this modal panel and open it again to see my button enabled/disabled

  • Disable Html button in validation process using pl/sql

    Hi,
    I need to disable a html page button. It gets re-enabled afer a validation process is run on the page and errors for the form are returned. I need a way of writing a validation process using pl/sql returning boolean, that can disable the button again.
    I've tried:
    IF lname > 0 THEN
    Return TRUE;
    Else
    htp.p('<script type="text/javascript">');
    htp.p('document.getElementById("NEW_ENTRY").disabled=true');
    htp.p('</script>');
    Return FALSE;
    End If;
    The button id is NEW_ENTRY, but this is ignored and the buttons remains enabled.
    Any ideas on how to change the code to work?

    You have to create after region process that will be triggered on some condition.
    htp.p('
    <script type="text/javascript">
       document.getElementById("NEW_ENTRY").disabled="true";
    </script>
    ');

Maybe you are looking for