Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Posts
    1
    Rep Power
    0

    Default i am facing some problem with <h:selectOneMenu> default One

    Hi Guys,

    I am facing some problem with <h:selectOneMenu>

    <h:selectOneMenu id="country" value="#{newMemberBean.selectedCountry}" required="true">
    <f:selectItem itemLabel="Please Select One" itemvalue="" />
    <f:selectItem itemLabel="USA" itemvalue="usa" />
    <f:selectItem itemLabel="MEXICO" itemvalue="mexico" />
    </h:selectOneMenu>

    <h:inputText id="mobilePhoneNumber" value="#{newMemberBean.mobileNumber}" required="true">

    <h:commandButton id="next" action="#{newMemberBean.next}">
    <f:param name="stepNumber" value="1"/>
    </h:commandButton>

    1. Click on Command button Without selecting any fileds validations messages are coming.
    2. When i select USA in selectOneMenu and click on command button mobilePhoneNumber is required message is comming.
    3. When i select on Please Select One in selectOneMenu and click on command button validation message is not comming and old value (USA) is redirect in selectOneMenu.

    Any idea on these issue ..............? please help me....................


    Regards,
    Sridhar Avulapati

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

Similar Threads

  1. Facing this error..How to resolve??
    By vishalsnc in forum Java Applets
    Replies: 0
    Last Post: 08-14-2009, 12:58 PM
  2. Facing problem while sending e-mail
    By jay8186 in forum Java Servlet
    Replies: 1
    Last Post: 03-25-2009, 08:34 AM
  3. Replies: 1
    Last Post: 03-10-2009, 02:12 PM
  4. newbie facing java errors
    By T2ml in forum New To Java
    Replies: 2
    Last Post: 11-29-2008, 07:08 AM
  5. HelpNeeded!!!Facing Problems in a Project
    By goodwillwins in forum AWT / Swing
    Replies: 2
    Last Post: 08-08-2008, 07:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •