• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in JSF

 
Viswanath Sriram
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't have a valuebinding in the h:selectManyCheckbox ..

JSF

MyBean
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic