This content has been marked as final.
Show 5 replies
-
1. Re: checkboxes inside a clickable data table
asookazian Sep 26, 2007 7:38 PM (in response to asookazian)or how bout drop-downs? does dataTable, or similar, support this inside as well?
-
2. Re: checkboxes inside a clickable data table
shakenbrain Sep 26, 2007 7:43 PM (in response to asookazian)I didn't use check boxes, but I don't see why that wouldn't work. I used a clickable image instead:
<rich:column style="text-align: center"> <f:facet name="header"> <a:commandLink styleClass="headerLink" value="Active" actionListener="#{organizationFinder.sort}" reRender="organizationPanel"> <f:attribute name="sortColumn" value="active"/> </a:commandLink> </f:facet> <a:commandLink action="#{organizationFinder.toggleActive(o)}" reRender="organizations"> <s:fragment rendered="#{o.active}"> <h:graphicImage value="/img/active.gif" border="0"/> </s:fragment> <s:fragment rendered="#{!o.active}"> <h:graphicImage value="/img/inactive.gif" border="0"/> </s:fragment> </a:commandLink> </rich:column>
@Begin @End public void toggleActive(Organization selectedOrganization) { Organization organization = entityManager.find(Organization.class, selectedOrganization.getId()); organization.setActive(!organization.isActive()); findOrganizations(); }
-
3. Re: checkboxes inside a clickable data table
asookazian Sep 26, 2007 7:49 PM (in response to asookazian)ok, I just hadn't seen an example of this yet. Is there one in the examples in seam distribution? thx for the reply.
-
4. Re: checkboxes inside a clickable data table
shakenbrain Sep 26, 2007 8:35 PM (in response to asookazian)I'm not sure if there's an example or not. I forgot to mention though that drop-downs do work inside data tables.
-
5. Re: checkboxes inside a clickable data table
pmuir Sep 27, 2007 7:18 PM (in response to asookazian)Yes, this works just fine in JSF with h:selectOneBoolean and h:dataTable