The itemValue of the selectOneMenu Do Not Show Up in Browser

I am creating a dropdown menu and users can make only one selection from the menu. I do not have compilation problem. And I am able to see a drop-down in the browser window. Except that when I click on the downward arrow of the dropdown, I see a "blank". All the itemValue that I hard coded in my JSP in the menu do not show up. What was my problem?
My JSP:
<af:form>
     <h:selectOneMenu value="#{eaGenerateWordDocHandler.supportingLevel}" style="width:50px">
          <f:selectItem itemValue="0"/>
          <f:selectItem itemValue="1"/>
          <f:selectItem itemValue="2"/>
          <f:selectItem itemValue="3"/>
          <f:selectItem itemValue="4"/>               
     </h:selectOneMenu>
</af:form>
.......EaGenerateWordDocHandler.java has the getter and the setter:
     String supportingLevel     = null;
     int level = 0;
     public int getSupportingLevel() {
          String tmpSupportingLevel = getRequest().getParameter("supportingLevel");
          if ( tmpSupportingLevel != null && !tmpSupportingLevel.equals("")){
             level = Integer.parseInt( tmpSupportingLevel );
          }else{
               level = 0;
          return level;
     public void setSupportingLevel(String supportingLevel) {
          this.supportingLevel = supportingLevel;
     }faces-config.xml:
<managed-bean>
     <managed-bean-name>eaGenerateWordDocHandler</managed-bean-name>
        <managed-bean-class>CompanyName.webapp.action.EaGenerateWordDocHandler</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
</managed-bean>
...

Can you try adding itemLabel attribute to f:selectItem.
<f:selectItem itemValue="0" itemLabel="0"/>

Similar Messages

Maybe you are looking for

  • What is the latest version of Firefox compatible with a MacBook Pro with 2.33 GHz Intel Core 2 Duo running OSX 10.5.8?

    I keep getting told my browser needs updating and it doesn't work right on some websites. I have had unhappy experiences in the past trying to update Apple OS and Firefox due to compatibility issues. I suppose I could switch to Safari but I have been

  • File locked message when saving a file with Photoshop

    We've been seeing a problem with several users that is hard to reproduce. Every once in a while when they try to save a file in Photoshop on the server they get a dialogue saying 'the file is locked, use Finder info to unlock the file'. This file is

  • How Do I Share Music From My Mac to My Android Cellphone

    Got an Android LG Volt cell, anyone know how I can share music from my Mac to it? Every time I connect the phone by USB cable, it charges it, but the phone never shows up on the desktop or in finder. I can't figure out how to give it some music. Even

  • Billing without Sales Order

    Hello All, I would like to know, Is it possible to generate a billing document from the system without a sales order or a delivery. If so how can i do that because my client wants to be able to generate an invoice for their customer without having a

  • Return value of request.getParameter()

    Is the value returned by request.getParameter() always decoded? I tested with Tomcat on Firefox/IE and it looks like the answer is yes, although I don't find any relevant information in the Servlet API doc. So no need to use URLDecode to decode param