aspose file tools
The moose likes JSF and the fly likes selectManyCheckbox: I can't visualize pre selected checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "selectManyCheckbox: I can Watch "selectManyCheckbox: I can New topic
Author

selectManyCheckbox: I can't visualize pre selected checkbox

Claudio Pioggia
Greenhorn

Joined: Mar 21, 2011
Posts: 1
Hi, I've a problem with the tag selectManyCheckbox in a JBoss Seam's context, this is my code:

<autputPanel id="ins_groups_panel">
<h:selectManyCheckbox id="groups" value="#{controller.page.groups}" layout="pageDirection" size="1" onclick="selectAllGroups(this);">
<f:selectItems value="#{controller.page.checkboxesGroups}" />

</h:selectManyCheckbox>
</autputPanel>

When I click this button, my action fill the list related to the selectManyCheckbox with the the values that must be pre-selected.

<a:commandButton id="editPeriod"
styleClass="rounded {transparent}"
action="#{controller.doEdit}"
reRender="confPeriodForm,panelInsertPeriods,ins_groups_panel"
onclick="if(false) {return false;}"
image="/images/database_edit.png" >
<a:actionparam name="idPeriod" value="#{periods.code}" assignTo="{controller.page.idPeriodToEdit}" />

</a:commandButton>





The selected checkbox setted in the server side application remain unchecked, the field groups is implemented with an ArrayList<String> in the page. If I print that list in the page I can see it correctly valued, so, I think the server side is correct. Someone can help me? (Sorry for my English)


 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: selectManyCheckbox: I can't visualize pre selected checkbox
 
Similar Threads
NullPointerException in selectManyCheckbox
can't get selectManyCheckbox values
selectManyCheckbox in dataTable returns only the last selected item rather the whole list.
SelectManyCheckBox -- Help Needed
selectManyCheckbox