Need help on combo box validation in jsf

Hi All,
I have a combo box with some options. User has to select one option and has to submit the form. If he doesnt select any option and submit the form i need to display an error message saying that PLEASE SELECT AN OPTION AND SUBMIT.
I am using RATIONAL APPLICATION DEVELOPER 6.0 as my IDE.
please help me its an urgent requirement

On submit check if he has an option selected.
If not do the following:
FacesContext.getCurrentInstance().addMessage(componentId,
new FacesMessage(FacesMessage.SEVERITY_ERROR,
errorMessage,
errorMessage));
return null;
The componentId is the id of the selectOneMenu

Similar Messages

  • Need help @ listening combo box

    Hi Everyone,
    below is my code. Please find my question between '?'ed lines.
    // CREATE COMBO BOX
    if(obj.equals(CSV_COMBO_BOX))
         _combobox[_combobox_count] = new JComboBox();
         //get possible value for combo box
         String [] possible_values = get_possible_values(val[i]);
         for(int i=0; i < possible_values.length; ++i)
         _combobox[_combobox_count].addItem(possible_values[i]);
         //set the default value to usr_val[i]
         _combobox[_combobox_count].setSelectedItem(usr_val[i]);
         // add to panel
         panel.add("tab",_combobox[_combobox_count]);
         // listner
         _combobox[_combobox_count].addItemListener(new ItemListener(){
              public void itemStateChanged(ItemEvent e)
    // ? I WANT TO UPDATE usr_val[i] here ?
    // ? how could i get the value of "i" or
    // combobox_counter in this block?????????
    // ???????????????????????????????<?????
         comboboxcount++;
    Thanks & Regards
    Vikas Talwar

    Hi Everyone,
    below is my code. Please find my question between '?'ed lines.
    // CREATE COMBO BOX
    if(obj.equals(CSV_COMBO_BOX))
         _combobox[_combobox_count] = new JComboBox();
         //get possible value for combo box
         String [] possible_values = get_possible_values(val);
         for(int i=0; i < possible_values.length; ++i)
         _combobox[_combobox_count].addItem(possible_values);
         //set the default value to usr_val
         _combobox[_combobox_count].setSelectedItem(usr_val);
         // add to panel
         panel.add("tab",_combobox[_combobox_count]);
         // listner
         _combobox[_combobox_count].addItemListener(new ItemListener(){
                public void itemStateChanged(ItemEvent e)
              // ? I WANT TO UPDATE usr_val here ?
              // ? how could i get the value of "i" or
              // _combo_box_counter in this block?????????
              // ???????????????????????????????<?????
    _combobox_count++;
    }I have two arrays: one called "val" which is an array of string arrays that you use to populate a JComboBox, and the other one is called "usr_val" that holds strings and is used to set the JComboBox default values. You want to change the default value when the selected item in the corresponding JComboBox has changed. To manage your arrays and JComboBoxes, you have
    one counter "i" which seems to count the arrays of string arrays and the array with the default strings and one counter "_combobox_count" which counts the JComboBoxes that have been genererated with the help of these arrays. Obviously, the arrays could be used to generate a different JComponent as well, in which case "i" and "_combobox_count" will have different values. Both "i" and "_combobox_count" are clearly available within the if-block, so you don�t need any extra tricks to access them. What happens if you directly access "i" or "_combobox_count" from within the "itemStateChanged"-method?
    Thanks & Regards
    Vikas Talwar

  • Need help on combo box problem

    hi ,
    i have two combo box..... eg..c1,c2
    i retrieved data from database to display it in combo box c1.now my problem is using the selected value from combo box c1 i have to display the respective value in c2..
    eg.
    if Product type=injection (in combo box c1)
    then
    in c2 the product name for injection available should be displayed by retrieving it from database...
    this is my code
    <%
    //query for selecting the values from the database
    stm=con.createStatement();
    ResultSet rs=stm.executeQuery("select Dosageform from ProductMaster");
    %>
    <!-- Displaying the values in the combo box -->
    <form name="form1" method="post" action="">  <select name="eid" id="eid" onchange="display(this)">
    <%
    while(rs.next())
    %>
    <OPTION VALUE=""><%=rs.getString("Dosageform")%></OPTION>
    <%
    %>
    </select>
    <select name="combo2">
                   </select>i don't know how to write the function display for this....
    can any one help me...
    Thanks
    kalai

    hi
    thanx to all who sees my forum.
    now i was able to create a depenent box but now i'm facing two problems
    1. when i submit the form my previous value from the combo box is not selected
    2. when i first load the page the value in the 2nd combo box doesn't has the value as null...
    my code
    function display()
      var index=document.form1.drug.value;
      document.form1.hid.value=index;
      form1.submit();
    function refresh()
       var val;
       val=document.form1.hid.value;
       drug.SelectedIndex=value;
    <div class="tr1">
    <td>Product Name</td>
    <%
    //query for selecting the values from the database
       rs=stm.executeQuery("select DrugName from ProductMaster");
    %>
    <!-- Displaying the values in the combo box -->
    <form name="form1" method="post" action="">
    <select name="drug" id="drug" onChange="display()">
    <option value="">-- select -- </option>
    <%
    while(rs.next())
    %>
    <OPTION VALUE="<%=rs.getString("DrugName")%>"><%=rs.getString("DrugName")%></OPTION>
    <%
    %>
    </select>
    <input type="hidden" name="hid">
    </div>
    </tr>
    <tr>
    <div class="td1">
    <td>NDC code #</td>
    <%
    //query for selecting the values from the database
    String sql1 = "SELECT ProductCode from ProductMaster where DrugName='"+request.getParameter("hid")+"' ";
    rs=stm.executeQuery(sql1);
    %>
    <SELECT NAME='ndc'>
    <% while (rs.next())
    String val1=rs.getString("ProductCode");
    out.println ("<OPTION VALUE='" + val1 + "'>" + val1 + "</OPTION>");
    %>
    </div>i don't know wht to do...
    pls help me as soon as u can...
    Thanks & Regards
    kalai

  • Need help on Combo Box

    Hi,
    I am currently developing a application using Flex. In my
    application i am using ComboxBox but i am not able to adjust the
    spacing between the values present inside the combobox. currenlty
    when the clicks on the combo box even thought there are two values
    the height looks very big. Is there way i can control it.

    hi
    thanx to all who sees my forum.
    now i was able to create a depenent box but now i'm facing two problems
    1. when i submit the form my previous value from the combo box is not selected
    2. when i first load the page the value in the 2nd combo box doesn't has the value as null...
    my code
    function display()
      var index=document.form1.drug.value;
      document.form1.hid.value=index;
      form1.submit();
    function refresh()
       var val;
       val=document.form1.hid.value;
       drug.SelectedIndex=value;
    <div class="tr1">
    <td>Product Name</td>
    <%
    //query for selecting the values from the database
       rs=stm.executeQuery("select DrugName from ProductMaster");
    %>
    <!-- Displaying the values in the combo box -->
    <form name="form1" method="post" action="">
    <select name="drug" id="drug" onChange="display()">
    <option value="">-- select -- </option>
    <%
    while(rs.next())
    %>
    <OPTION VALUE="<%=rs.getString("DrugName")%>"><%=rs.getString("DrugName")%></OPTION>
    <%
    %>
    </select>
    <input type="hidden" name="hid">
    </div>
    </tr>
    <tr>
    <div class="td1">
    <td>NDC code #</td>
    <%
    //query for selecting the values from the database
    String sql1 = "SELECT ProductCode from ProductMaster where DrugName='"+request.getParameter("hid")+"' ";
    rs=stm.executeQuery(sql1);
    %>
    <SELECT NAME='ndc'>
    <% while (rs.next())
    String val1=rs.getString("ProductCode");
    out.println ("<OPTION VALUE='" + val1 + "'>" + val1 + "</OPTION>");
    %>
    </div>i don't know wht to do...
    pls help me as soon as u can...
    Thanks & Regards
    kalai

  • NEED HELP WITH COMBO BOX

    i am having a heck of a time writing the php and actionscript
    to get a combo box to load a list from a data base. And then once
    that list is loaded into cb_combo1 based on the users selection
    loading the appropriate list into cb_combo2 , so for example
    user is asked to select a state.
    once a state has been selected a list of schools from a
    database is loaded into the cb_combo2 based on the users selection.
    after the user selects the school , he is redirected to
    another URL.
    Let me know if anyone can help. Its for a project in school
    and i could really use the A. and the knowledge. I have been
    googleing for about 7 days now.
    Thanks all :-)
    CH

    The perfect tutorial for you:
    http://www.adobe.com/devnet/flash/articles/flash_xmlphp.html

  • Hi! I am newbie to Reports need help with check boxes

    Hi! I am newbie to Reports need help with check boxes. I am try-in to make a new check boxes that will validate in runtime. I have created two frames and one frame is dummy and other frame has big X line on it with conditions. Is this a right way to create check box! Please help thanks!

    and one frame is dummy and other frame has big X
    line on it with conditions. Is this a right way to
    create check box! Please help thanks!Instead of creating a frame for X, you can create Ractangle and place X in it. Rest is fine.

  • Help needed: triggering a combo box selection

    I'm new to creating forms in Acrobat (Acrobat 9 on Mac). I'm trying to create a form for my department where a student selects a faculty name from a combo box, and once the value is selected, another field is filled with an int value (course section number).
    Question: what is the correct trigger for executing the javascript for this? Mouse up seems to trigger too early and the others don't seem appropriate.
    I think my rudimentary JavaScript knowledge can get me far enough to check the value and the use a switch/if to prefill the int value in the other field, so the correct trigger is my current issue.
    Thanks in advance.

    I found where it's supposed to be stored, but I'm having some issues with missing ().  I'm using Acrobat X Pro for Windows Vista.  There was a post that I've spent the last 2 hours looking for that had a modified code that added in missing (), and now I can't find it   Any help would be greatly appreciated. Anyway, here's my code:
    function mater list for Alpha1()
    var oAlpha1 = {
    ACC: [
    ["-","None"], ["201",Intro to Financial Accounting], ["202",Intro to Managerial Accounting], ["-96",Selected Topics], ["-99",Directed Reading and Research]
    ANTH: [
    ["-","None"], ["151",Emerging Humanity], ["152",Culture and Humanity], ["210",Archaeology], ["215",Physical Anthropology], ["215L",Physical Anthropology Lab], ["310",Human Origins], ["313",Culture Through Film], ["321",World Archeology], ["342",Indigenous Peoples & Modernity], ["350",Pacific Islands Cultures], ["351",Culture Thought and Behavior], ["358",Myth, Symbol, and Ritual], ["362",Gender, Culture, and Society], "380",Field Archaeology], ["383",Museum Studies], ["384",Human Skeletal Biology], ["415",Human Ecological Adaptation], ["420",Culture & Communication], ["422",Magic Witchcraft & Supernatl], ["423",Social and Cultural Change], ["437",Pacific Archaeology], ["447",Polynesian Cultures], ["448",Micronesian Cultures], ["457",Okinawans Locally & Globally], ["458",Forensic Investigations], ["460",Adv Tech in Forensic Anth], ["474",Culture and Mental Illness], ["483",Archaeology of Hawaii], ["487",Philippine Culture], ["490",History & Theory Anthropology], ["495",Research Seminar], ["496",Selctd Tpcs:], ["499",Directed Reading & Research], ["296F",Intro to Field Archaeology], ["496A",Culture Through Film], ["496B",Phillipines Studies], ["496C",Museum Studies], ["496D",Okinawans Locally & Globally], ["496E",Pacific Island Cultures]
    APSC: [
    ["-","None"], ["486",Senior Project-Applied Sci], ["490",Senior Practicum], ["486C",Senior Project-CENT], ["486I",Senior Project-IT], ["486M",Senior Project-CULM], ["486R",Senior Project-RESP], ["490C",Admin Practicum-CENT], ["490I",Admin Practicum-IT], ["490M",Admin Practicum-CULM], ["490R",Admin Practicum-RESP]
    ASTR: [
    ["-","None"], ["110",Survey of Astronomy]
    It goes on like this through all our subjects.  I then modified the next bits of code in thomp's doc to reflect what I need to be pulled and populated:
    var nACCItems=oAlpha1["ACC"];
        var n201Title=ACCItems[1]; var n202Title=ACCItems[1]; var n-96Title=ACCItems[1]; var n-99Title=ACCItems[1];
    var nANTHItems=oAlpha1["ANTH"];
        var n151Title=ANTHItems[1]; var n152Title=ANTHItems[1]; var n210Title=ANTHItems[1]; var n215Title=ANTHItems[1]; var n215LTitle=ANTHItems[1]; var n310Title=ANTHItems[1]; var n313Title=ANTHItems[1]; var n321Title=ANTHItems[1]; var n342Title=ANTHItems[1]; var n350Title=ANTHItems[1]; var     n351Title=ANTHItems[1]; var n358Title=ANTHItems[1]; var n362Title=ANTHItems[1]; var n380Title=ANTHItems[1]; var n383Title=ANTHItems[1]; var n384Title=ANTHItems[1]; var n415Title=ANTHItems[1]; var n420Title=ANTHItems[1]; var n422Title=ANTHItems[1]; var n423Title=ANTHItems[1]; var n437Title=ANTHItems[1]; var n447Title=ANTHItems[1]; var n448Title=ANTHItems[1]; var n457Title=ANTHItems[1]; var n458Title=ANTHItems[1]; var n460Title=ANTHItems[1]; var n474Title=ANTHItems[1]; var n483Title=ANTHItems[1]; var n487Title=ANTHItems[1]; var n490Title=ANTHItems[1]; var n495Title=ANTHItems[1]; var n496Title=ANTHItems[1]; var n499Title=ANTHItems[1]; var n296FTitle=ANTHItems[1]; var n496ATitle=ANTHItems[1]; varn496BTitle=ANTHItems[1]; var n496CTitle=ANTHItems[1]; var n496DTitle=ANTHItems[1]; var n496ETitle=ANTHItems[1];
    var nAPSCItems=oAlpha1["APSC"];
    through all our subjects.  Do I need to leave the lists of var nSUBJItems and var nNUMTitle separate, or is the way I have them (subject followed by titles in each subject) okay?
    Then, I made the keystroke codes.  Do they go in the Document level as well, or do they go in the keystroke event or both?  Right now, I just have them as a doc level code because I can't save the document level code without fixing the () error.  I'd just like to know ahead of time.
    Number Keystroke Event
    function SetNumberEntries()
    if(event.willCommit)
    // Get the numbers list from the Master List
    // Since the selection is being committed,
    // event.value contains the Alpha1 name
    var lst = oAlpha1[event.value];
    // Clear the Number list if there are no numbers for the selected alpha
    if( (lst != null) && (lst.length > 0) )
    this.getField("NumberSelect").setItems(lst);
    else
    this.getField("NumberSelect").clearItems();
    // We have a new number list and the first entry is
    // is a non-selection, so clear the title field.
    this.getField("Title").value = 0;
    Uncommitted Keystroke Event
    function SetTitleValue()
    // In order to get easy access to the export value, i.e. Title. This
    // function needs to be run on the un-committed change event.
    // This field is set up for Commit on select so we know the value
    // will be committed anyway.
    if(!event.willCommit)
    // If the export value is Not written then
    // set the title to --.
    var nSelExp = --;
    if(!isNaN(event.changeEx))
    nSelExp = event.changeEx
    this.getField("Title").value = nSelExp;

  • Combo Box Valid Values Update

    Hi All,
    I'm developing a Form which has BP Code and a ComboBox which, after entering a valid Supplier in the BPCode EditText, updates the ComboBox with the Supplier Catalog Numbers of all the Items where the CardCode (in OITM) matches the BPCode.  I have this working for the first change of BPCode but when the BPCode changes I want to update the ComboBox ValidValues.  I have tried many methods but cannot remove the ValidValues which are already there.  I have tried linking the ComboBox to a DataTable, clearing the DataTable and rebinding but this doesn't seem to work either.
    Any help on removing ValidValues from a list when I don't know what is already there (as the VV list is now out of scope) or adding a data bound ComboBox would be most appreciated.
    Thanks in anticipation,
    David

    Hi David,
    Try following
            'get the reference to the state combo box
            oCombo = oForm.Items.Item("combo box unique id").Specific
            'remove existing items if any
            'before adding new items
            For Flag = 0 To oCombo.ValidValues.Count - 1
                oCombo.ValidValues.Remove(0, SAPbouiCOM.BoSearchKey.psk_Index)
            Next
    After this, use a recordset or datatable to retrieve the records, and than a loop to add valid values to the combo box.
    Rahul

  • Combo box validation

    Hi all
    I am new to jsp and servlet I have a requirement , in a combo box I don't want to select the default value like
    select I want a client side validation for this.

    I don't fully understand you. Are you talking about JSF? The h:selectOneMenu and h:selectManyMenu both just defaults to an empty item. Clientside validation can only be done with Javascript.

  • Help with combo boxes

    I am currently building a site with flash / dreamweaver and
    am attempting to add two or three combo boxe that will display data
    and pictures from a database. Any ideas or assistance would be much
    appreciated...
    Many thanks in advance

    Sunil,
    I'm attempting to use the data binding technique but I'm perhaps not understanding exactly where this should go.  For now I'm fine with having a static array that just lives locally on the page.   Each of my combo boxes are being populated using the
         mx:Array --> mx:Object logic. 
    I need to fire off an event to a function that is able to determine which selection(s) from the combination of the two combo boxes were chooses.  I'm accomplishing that by using selectedIndex property of the combo boxes id.  I then have 'n' number of unique Array Collections that are basically a three dimensional array containing the numeric percentage that I need to display graphically.  I need my function to be able to choose the appropriate Collection based on the combination of selected index(es) and then update my column chart accordingly. 
    My other confusion is how to do use my data binding at the chart level.  So my page is really nothing more than two combo boxes and chart that I need to change dynamically as the selections in the combo boxes changes.  Eventually I will use a webservice to connect to a .jsp page that is using DAO to retrieve the values from the database but right now I'm fine with fetching them locally just so I'll know I'm on the right track. 
    If it would help I can include the snippet of the code that I'm working on.
    Thanks for your help
    -->Nash

  • Need help going to error page from jsf component value change event

    Afternoon all,
    I have a jsp page which uses jsf components and when one of the jsf combo boxes components handles an value change event, the method 'handleTestComboValueChange' is fired.
    Within this method if an error is caught I would like to display an error page instead of the currently displayed page.
    Can some one tell me how to do this. I tried to use getFacesContext().getExternalContext().redirect("errorpage.jsp"); but I just got an illegalStackException error.
    Any help would be great.
    Thanks in advance,
    Lex

    log output listed below...
    [14/04/06 14:52:48:781 BST] 6b0ec4d8 ProcessValida E com.sun.faces.lifecycle.ProcessValidationsPhase com.sp.exceptions.ServicePackagesException: My custom error message
    [14/04/06 14:52:48:812 BST] 6b0ec4d8 ProcessValida E com.sun.faces.lifecycle.ProcessValidationsPhase TRAS0014I: The following exception was logged javax.faces.el.EvaluationException: com.sp.exceptions.ServicePackagesException: My custom error message
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at javax.faces.component.UIInput.broadcast(UIInput.java:492)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:252)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:346)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at com.ibm.faces.webapp.FacesGenericPortlet.execute(FacesGenericPortlet.java:637)
         at com.ibm.faces.webapp.FacesGenericPortlet.processAction(FacesGenericPortlet.java:142)
         at com.scottishpower.portlet.GoldenAccountPortlet.processAction(GoldenAccountPortlet.java:143)
         at com.ibm.wps.pe.pc.std.cmpf.impl.PortletFilterChainImpl.processAction(PortletFilterChainImpl.java:104)
         at com.ibm.wps.propertybroker.standard.filter.PropertyBrokerActionFilter.processAction(PropertyBrokerActionFilter.java:260)
         at com.ibm.wps.pe.pc.std.cmpf.impl.PortletFilterChainImpl.processAction(PortletFilterChainImpl.java:95)
         at com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.dispatch(PortletServlet.java:148)
         at com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.doPost(PortletServlet.java:76)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at com.ibm.wps.pe.pc.std.cache.CacheablePortlet.service(CacheablePortlet.java:257)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1095)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:254)
         at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:204)
         at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:168)
         at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.action(PortletInvokerImpl.java:82)
         at com.ibm.wps.pe.pc.std.event.ActionEvent.execute(ActionEvent.java:111)
         at com.ibm.wps.pe.pc.std.event.EventQueueManager.processEventLoop(EventQueueManager.java:86)
         at com.ibm.wps.pe.pc.std.PortletContainerImpl.performEvents(PortletContainerImpl.java:168)
         at com.ibm.wps.pe.pc.PortletContainerImpl.performEvents(PortletContainerImpl.java:229)
         at com.ibm.wps.engine.phases.WPActionPhase.processPortlets(WPActionPhase.java:947)
         at com.ibm.wps.engine.phases.WPActionPhase.execute(WPActionPhase.java:489)
         at com.ibm.wps.state.phases.AbstractActionPhase.next(AbstractActionPhase.java:130)
         at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:710)
         at com.ibm.wps.engine.Servlet.doGet(Servlet.java:562)
         at com.ibm.wps.engine.Servlet.doPost(Servlet.java:736)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
         at com.ibm.wps.state.filter.StateCleanup.doFilter(StateCleanup.java:86)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:258)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1086)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:201)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:286)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    Caused by: com.sp.exceptions.ServicePackagesException: My custom error message
         at pagecode.fragments.GSolus.getTariffsByRef(GSolus.java:297)
         at pagecode.fragments.GSolus.handleServicePackageComboValueChange(GSolus.java:214)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
         at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         ... 68 more
    javax.faces.el.EvaluationException: com.sp.exceptions.ServicePackagesException: My custome error message
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at javax.faces.component.UIInput.broadcast(UIInput.java:492)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:252)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:346)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at com.ibm.faces.webapp.FacesGenericPortlet.execute(FacesGenericPortlet.java:637)
         at com.ibm.faces.webapp.FacesGenericPortlet.processAction(FacesGenericPortlet.java:142)
         at com.sp.portlet.GoldenAccountPortlet.processAction(GoldenAccountPortlet.java:143)
         at com.ibm.wps.pe.pc.std.cmpf.impl.PortletFilterChainImpl.processAction(PortletFilterChainImpl.java:104)
         at com.ibm.wps.propertybroker.standard.filter.PropertyBrokerActionFilter.processAction(PropertyBrokerActionFilter.java:260)
         at com.ibm.wps.pe.pc.std.cmpf.impl.PortletFilterChainImpl.processAction(PortletFilterChainImpl.java:95)
         at com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.dispatch(PortletServlet.java:148)
         at com.ibm.wps.pe.pc.std.invoker.impl.PortletServlet.doPost(PortletServlet.java:76)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at com.ibm.wps.pe.pc.std.cache.CacheablePortlet.service(CacheablePortlet.java:257)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1095)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:254)
         at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:204)
         at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:168)
         at com.ibm.wps.pe.pc.std.invoker.impl.PortletInvokerImpl.action(PortletInvokerImpl.java:82)
         at com.ibm.wps.pe.pc.std.event.ActionEvent.execute(ActionEvent.java:111)
         at com.ibm.wps.pe.pc.std.event.EventQueueManager.processEventLoop(EventQueueManager.java:86)
         at com.ibm.wps.pe.pc.std.PortletContainerImpl.performEvents(PortletContainerImpl.java:168)
         at com.ibm.wps.pe.pc.PortletContainerImpl.performEvents(PortletContainerImpl.java:229)
         at com.ibm.wps.engine.phases.WPActionPhase.processPortlets(WPActionPhase.java:947)
         at com.ibm.wps.engine.phases.WPActionPhase.execute(WPActionPhase.java:489)
         at com.ibm.wps.state.phases.AbstractActionPhase.next(AbstractActionPhase.java:130)
         at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:710)
         at com.ibm.wps.engine.Servlet.doGet(Servlet.java:562)
         at com.ibm.wps.engine.Servlet.doPost(Servlet.java:736)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
         at com.ibm.wps.state.filter.StateCleanup.doFilter(StateCleanup.java:86)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:258)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1086)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code))
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:201)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:286)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    Caused by: com.sp.exceptions.ServicePackagesException: My custome error message
         at pagecode.fragments.GSolus.getTariffsByRef(GSolus.java:297)
         at pagecode.fragments.GSolus.handleServicePackageComboValueChange(GSolus.java:214)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
         at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         ... 68 more

  • Help with Combo Box Component

    I am creating an application with comboboxes and using action
    script to load them. I can figure out how to change text color of
    the choices in the combo box, but can anyone tell if it is possible
    to make the text choices appear as different colors. For instance
    if I wanted all of the choices to be black text, but for the third
    choice down to appear red.
    Thanks for the help.

    You can set the backgroubd color if that helps.
    To set the second item to have a red background, attach this
    to the combobox:
    on(open){
    dropdown.setPropertiesAt(1,{backgroundColor:0xFF0000})
    }

  • Need Help: Use Combox Box + List Builder + Column chart!

    Hi experts,
    I'm a novice in Xcelsius but i met some problems in encountering it, therefore, i would like to seek some assistance from the experts, Thanks!
    These are my data for F1 race. And I have 10 years data and below is an example of my data. I would be using 2 years data as an example first.
    Year     Country      Driver     Point     Laps     Time/Retired     No.of Driver     Position
    2009     Australia     Jenson Button     10     58     1:34:15.784     22     1
    2009     Australia     Rubens Barrichello     8     58     +0.8s     23     2
    2009     Australia     Jarno Trulli     6     58     +1.6s     9     3
    2009     Australia     Timo Glock     5     58     +4.4s     10     4
    2009     Australia     Fernando Alonso     4     58     +4.8s     7     5
    2009     Malaysia     Jenson Button     5     31     55:30.622     22     1
    2009     Malaysia     Nick Heidfeld     4     31     +22.7s     6     2
    2009     Malaysia     Timo Glock     3     31     +23.5s     10     3
    2009     Malaysia     Jarno Trulli     2.5     31     +46.1s     9     4
    2009     Malaysia     Rubens Barrichello     2     31     +47.3s     23     5
    2009     China     Sebastian Vettel     10     56     1:57:43.485     15     1
    2009     China     Mark Webber     8     56     +10.9s     14     2
    2009     China     Jenson Button     6     56     +44.9s     22     3
    2009     China     Rubens Barrichello     5     56     +63.7s     23     4
    2009     China     Heikki Kovalainen     4     56     +65.1s     2     5
    2009     Bahrain      Jenson Button     10     57     1:31:48.182     22     1
    2009     Bahrain      Sebastian Vettel     8     57     +7.1s     15     2
    2009     Bahrain      Jarno Trulli     6     57     +9.1s     9     3
    2009     Bahrain      Lewis Hamilton     5     57     +22.0s     1     4
    2009     Bahrain      Rubens Barrichello     4     57     +37.7s     23     5
    2009     Spain     Jenson Button     10     66     1:37:19.202     22     1
    2009     Spain     Rubens Barrichello     8     66     +13.0s     23     2
    2009     Spain     Mark Webber     6     66     +13.9s     14     3
    2009     Spain     Sebastian Vettel     5     66     +18.9s     15     4
    2009     Spain     Fernando Alonso     4     66     +43.1s     7     5
    2009     Monaco     Jenson Button     10     78     1:40:44.282     22     1
    2009     Monaco     Rubens Barrichello     8     78     +7.6s     23     2
    2009     Monaco     Kimi Raikkonen     6     78     +13.4s     4     3
    2009     Monaco     Felipe Massa     5     78     +15.1s     3     4
    2009     Monaco     Mark Webber     4     78     +15.7s     14     5
    2009     Turkey     Jenson Button     10     58     1:26:24:848     22     1
    2009     Turkey     Mark Webber     8     58     +6.7s     14     2
    2009     Turkey     Sebastian Vettel     6     58     +7.4s     15     3
    2009     Turkey     Jarno Trulli     5     58     +27.8s     9     4
    2009     Turkey     Nico Rosberg     4     58     +31.5s     16     5
    2010     Bahrain      Fernando Alonso     25     49     1:39:20.396     8     1
    2010     Bahrain      Felipe Massa     18     49     +16.0s     7     2
    2010     Bahrain      Lewis Hamilton     15     49     +23.1s     2     3
    2010     Bahrain      Sebastian Vettel     12     49     +38.7s     5     4
    2010     Bahrain      Nico Rosberg     10     49     +40.2s     4     5
    2010     Australia     Jenson Button     25     58     1:33:36.531     1     1
    2010     Australia     Robert Kubica     18     58     +12.0s     11     2
    2010     Australia     Felipe Massa     15     58     +14.4s     7     3
    2010     Australia     Fernando Alonso     12     58     +16.3s     8     4
    2010     Australia     Nico Rosberg     10     58     +16.6s     4     5
    2010     Malaysia     Sebastian Vettel     25     56     1:33:48.412     5     1
    2010     Malaysia     Mark Webber     18     56     +4.8s     6     2
    2010     Malaysia     Nico Rosberg     15     56     +13.5s     4     3
    2010     Malaysia     Robert Kubica     12     56     +18.5s     11     4
    2010     Malaysia     Adrian Sutil     10     56     +21.0s     14     5
    2010     China     Jenson Button     25     56     1:46:42.163     1     1
    2010     China     Lewis Hamilton     18     56     +1.5s     2     2
    2010     China     Nico Rosberg     15     56     +9.4s     4     3
    2010     China     Fernando Alonso     12     56     +11.8s     8     4
    2010     China     Robert Kubica     10     56     +22.2s     11     5
    2010     Spain     Mark Webber     25     66     1:35:44.101     6     1
    2010     Spain     Fernando Alonso     18     66     +24.0s     8     2
    2010     Spain     Sebastian Vettel     15     66     +51.3s     5     3
    2010     Spain     Michael Schumacher     12     66     +62.1s     3     4
    2010     Spain     Jenson Button     10     66     +63.7s     1     5
    2010     Monaco     Mark Webber     25     78     1:50:13.355     6     1
    2010     Monaco     Sebastian Vettel     18     78     +0.4s     5     2
    2010     Monaco     Robert Kubica     15     78     +1.6s     11     3
    2010     Monaco     Felipe Massa     12     78     +2.6s     7     4
    2010     Monaco     Lewis Hamilton     10     78     +4.3s     2     5
    2010     Turkey     Lewis Hamilton     25     58     1:28:47.620     2     1
    2010     Turkey     Jenson Button     18     58     +2.6s     1     2
    2010     Turkey     Mark Webber     15     58     +24.2s     6     3
    2010     Turkey     Michael Schumacher     12     58     +31.1s     3     4
    2010     Turkey     Nico Rosberg     10     58     +32.2s     4     5
    2010     Canada     Lewis Hamilton     25     70     1:33:53.456     2     1
    2010     Canada     Jenson Button     18     70     +2.2s     1     2
    2010     Canada     Fernando Alonso     15     70     +9.2s     8     3
    2010     Canada     Sebastian Vettel     12     70     +37.8s     5     4
    2010     Canada     Mark Webber     10     70     +39.2s     6     5
    2010     Europe     Sebastian Vettel     25     57     1:40:29.571     5     1
    2010     Europe     Lewis Hamilton     18     57     +5.0s     2     2
    2010     Europe     Jenson Button     15     57     +12.6s     1     3
    2010     Europe     Rubens Barrichello     12     57     +25.6s     9     4
    2010     Europe     Robert Kubica     10     57     +27.1s     11     5
    Basically, my requirement is to have year 2009 and 2011 in my component "Combo Box" and when user choose Year 2010, the source data under the component "List builder" shows the FILTERED countries (since i have duplicated countries here) under year 2010 only.
    So user can choose the correct countries and view the details of the countries that he/she choose for year 2010 at the column chart.
    Pls feel free to clear your doubts if any.
    Your assistance will be appreciated!!
    Thanks alot!
    Best regards,
    htoh

    Hi Sanjay,
    Appreciate your quick response.
    However this is what i've set for my combo box and list builder:
    Combo box:
    Insertion Type: Filtered rows
    Source data: Column A & B (Year,Country)
    Destination: Some empty cells
    List builder:
    Insertion type: Row (I can't find Filtered rows as an option)
    Source data: From the empty cells i mentioned above ***
    Destination: Another Empty cells.
    Is there anything wrong with my settings? Pls help, thanks a lot!
    Best regards,
    htoh

  • Need help with simple XML validation

    I am new to Spry and need some help creating a simple
    validation. There is a form field which must not contain a value
    already in the database. I have a script which accepts a parameter
    and returns a boolean result. Here is the XML:
    <samples>
    <sample>
    <ISFOUND>0</ISFOUND>
    </sample>
    </samples>
    1. How do I call this script when the form field changes and
    pass the form value as the parameter?
    2. How do I check the returned value in the XML and throw an
    error if true?
    I appreciate any help with this. Please let me know if there
    is a better way to achieve the same result.
    Thanks,
    Rich

    I enabled the call to the XML response. However, I am having
    trouble identifying when the call is complete so I can parse the
    result. How do I run my check after the data load and display the
    proper message?

  • Help regarding Combo Box

    Hi,
    I am trying to create a combo Box at run time.Can anybody tell me how do I get the value the user has selected and then assign it to a EditText. I am doing the coding in C#.
    Thanks
    Nirmala B.

    Something like that ?
      oNewItem = oForm.Items.Item("12"); // get my combobox in oNewItem
      oCombo = (SAPbouiCOM.ComboBox)oNewItem.Specific; // get the combobox
      string qry = oCombo.Selected.Description; //get the selected description in qry
    Hth
    Quentin

Maybe you are looking for

  • MSSQL - Backup to external hard drive failed

    Hi gurus, I am tryin to backup a database using MSSQL2005 Studio to an external hard drive. but i couldn't execute the backup to my external hard drive which is USB. I've checked the error log file in MSsql . I have pasted the following error message

  • Add a link to a button

    Hi Guys, I am having problems trying to add a link to a button and it doesn't work. I converted a graphic to button and added the link to the button and when I tested the page show up as a blank page. Please help..I haven't touched Flash like 10 year

  • Flash the system message every time when user login

    Hi all, My requirment is to diaplay the system message when user login for the maintenance purpose, In SM02 i created a message but it is not working for evary time login, It is displaying only  one time, suppose i logoff and again loging message is

  • When i update my facebook status using macbook air. It should say "updated via Apple Macbook Air". How is it possible?

    When i update my facebook status using macbook air. It should say "updated via Apple Macbook Air". How is it possible?

  • Fade Files???

    My fade files are working correctly for like ten minutes each - then they act if they were not there - then I'll have to enter the audio window and hit - Delete FAde files - then Every thing is back to normal Another Joke implemented ???