[jboss-user] [JBoss Seam] - Re: checkboxes inside a clickable data table
shakenbrain
do-not-reply at jboss.com
Wed Sep 26 19:43:52 EDT 2007
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();
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089115#4089115
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089115
More information about the jboss-user
mailing list