This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes why is dropdown menu being validated? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "why is dropdown menu being validated?" Watch "why is dropdown menu being validated?" New topic
Author

why is dropdown menu being validated?

Tammy Easterby
Greenhorn

Joined: Jan 31, 2007
Posts: 28
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

Joined: Jan 17, 2002
Posts: 495
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

Joined: Jan 31, 2007
Posts: 28
Hello Abiodun, thanks for responding.
I see you are using itemDisabled. I don't understand its use. What is it for?
Tammy Easterby
Greenhorn

Joined: Jan 31, 2007
Posts: 28
I tried itemDisabled="false", and I still get the error.

Does anyone else know how to fix?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why is dropdown menu being validated?
 
Similar Threads
link css style sheet
Hibernate WSAD configuration problem
Renaming tree node with JPopupMenu
float z-index of a menu
Getting an InterruptedException after closing Frame