How to use selectBooleanCheckbox in expression builder

Hi
I have a selectBooleanCheckbox on my UI as below.
<af:selectBooleanCheckbox id="sbtFlg"
      label="Enable/Disable SUBMIT button"
       binding="#{pageFlowScope.invoiceTableManagedBean.submitBtnActive}"/>I am setting the value of this component in the listener 'SubmitButtonListener' as below
    RichSelectBooleanCheckbox submitFlag = (RichSelectBooleanCheckbox)context.getViewRoot().findComponent("sbtFlg");
    String id = actionEvent.getComponent().getId();
    log.info("+++++ Component id ++++ "+ id);
//Here is some logic to get the     allRows object
    if( allRows.length == 0) {
        log.info(">> length ==0");
        //submitFlag.setSelected(false);
        submitFlag.setValue("false");
    }else{
     //submitFlag.setSelected(true);
      submitFlag.setValue("true");
    }Now I want to use the boolean value of the checkbox on disable property of commandButton.
<af:commandToolbarButton actionListener="#{invokeActionBean.setOperation}"
                                               text="#{wf:getResourceValue('SUBMIT', 'bindings.customActions')}"
                                               disabled="#{!pageFlowScope.attachmentListManagedBean.areAllRequiredDocumentsAttached or !pageFlowScope.invoiceTableManagedBean.submitBtnActive}"
                                               action="#{invokeActionBean.invokeOperation}"
                                               partialSubmit="false"
                                               immediate="true"
                                               rendered="#{lOVManagedBean.initiator}"
                                               visible="#{wf:isCustomActionAvailable('SUBMIT', 'bindings.customActions')}"
                                               id="submitButton">
                        <f:actionListener type="com.bmc.crms.listener.SubmitButtonListener"/>Is this a right way to call this property?
pageFlowScope.invoiceTableManagedBean.submitBtnActive"
{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

I tried the following with your suggestion.
Submit button code
<af:commandToolbarButton actionListener="#{invokeActionBean.setOperation}"
                                               text="#{wf:getResourceValue('SUBMIT', 'bindings.customActions')}"
                                               disabled="#{!pageFlowScope.attachmentListManagedBean.areAllRequiredDocumentsAttached or !pageFlowScope.invoiceTableManagedBean.submitBtnActive}"
                                               action="#{invokeActionBean.invokeOperation}"
                                               partialSubmit="false"
                                               immediate="true"
                                               rendered="#{lOVManagedBean.initiator}"
                                               visible="#{wf:isCustomActionAvailable('SUBMIT', 'bindings.customActions')}"
                                               id="submitButton">
                        <!-- <f:actionListener type="com.bmc.crms.listener.SubmitButtonListener"/> -->
                        <f:actionListener type="com.bmc.crms.listener.RoleChangeListener"/>Button on which I want to call he listener wherein I am setting the boolean value
<af:commandButton text="Add Invoice" id="addInvoiceButton"
                                        rendered="#{lOVManagedBean.initiator}"
                                        action="#{pageFlowScope.invoiceTableManagedBean.addInvoice}"
                                        actionListener="#{bindings.execute.execute}">
                        <f:actionListener type="com.bmc.crms.listener.SubmitButtonListener"/>
                         <f:actionListener type="com.bmc.crms.listener.MRFlagListener"/>   
                     </af:commandButton>Checkbox component
<af:selectBooleanCheckbox id="sbtFlg"
                                                label="Enable/Disable SUBMIT button"
                                                value="#{pageFlowScope.invoiceTableManagedBean.submitBtnActive}"/>  Listner
  public void processAction(ActionEvent actionEvent){
    log.info("+++++ SubmitButtonListener.processAction() start++++ ");
    Map pageFlowScope = RequestContext.getCurrentInstance().getPageFlowScope();
    InvoiceTableManagedBean invoiceTblBean = (InvoiceTableManagedBean)pageFlowScope.get("invoiceTableManagedBean");
    // or InvoiceTableManagedBean invoiceTblBean = (InvoiceTableManagedBean)pageFlowScope.get("InvoiceTableManagedBean");
    invoiceTblBean.setSubmitBtnActive(true);
    FacesContext facesCtx = FacesContext.getCurrentInstance();
    UIComponent uiComponent = facesCtx.getViewRoot().findComponent("submitButton");
    AdfFacesContext.getCurrentInstance().addPartialTarget(uiComponent);
    log.info("+++++ SubmitButtonListener.processAction() end ++++ ");
}However, on execution I get the following errorfor the SubmitButtonListner.
]] Root cause of ServletException.
javax.servlet.jsp.JspException: com.bmc.crms.listener.SubmitButtonListener
     at com.sun.faces.taglib.jsf_core.ActionListenerTag.doStartTag(ActionListenerTag.java:179)
     at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:43)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)Am I doing anything wrong here?

