[PJUG Javamail] JSF question making sort on tomahawk t:dataTable case-insensitive

Michael Phoenix michaelandrewphoenix at gmail.com
Wed Mar 11 23:42:16 EST 2009


We are currently using JSF 1.1 for our UI and we want the table below
to be able to sort alphabetically, but case-insensitive. I haven't
found much with Google, so I was hoping for some help here. If you
know of a good JSF forum where I would have a decent chance of getting
help on this or happen any suggestions on how to approach this
problem, I'd be really grateful.

Mike

       <t:dataTable id="usersList" var="user" value="#{UsersListPage.users}"
                     styleClass="scrollerTable"
                     headerClass="SortedTableHeader"
                     rowClasses="table_Row1,table_Row2"

columnClasses="table_Column,table_Column,table_ColumnCentered"
                     rowIndexVar="rowIndex"
                     preserveDataModel="false"
                     sortColumn="#{UsersListPage.sortColumn}"
                     sortAscending="#{UsersListPage.sortAscending}"
                     preserveSort="true"
                     rows="20"
                     width="490">
           <t:column sortable="true" sortPropertyName="contactName"
defaultSorted="true">
              <f:facet name="header">
                 <h:outputText
value="#{msg.userslist_contnam_outputText_value}" id="contnam"/>
              </f:facet>
              <h:commandLink action="#{UsersListPage.editUser}">
                 <t:updateActionListener
property="#{UsersListPage.selectedUser}"
                                         value="#{user}"/>
                 <h:outputText value="#{user.contactName}"/>
              </h:commandLink>
           </t:column>
           <t:column sortable="true" sortPropertyName="organization">
              <f:facet name="header">
                 <h:outputText
value="#{msg.userslist_orgnam_outputText_value}" id="orgnam"/>
              </f:facet>
              <h:outputText value="#{user.organization}"/>
           </t:column>
           <t:column>
              <h:commandButton
value="#{msg.userslist_delbtn_commandButton_value}"
action="#{UsersListPage.deleteUser}" id="delbtn"
                               onclick="return
confirm('#{msg.userslist_delbtn_commandButton_onclick}');" >
                 <t:updateActionListener
property="#{UsersListPage.selectedUser}" value="#{user}"/>
              </h:commandButton>
           </t:column>
        </t:dataTable>


More information about the Javamail mailing list