Command Button not disabled properly

I am using a commandButton and its partial trigger is set to a table. The reason being that I need to update the label with the number of rows selected in table. And if no rows is selected, it should be disabled. So for the startup I have set the "disabled" attribute to true.
Now I am facing this problem. The button is disabled. But when I hover the mouse over it, I can see it being highlighted and it seems enabled and I can click it when the mouse is over it. Otherwise its disabled. Why is it behaving like this?

JDev version = 11.1.1.6.2
No skins applied.
Code:
<af:panelStretchLayout topHeight="30" id="psl1" styleClass="AFStretchWidth">
<f:facet name="top">
<af:panelGroupLayout layout="horizontal" id="pgl1">
<af:commandButton text="MyButton"
id="cb1"
actionListener="#{pageFlowScope.MyBean.doSomething}"
inlineStyle="margin-top:4px;margin-left:4px;margin-bottom:4px"
partialTriggers="pc1:t1" disabled="true"
partialSubmit="true"/>
</af:panelGroupLayout>
</f:facet>
<f:facet name="center">
<af:panelCollection id="pc1" styleClass="AFStretchWidth"
featuresOff="statusBar wrap freeze formatMenu detachMenuItem">
<af:table value="#{pageFlowScope.MyBean.tableData}"
var="row" rowBandingInterval="0" id="t1"
summary="My table"
columnStretching="multiple"
styleClass="AFStretchWidth"
rowSelection="multiple" contentDelivery="lazy"
verticalGridVisible="false"
fetchSize="0"
selectionListener="#{pageFlowScope.MyBean.onTableSelection}">
<af:column sortable="true"
width="50%"
headerText="First Column"
rowHeader="unstyled" id="c1">
<af:outputText value="Some Text" id="ot1"/>
</af:column>
<af:column sortable="true"
width="50%"
headerText="Second Column"
id="c2">
<af:outputText value="Some Other Text" id="ot2"/>
</af:column>
</af:table>
</af:panelCollection>
</f:facet>
</af:panelStretchLayout>