Similar Messages

  • How to use the Dynamic Expression in BRFplus

    Hi Experts
                   I am new to BRFplus. Can you give any document on BRFplus how to use the Dynamic Expression.
    Thankyou
    Venkat

    OK I tried it and worked but for one condition:
    WHERE DECODE (E.qualification_sid, 1104,
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.spe_per)+1),
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.mili_yea_per)+1))
         BETWEEN TO_DATE('01-07-2011', 'DD-MM-RR') AND TO_DATE('31-07-2011', 'DD-MM-RR')
    But how to put two conditions for the same Expression:
    WHERE DECODE ((E.qualification_sid, 1104) AND (E.RANK_SID, 8),
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.spe_per)+1),
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.mili_yea_per)+1))
         BETWEEN TO_DATE('01-07-2011', 'DD-MM-RR') AND TO_DATE('31-07-2011', 'DD-MM-RR')
    The previous code gives me this error: missing right parenthesis

  • How to use JavaBean in Form Builder 6i

    Hi,
    How to use JavaBean in Form Builder 6i (Oracle Developer 6i)?.
    i'am using Oracle Sever 8.0.4 and Oracle Developer 6i.
    Please give your valuable suggestion
    Regards
    Seema

    I would suggest you start with the sample Java bean code we have
    on otn.
    http://otn.oracle.com/products/forms
    go to the sample code section.

  • How to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart

    how to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart 

    Hi kdm,
    please stick in one thread for the same topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Using Decode in Expression Builder...

    Hi everybody,
    I want to use the DECODE function of SQL in an Expression Builder....
    Of course this function does not exist in any of the transformation categories(arithmetic,character,e.t.c.) in the expression builder.
    I have read in the OWB on-line help that in the Expression Builder there should be an 'Others' drop - down list in order to select any of the available SQL clauses - one of them is 'decode'...
    The problem is that this drop - down list in the Expression Builder is disabled.....
    How can I use this function anyway..????
    Instead of using ... in the Expression Builder...
    decode(<column_name>,'1','val_one','2','val_two') what can I use to do the same....???
    As regards the problem that the drop-down list is disabled , what may be the cause..???
    I use Microsoft XP machine , Oracle 10g (v.10.2) and OWB v.10.1.0.4
    The documentation says....
    "This allows you to deploy the DECODE functionality in all operating modes (setbased, rowbased, etc.) and transparently across Oracle database releases (8.1, 9.0 and 9.2)."
    The above means that the cause is the incompatibility..????
    Thanks , a lot
    Simon

    I am using OWB 9.2.0.8 and I can't reproduce the problem you are having with 10.1, but did you try just typing it into the expression?
    Or, better yet, use CASE. The syntax is easier to read. I think OWB translates DECODEs to CASE when the SQL is generated.
    (Case <column_name>
       When '1' Then 'val_one'
       When '2' Then 'val_two'
    End)

  • How to user #{or} in expression builder

    Dear All,
    am using jdeveloper 11.1.1.3
    I have an input text in an adf page , I need to disable this input text depending on two bindings with or operator--> if one of them is true then disable the input text...
    If this possible and if yes then how ?
    I noticed the Operands in the expression builder popup but i dont know how to use it
    Regards,
    Lama
    Edited by: Delta on Sep 6, 2010 1:35 AM

    You can use 'and' and 'or' instead of '&&' and '||', which is especially nice for '&&' as you would have to use '& amp ;& amp ;' (without spaces) if typed into source of the jspx directly.
    Pedja
    Edited by: Pedja on 06.09.2010. 11.03

  • How to use a regural expression to get all digit from a string.

    Hi All,
    Do you know how to use regural expression to get all digits from the following string via ABAP program?
    "'Log Attributes                 0 (  0 )     (   10 % Available  )"
    Thanks,
    Andrew

    Hi,
    Try the code mentioned below:
      DATA: STR_LEN  LIKE SY-FDPOS,
            RSTR_LEN LIKE SY-FDPOS,
            OFF      LIKE SY-FDPOS.
      DATA: IDX      LIKE SY-FDPOS,        "mn B20K054003
            CL       LIKE SY-FDPOS.        "mn B20K054003
      DATA: RSTRING(40).
      DATA: STRING(40).   " value 'A,N,I,L'.
      FIELD-SYMBOLS: <NLS_CHAR>.           "mn B20K054003
    MOVE I_REGUH-ZNME1 TO STRING.
      MOVE SPACE TO RSTRING.
      STR_LEN = STRLEN( STRING ).
      DESCRIBE FIELD RSTRING LENGTH RSTR_LEN.
      IF RSTR_LEN < STR_LEN. RAISE TOO_SMALL. ENDIF.
      WHILE IDX < STR_LEN.                 "mn B20K054003
        ASSIGN STRING+IDX(*) TO <NLS_CHAR>.   "mn B20K054003
        IF SY-LANGU EQ '2'.                "mn B20K054003
          CALL FUNCTION 'NLS_THAI_CHARLEN' "mn B20K054003
               EXPORTING                   "mn B20K054003
                    THAI_STRING  = <NLS_CHAR>       "mn B20K054003
               CHANGING                    "mn B20K054003
                    THAI_CHARLEN = CL.     "mn B20K054003
        ELSE.                              "mn B20K054003
          CL = CHARLEN( <NLS_CHAR> ).      "mn B20K054003
        ENDIF.                             "mn B20K054003
        IF IDX NE 0.                       "mn B20K054003
          SHIFT RSTRING RIGHT BY CL PLACES."mn B20K054003
        ENDIF.                             "mn B20K054003
        RSTRING+0(CL) = STRING+IDX(CL).    "mn B20K054003
        IDX = IDX + CL.                    "mn B20K054003
      ENDWHILE.                            "mn B20K054003
    Regds,
    Anil
    Edited by: Matt on Jul 1, 2009 9:36 AM -added code tags

  • How to use the CASE Expression in Where Cluase?

    Hi All,
    I'm trying to use the CASE Expression in the Where Clause at some trigger on the Form?
    I've tried this Code:
    Declare
    N Number;
    begin
    SELECT COUNT(E.EMP_SID)
         INTO N
         FROM EMPLOYEES E, RANKS R
         WHERE CASE WHEN R.qualification_sid = 1104 AND E.rank_sid = 8 THEN
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.spe_per)+1)
         ELSE
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.mili_yea_per)+1)
         END
         BETWEEN TO_DATE('01-07-2011', 'DD-MM-RR') AND TO_DATE('31-07-2011', 'DD-MM-RR');
    END;
    When I run this code as a normal query at any SQL editor it works successfully, But When I Compile it at some trigger on the Form it gives me this error:
    Encountered the symbol "CASE" when expecting one of the following:
    ( - + mod ......
    Heeey how to specify the previous code to be shown as code in the thread?
    Note: I'm using Forms 6i

    OK I tried it and worked but for one condition:
    WHERE DECODE (E.qualification_sid, 1104,
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.spe_per)+1),
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.mili_yea_per)+1))
         BETWEEN TO_DATE('01-07-2011', 'DD-MM-RR') AND TO_DATE('31-07-2011', 'DD-MM-RR')
    But how to put two conditions for the same Expression:
    WHERE DECODE ((E.qualification_sid, 1104) AND (E.RANK_SID, 8),
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.spe_per)+1),
         (TO_DATE(E.RANK_DATE, 'DD-MM-RR')+(365*M.mili_yea_per)+1))
         BETWEEN TO_DATE('01-07-2011', 'DD-MM-RR') AND TO_DATE('31-07-2011', 'DD-MM-RR')
    The previous code gives me this error: missing right parenthesis

  • How to do substring with Expression Builder

    Hi,
    I only execute a substring with Expression Builder, this is possible?
    thanx

    Hi!
    With Expression Builder it is not possible as the EL by default does not have such function.
    But you may:
    1. Use JSTL 1.2 functions like "${fn:trim(' MYSTRING '}"
    2. Write your own function and TagLib - see on net
    Also, you may write a custom Map implementation and expose it in some backing bean to make it available in EL without need to create TagLib (as #{mybean.trim[' some string  ']"). But this way is much complex if you need more than singe parameter for your function...
    Regards,
    PaKo

  • How to use Alcon in Flash Builder 4.5

    I am using Alcon as memory and performance profilers.
    I searched around the Internet, only found articles that talk about how to use it in Flash:
    Debug.monitor(stage, 1000);
    But what is the counterpart to this statement in Flex environment? What should I pass to monitor method?
    Thanks.

    Hi
    Currently i haven't found any documentation describing how to compile and use this tlfx.
    I went through the change log to see what was added, and it looked quite good.
    I have tried to compile it, but my experience with fb4 is very limited. I have only worked with it for a couple of months.
    I would like a description of how to compile and use this tlfx liblrary in a flex application, so that i can have table supprt as well as support for bullets and numbering.
    TIA
    Allan

  • How to use 2 Airport Express units?

    In my office upstairs I use an AirPort Express to tap into the wireless router downstairs wirelessly. Works great. In a bedroom also upstairs, I have a Blu Ray player I want to connect to the Internet. I thought if I got another AirPort Express unit in that Bedroom then it too could tap into the wireless router downstairs so I could then run an ethernet cable from the AirPort Express to the BluRay player. I tried that but when I look on my computer in the AirPort Utility screen, it only recognizes one of the AirPort Express units. That unit in the Bedroom continues to have a flashing yellow light and no internet connection. What do I need to do to get an internet connection in the Bedroom?

    Welcome to the discussions!
    +These past Holidays “Santa” delivered a new Mac Book Pro, along with a Time Machine which is built into an Airport Extreme.+
    You have a Time Capsule, correct?
    The Time Capsule can "extend a wireless network" as well as perform backup functions on the network.
    You could continue to use your AirPort Express in another part of the house to provide a stronger wireless signal in that area. (I've yet to meet the first person who felt that they had too much wireless coverage in their home).
    If you have a DVR or newer DVD player that requires an ethernet connection for advanced features from the internet, the ethernet port on the Express is "live" when it is set to "extend", so you might think about that option as well.
    Hotels don't use ethernet nearly as much as several years ago, but I always take my spare Express on the road to hook up to the hotel's ethernet jack and create a wireless network in the room for the laptop or iPhone. Works great.

  • How to use tlfx in Flash builder 4.

    Hi,
    How can i compile the tlfxproject and include it in flash builder 4?
    I need the table and bullet features, to create an advanced editor.
    I already have the source for tlfx, but don't know how to proceede.
    Thanks.
    Allan

    Hi
    Currently i haven't found any documentation describing how to compile and use this tlfx.
    I went through the change log to see what was added, and it looked quite good.
    I have tried to compile it, but my experience with fb4 is very limited. I have only worked with it for a couple of months.
    I would like a description of how to compile and use this tlfx liblrary in a flex application, so that i can have table supprt as well as support for bullets and numbering.
    TIA
    Allan

  • How shall i do it ? Complex question about how to use the airport express or time capsule ?

    Hello All,
    Right now i have an access point:
    1/ A mercury router (cheap and old)
    2/ Airport Express
    Do you advice me to use it to replace my cheap old router (mercury) or to pair it with this main old router ? (however i tried to without any success)
    3/ Time Capsule
    Can i use it to relay the signal from the Airport Express to extend the range  of the wifi?
    Can i use it to stream music to my B/W M1 speakers directly ? (I will connect by USB the BW M1 to the time capsule) and would like to be able to play music this way. Is this in anyway possible ?
    Many thanks for your reply !

    ok, i might be wrong but here goes:
    you should attach your modem to your time capsule: your time capsule will act as not only your time machine but also your main wireless transmitter.
    you set it up using "Airport Utility" which is inside the "utilites" folder, which is inside your applications folder.
    this connects your mac wirelessly to the internet.
    to stream music to your speakers you then set up the airport plug to (a) join the existing network (which you set up on the time capsule) and then (b) set it up to stream music to your speakers. again, this is done using "airport utility". do it AFTER you have set up the time capsule.
    you will then be able to use itunes to stream music to your speakers. from itunes on your computer you will be able to chose from the bottom right hand side of the window whether you play the music on your computer or wirelessly into your B+W speakers...
    some notes:
    1. you won't be able to connect the airport plug by USB to your speakers as the airport plug doesn't have a USB output. It has only analogue and optical.
    2. although your time capsule has USB you cannot stream music into it or through it. there's some basic guidance here:
    http://www.apple.com/wifi/
    3. you may find that the sound quality [if you are playing apple lossless files or wav files) isn't as good as if the speakers were connected directly to your mac via USB.  this should be especially noticable because your speakers are so good!
    if the music you play is only mp3 or the stuff purchased from itunes then it shouldn't make too much of a difference.
    4. keep an eye out on the B+W website: there may come a time when you won't even have to use the airport plug, and you will be able to stream music straight to the speakers. i know that B+W have just done that with the new Zepellin speaker that they make.
    hope this helps...

  • How to use wlappc on a build machine where weblogic server is not installed

    All,
    We have a build environment where Weblogic server is not installed. We are currently moving from WL8 to WL10 but because of the relative paths in the weblogic.jar for version 10 I cannot figure out what jars I need in order to use the compile utilities without actually having to have the entire WL10 Application server installed on my build machine.
    In WL8 we just needed the Weblogic.jar, webservices.jar, and wlManagement.jar.
    Now it seems we need wlfullclient.jar webservices.jar and the weblogic.jar and all the jars in the relative classpath for the weblogic.jar, which is a very long list.
    Is this really so? Seems shortsighted on Bea's/Oracle's part if we now need to have a full installation of the application server just to use the compile utilities on our build machine.
    Any help on what jars to include so as to use wlappc or wlcompile on a build machine where weblogic 10 server is not installed would be appreciated.
    Todd Flora

    I no longer need help with this, as I have determined to load weblogic on our build machine.

  • How to use a counter to build a Logic Analyzer?

    Hi guys, i have heard that we can use a counter as a Logic Analyzer based on an incoming signal and its clock frequency. Anyone know how this works?
    I am trying to read a set of signals, which I have no knowledge of  except that there would a Clock, reset and a data line; and I want to develop a Logic Analyzer to 'know' these signals.
    Thanks, Anoop
    Solved!
    Go to Solution.

    Lynn,
    I have a PXI-7813R, which along with its FPGA is sufficient I believe for this purpose.
    How many digital signals do you need to examine simultaneously?
    Well, I am not sure, but based on the signals generated by similar devices, I would guess between 4 and 6. I expect there to be a Clk, Rst, Data and some other signals.
    What is the maximum frequency?
    I have no idea or how to even come up with a guess on this one.
    What is the maximum and minimum number of samples per signal that you need to capture?
    Again, not a clue. Would it not depend on the Clk frequency?
    Are any of the signals ever in a high impedance (tri-state) mode?  
    Again, don't know, sorry.
    Is the minimum pulse width for non-clock signals the clock period, half the clock period, or something else?
    Sorry again.
    How would you go about in this situation?

Maybe you are looking for