Here's the code for the jsp in a more readable format:

<f:view>
<h:form>
  <h:dataTable id="items" value="#{CDManagerBean.cds}" var="cd"
                rowClasses="oddRow, evenRow" headerClass="tableHeader">
    <h:column id="aColumn">
      <f:facet name="header">
           <h:panelGroup id="aPanelGroupId">
             <h:outputText value="Title" id="anOutputText" />
             <f:verbatim>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</f:verbatim>
             <f:subview id="descendingtitleId">
                  <h:commandLink action="#{CDManagerBean.sortTitleDec}" id
="sortDescCommandId">
                     <h:outputText id="somedescendingTitleId" value="Dsc" 
/>
                  </h:commandLink>
             </f:subview>
             <f:verbatim>&nbsp;</f:verbatim>
             <f:subview id="ascendingtitleId">
                  <h:commandLink action="#{CDManagerBean.sortTitleAsc}" id
="sortAscCommandId">
                    <h:outputText id="ascTitle" value="Asc" />
                  </h:commandLink>
             </f:subview>
           </h:panelGroup>
        </f:facet>

Reply via email to