This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes problem in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "problem in JSF" Watch "problem in JSF" New topic
Author

problem in JSF

Viswanath Sriram
Greenhorn

Joined: Jul 20, 2006
Posts: 12
<f:view>
<f:subview id="Locationview">
<h:form id="form1">
<h:dataTable id="table1" value="#{locForm.allLocation}">

<h:column>
<h:selectManyCheckbox id="locationId">
<f:selectItem itemValue="#{locForm.locationId}"/>
</h:selectManyCheckbox>
</h:column>

</h:dataTable>
<h:messages/>
<h:commandButton value="InActive" action="#{locForm.inactivateloc}" />
</h:form>
</f:subview>
</body>
</f:view>

Here when i am not selecting any of the rows and click inactive button it is calling the backing bean method.But if i select any of the row it is displaying the (validation error:value is not valid) and it is not calling the backing bean method.


what is the problem i am not understanding?can any body help me
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
You don't have a valuebinding in the h:selectManyCheckbox ..

JSF

MyBean
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in JSF
 
It's not a secret anymore!