Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why is dropdown menu being validated?

 
Tammy Easterby
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone have an idea why a select one menu would ever be validated? And how do you get around the validation? Or better yet - what would be failing? It's string key, string value. I don't get it. Please help.
 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tammy Easterby:
Does anyone have an idea why a select one menu would ever be validated? And how do you get around the validation? Or better yet - what would be failing? It's string key, string value. I don't get it. Please help.



I wrote a page that contains a selectone menu, maybe you compare it with yours to see what you are missing

<f:loadBundle var="msgs" basename="com.abbey.dodo"/>
<br><br><br><br><br><br>

<h:form>
<h:panelGrid columns="2">
<hutputLabel value="#{msgs.name}"></hutputLabel>
<h:inputText></h:inputText>
<hutputLabel value="#{msgs.password}"></hutputLabel>
<h:inputSecret></h:inputSecret>

<h:selectOneMenu>
<f:selectItem itemLabel="Name" itemValue="Jubril" itemDisabled="false" />
<f:selectItem itemLabel="toyin" itemValue="toyin" itemDisabled="false" />

</h:selectOneMenu>
<h:inputHidden id="dodo"></h:inputHidden>
<h:commandButton value="#{msgs.submit}" action="success"></h:commandButton>
<h:commandButton value="#{msgs.cancel}"></h:commandButton>
</h:panelGrid>
</h:form>


</f:view>
 
Tammy Easterby
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Abiodun, thanks for responding.
I see you are using itemDisabled. I don't understand its use. What is it for?
 
Tammy Easterby
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried itemDisabled="false", and I still get the error.

Does anyone else know how to fix?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic