Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
JSF
h:selectManyCheckbox reRender rich:dataTable
ya ji
Ranch Hand
Posts: 40
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I want to reRender a dataTable when select one or many selectManyCheckbox, my code as below, currently when I select a checkbox, nothing happened, who can help me to solve this problem,thanks in advance.
<h:selectManyCheckbox id="pTypes" value="#{RoleBean.permissionType}" valueChangeListener="#{RoleBean.changePType}"> <f:selectItem itemLabel="Service Based Type" itemValue="1" /> <f:selectItem itemLabel="OrganizationType" itemValue="2" /> <f:selectItem itemLabel="ConfigurationItemType" itemValue="3" /> <a4j:support event="onclick" reRender="permission_panel" limitToList="true"></a4j:support> </h:selectManyCheckbox> <a4j:outputPanel id="permission_panel"> <rich:dataTable id="permission_list_table" styleClass="userTable" rowClasses="userTableRow,userTableRowAlt" headerClass="userTableHeader" columnClasses="userTableColumn" value="#{RoleBean.permissionValues}" var="permission"> <rich:columnGroup> <rich:column> <f:facet name="header"> </f:facet> <h:selectBooleanCheckbox label="Permissions" required="true" id="permissions" value="#{RoleBean.pSelection[permission]}" ></h:selectBooleanCheckbox> </rich:column> <rich:column> <f:facet name="header">Name</f:facet> <h:outputText value="#{permission.name}"/> </rich:column> </rich:columnGroup> </rich:dataTable> </a4j:outputPanel>
ya ji
Ranch Hand
Posts: 40
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
the error message is:
Conversion Error setting value '2' for '#{RoleBean.permissionType}'.
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
I need help with ajaxSingle, reRender and immediate.
Nested panels not rendering, using a4j:support
Simple expandable table with RichFaces
Data from search not being dynamically added to rich:dataTable
Rich:Datatable rerendering problem
More...