• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

i am facing some problem with <h:selectOneMenu>

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


 
reply
    Bookmark Topic Watch Topic
  • New Topic