Similar Messages

  • Power button not working properly for iphone 5. Warranty expired on 22 nov 2013 what to do?

    Hi,
    Power button not functioning properly for my iphone 5. Kindly give advice on what to do. Its warranty expired on 22nd november 2013.

    Read here:
    https://ssl.apple.com/support/iphone5-sleepwakebutton/

  • I got new iphone it had a problem of sleep/off button not working i replaced from care. now the replaced product had a problem that home button not working properly now what i want to do

    Igot new iphone it had a problem of sleep/off button not working i replaced from care. now the replaced product had a problem that home button not working properly now what i want to do

    Hello, krishna kumar.j. 
    Thank you for visiting Apple Support Communities.  
    I understand that you are experiencing and issue with your Home button.  Here are the troubleshooting steps when experiencing this.  
    Get help with buttons and switches on your iPhone, iPad, or iPod touch
    http://support.apple.com/en-us/HT203017
    Cheers, 
    Jason H.  

  • Command button remains disabled after a request redirect to a PDF Servlet

    Hi All,
    I've a command button to generate PDF on the fly and used to work in JDev 10.1.3.3.
    When we migrated to 11g, it works for the first time on a page, and the file Open/Save dialog will come up.
    But then the command button remains grayed out, and clicking doesn't generate a server call.
    If I do something on the page which does a partial or full submit, then the button will get enabled again.
    Any suggestions?
    Thanks,
    Jaimon
    Sample code:
    Facelets:
    <af:commandButton text="Create PDF" action="#{fs02.createPDF}" />
    Java:
    public String createPDF() {
    //Validation checks here. If there are any errors, it gets added to FacesMessages to display on the same page.
    if(!validate()) {
    //sf.addInfoMessage('message here..');
    }else {
    FacesContext ctx = FacesContext.getCurrentInstance();
    HttpServletRequest request = (HttpServletRequest)ctx.getExternalContext().getRequest();
    HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse();
    RequestDispatcher rd = request.getRequestDispatcher("/pdfdownloader");
    rd.forward(request, response);
    ctx.responseComplete();
    return null;
    pdfdownloader is mapped as a servlet, which writes the actual PDF content as a stream.

    Herewith the code which is triggered with the post-forms-commit trg. As far as I can see it, there is no code to disable/enable the save button in the menubar.
    ===
    PROCEDURE validate_enbr_records IS
    CURSOR c_enbr
    IS
    SELECT exlb.exlb_length
    , enbr.enbr_ind_break
    FROM dog_envelop_breaks enbr
    , dog_extrnl_labels exlb
    WHERE enbr_appl_cod = :flow_appl_cod
    AND enbr_flow_cod = :flow_cod
    AND enbr_sort_seqnr <> :enbr_sort_seqnr
    AND enbr_appl_cod = exlb_appl_cod
    AND enbr_exlb_cod = exlb_cod;
    CURSOR c_exlb
    IS
    SELECT exlb_length
    FROM dog_extrnl_labels
    WHERE exlb_appl_cod = :flow_appl_cod
    AND exlb_cod = :enbr_exlb_cod;
    l_lengte_break_label NUMBER := 0;
    l_lengte_sort_label NUMBER := 0;
    l_length NUMBER := 0;
    l_aant NUMBER := 0;
    r_enbr c_enbr%ROWTYPE;
    mi_id MenuItem;
    BEGIN
    FOR r_enbr in c_enbr LOOP
    IF r_enbr.enbr_ind_break = 'Y'
    THEN
    l_lengte_break_label := l_lengte_break_label + r_enbr.exlb_length;
    ELSE
    l_lengte_sort_label := l_lengte_sort_label + r_enbr.exlb_length;
    END IF;
    l_aant := l_aant + 1;
    END LOOP;
    OPEN c_exlb;
    FETCH c_exlb INTO l_length;
    CLOSE c_exlb;
    IF :enbr_ind_break = 'Y' THEN
    l_lengte_break_label := l_lengte_break_label + l_length;
    ELSE
    l_lengte_sort_label := l_lengte_sort_label + l_length;
    END IF;
    IF l_lengte_break_label > 48
    THEN
    qms$errors.show_message('DOG-10194');
    END IF;
    IF l_lengte_sort_label > 50
    THEN
    qms$errors.show_message('DOG-10195');
    --set_record_property(3,'enbr',status,changed_status);
    END IF;
    IF :system.record_status = 'CHANGED' THEN
    set_menu_item_property('FILE_MENU.SAVE',ENABLED,'YES');
    END IF;
    END;
    ===
    After the message has been throughn and the OK-button has been clicked, the code is never reaching the code:
    IF :system.record_status = 'CHANGED' THEN
    set_menu_item_property('FILE_MENU.SAVE',ENABLED,'YES');
    END IF;
    The save-button remains disabled.
    Best regards
    John.

  • Add Command button not in the Database Expert: VS2003

    We are using VS2003 and the bundled version of Crystal Reports.  We have no plans of upgrading right now, unless we have to. What I'm trying to do should be simple...
    We have an existing report that lists incomplete orders, including invoice# and items in the order.  One of the possible order items is "MISC", however, that is not descriptive, so I am trying to add a SQL query that will look up the actual MISC item text based on Invoice # (one of the fields in the report).  I was trying to do this via a subreport.
    The help file and this Youtube video ( [Crystal Reports Tutorial Creating SQL Commands| http://www.youtube.com/watch?v=BHNHsIUbcn8]  ) suggest the way to do this is to click "Add Command to Report" from the Database expert, which will let me add my own SQL command.
    However, "Add Command" is not visible, and I cannot get it to appear.   Under what circumstances would it be hidden or disabled?  How do I get it to appear so I may add a custom SQL item to the existing report?
    Any help is greatly appreciated.   Thank you in advance.

    Not possible with your version of CR. You'd have to upgrade to the current version of Crystal Reports (12.x).
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Button not disabling using Java Script after confirm message in button

    I have a STAGEDATA button on a form with the following code to prevent Resubmissions (Apex 4.0)
    Action When Button Clicked:
    Action: Redirect to URL
    Execute Validations: Yes
    URL Target:
    javascript:if ( apex.confirm('Have you saved the data on the current page? Please confirm.','STAGEDATA') ) {javascript:this.disabled=true;this.value='Staging data...';apex.submit('STAGEDATA');}
    When I click the button, the confirmation message is displayed.
    However, after the confirmation message is displayed, the button is not disabled and the value does not show, while post processing of the page takes place before moving to the next page.
    Am I missing something?
    Appreciate your help. Thanks in advance

    Hi,
    try adding
    <script>
       alert('Testing');
    </script>
    This actually adds the script to the page body and not the header as af:resources does
    Frank

  • Images in button not shown properly

    I have imported a quicktime file which was exported from FCP. The final cut portion is strictly jpeg files, no movies. I have made chapter markers in FCP. So in DVD Studio Pro, I created a button and chapter index, then selected a template. When I go to the menu(s) with chapters, the chapters are all correct. However, the photos in the button are not resized properly. Most of the heads are cut off. I have the button set with motion but turned it off and still photos not correct. How can I make DVD Studio Pro resize the photos properly? I right click the chapter button (it is not a drop zone), the option for align objects and distribute objects is not available. I am unable to click on it, thinking that is what I need to change. Any suggestions in how to get the photos to show completely in the button and not be cut off? I am very knew at this, only my second project, so please explain in detail.
    Thanks!

    Check your frame rate
    are you declaring frame rate through XML or in external file  ?
    check your code again
    or
    may be you forget to upload some related files

  • Button not working properly.

    Hi I bought my new HP Envy k112tx its capslock button is not working properly when pressed softly. It has to be pressed hard so that it could work, Its minor.What should i do?.

    if it's not bugging you then you can safely just leave it, there is a small risk of causing damage to the keyboard though. If you contact HP they may be able to replace the keyboard for you unless it's less than 30 days old then you should be able to return it for a replacement unit, you'll still need to contact HP first though cause that's where the retailer will refer you to straight away
    *****I do not work for HP*****
    *****click the purple thumbs up button to say thanks*****
    *****If I solved your problem, help others by clicking accept as solution*****

  • Export Button not working properly in custom OAF page.

    Hi,
    I have a custom page with a table region is there. There is an export button which exports the rows in an excel sheet.
    But it is not working properly, as all the rows are not getting extracted.
    Properties set for the export button::
    Export all rows :: False
    Any sugestion is highly appreciated.
    Regards,
    Arindam.

    Hi Arindam,
    Refer below links.
    Mukul's Oracle Technology Blog: Implementing Export Button Functionality Programatically
    http://dilipoaf.blogspot.in/2013/02/export-selected-rows-data-functionality.html
    Thanks,
    Dilip

  • Why is my sleep/turn off button not working properly?

    I've had my iphone 5 for about 7 months and it's been having all sorts of problems, like the sleep/turn off button is not working like it did when i first got the phone! I have to press the button harder and on the left side for it to work. Is there anything I can do? Does anyone know the cause of it?

    my iphone 4 sleep\wake button  doesnot working properly
    i have to press it 2 times..in first attempt (sometimes) the screen flickers and go off and i have to press it again to wake it ...
    and when it wakes up and i press sleep button it go off and if i press it again it comes with a flicker and works fine
    but it does not work properly in first attempt
    suggest something and in my country there is no official apple repair store and no apple store ..so that i can take it there and they replace it ...

  • Wifi sudden disconnection and lock button not working properly on my iphone 4s.......    It is under warranty

    When using wifi on my iphone,sometimes it disconnects automatically...... And my lock button is not working properly.....
    What should i do, my iphone is under warranty....

    The Sleep/Wake button is a hardware issue and that's covered by the warranty. I would take it to the Apple Store and see what they can do.
    Hope that helps

  • JRadio Buttons not appearing properly

    Hi.
    My application has a main class that extends JFrame. It has a simple JMenuBar. Nothing else is there on this JFrame. When a JMenuItem is selected, the JFrame is set to become invisible, create an instance of another class (which extends JPanel), adds this JPanel to its center and becomes visible again.
    The JPanel class has four JRadio buttons, a JTextField and a JButton. By default, the JTextField and JButton are disabled.
    The problem is that when the JFrame becomes visible again after adding the JPanel, only the JTextField is visible on the screen. The JRadioButtons and JButton are not visible.
    The JRadioButtons don't become visible until I move my mouse over the area where they are supposed to be and the JButton doesn't become visible until I select a JRadioButton that enables it.
    How can I solve this problem. I want all the components to be displayed (enabled or disabled) when the JPanel gets added to the JFrame and the JFrame becomes visible again.
    Thanks.
    Shakeel
    :)

    Hi.
    I have written a simple program that does the same
    thing, but it works just fine. It's no use posting
    it. Here's something else I just noted. After moving
    my mouse pointer over the area where the
    JRadioButtons are supposed to be, they become
    visible, but if I minimize and then restore, or even
    maximize the JFrame, all components on the JPanel
    become invisible again until I move the mouse over
    them.
    Could this have anything to do with the repaint not
    being called properly or something? Please help.
    ShakeelWell if it works fine in your short example that is good news. That means you can narrow the problem down to the differences between the short and normall example.
    Slowly add each line from the normal example to the short example until the problem appears.

  • Macbook Pro 13'' Early 2011 Power Button not responding properly after spilled drink.

    Hi Everyone
    I've spilled beer on my old macbook last december. I've reassembled pretty much the whole mac, cleaned the motherboard with Servisol (isopropyl alcohol) and applied new thermal compound. The mac is working (if turned on from the motherboard, however the power button doesn't work properly. If pressed several times, sometimes it either changes the brightness of the screen or takes you to the widgets.
    The keyboard was disassembled and cleaned and everything else apart from left shift and power button appears to be working on the keyboard. The keyboard was disassembled soon after the spillage, which was few months ago.
    As it was few months ago when I cleaned the keyboard, I''ve forgot whether the power button is a part of the keyboard or an individual module. Could anyone give me some advice on that? Any other suggestions regards to the power button?
    Another problem I've encountered recently is lost administrator account (after an attempt to turn the mac on). I can only access the guest account, my main account doesn't even appear on the launch. I can still see the administrator's files, but can't access them as they're locked. Is there a way to get back the account or access the files from the computer?
    Many Thanks. Damian

    Hi M,
    There are other threads here with similar issues. I do not know if a "common" fix has been found. Try an SMC Reset:
    http://support.apple.com/kb/HT3964
    If no luck there, your Mac has a one year hardware warranty and I would contact AppleCare.

  • Print Button not working properly in form

    Hi Experts,
    I have modified one form everything fine but i faced one problem.
    when ever enter the item details in form then (print button is there)press the print button it will be give pdf file data properly coming,
    again if i modify the item details then press the print button it's showing old data not updated.
    please give me any solution ASAP.
    Thanks&Regards
    Mohan Reddy
    Edited by: 925452 on Apr 10, 2012 6:12 AM

    It is quite unclear what you are saying. Are you saying you have a button which you have called "Print"? Does this button call Reports to generate a pdf file? What product versions are you using? Do not say "10g" or "9i" as these are product names. Please provide the complete product versions and tell us what platforms (operating systems) you are using for client and server.
    yes i used print button,yes that print button call reprorts to generate a pdf file, oracle forms 10.1.2.0.2 frant end oracle apps, i used windows 7 O S 32bit.
    it's not giving current data it's giving old data in pdf file . If i press 3 times save button then i press print button then it's give the current data befroe press the save button directly if i press prin button it'showing err request id process 2547 like

  • IPod touch 4 home button not working properly

    I got my ipod in november 2010 and it worked fine up untill august where the home button just suddenly became undresponsive. I did not abuse my iPod i am very careful i have a case and no screen cracks/dents etc.. Now it works about 30% of the time and it is really annoying I had to turn on this awful feature where i geta virtual home button which is in the way of everything and i cant even arrange it properly. I am very dissapointed with apples express lane which provided absolutely no help and in their hardware. I have several freinds who got the same type of ipod at around the same time and they are having the same problems. Was it designed to do this? I am now wondering how much I am going to be charged for this. May I get it for free even though my warrenty expired very recently? thanks for the help

    Try here:
    FIX for iPod Touch Home Button: Apple Support Communities

Maybe you are looking for

  • How to change the logo size on all the pages?

    I have some 125 pages and i need to change the logo size of every page .Is there any method to change with one click that reflects on all the other pages ? Rather than i do it manually open every page and change the logo size? The logo is in the div.

  • AE Output Module Getting Whacky

    Hi, all.  My coworker just had CS5.5 Master Collection installed on a 64bit Windows 7 OS.  Last week he was able to export our 720 x 1280 project in an MPEG2 format with no problems whatsoever.  Today, we're getting an error message when we try to do

  • Safari 4.0.5 Text Appears as an A inside a Square

    Just got my new Macbook Pro. However I am observing some strange behavior on some websites. Some of the text appears as an "A" inside a square. i've noticed this at Ebay and at SFGate.com. Any ideas?

  • N8-00 and Belle Refresh

    Hello, i was wondering when the "Belle Refresh" update will be available for N8-00 059D607 devices.

  • Hiding or disabling the check boxes in Tableview  for perticular row

    Hi    I created table view using ITAREATOR, as per my requirement i need to disable or hide the check box (which come by default) for perticular row.    Can any body send me the code thanks in advance B.Umashankar