0 Replies Latest reply on Apr 5, 2008 10:18 AM by roy kachouh

    RichDataList with checkboxes

    roy kachouh Newbie

      Hi I can't seem to get this to work...I want to have a data list, with each row having a check box. I finally got the checkbox to appear in each row, but I am having trouble aligning the checkbox. No matter what I do, the alignment is not in the column I want it to be.

      I had to resort to having the <h:manySelectCheckbox> nested inside the data list, didn't think that was necessary, but it was the only way my checkbox would appear....This seems to be a very simple task, one that would be required by many applications...why am I having such difficulty??

      Here is my code...


       <rich:panel>
      
       <h:selectManyCheckbox value="#{ListFinder.selectedList}">
      
       <table cellpadding="1" cellspacing="3" border="0">
       <tr>
      
       <td> <f:selectItem value="#{account.defaultSelectItem}"/>
       <h:graphicImage value="#{account.profile.defaultSmallPhoto}"/>
       </td>
       <td valign="top">
       <table cellpadding="1" cellspacing="3" border="0">
       <tr>
       <td><h:outputText styleClass="Subheader4" value="#{account.fullName}"/> </td>
       </tr>
       <tr>
       <td><h:outputText styleClass="smallLink" value="#{account.emailAddress}"/> </td>
       </tr>
       <tr>
       <td><h:outputText styleClass="smallLink" value="#{account.profile.basicInfo}"/> </td>
       </tr>
       </table>
       </td>
       <td valign="top">
       <table cellpadding="1" cellspacing="3" border="0">
       <tr>
       <td><h:outputText styleClass="Subheader4" value="MOre stuff..."/> </td>
       </tr>
      
      
       </table>
       </td>
       </tr>
       </table>
       </h:selectManyCheckbox>
       </rich:panel>
      
       </rich:dataList>