4 Replies Latest reply on Mar 19, 2010 1:47 PM by peterlen

    Adding <td> attributes in a panelGrid?  Possible?

    peterlen

      Hello,

       

      I know this is not strictly a RichFaces question, but ......

       

      I am using a JSF HTML panelGrid to help build a table:

       

      <h:panelGrid columns=

      "2">

       

      Part of what is going in the panelGrid is a text field and a picklist defined as:

       

      <h:outputText value=

      "Sources:"/>

       

      <h:selectManyListbox id="srcs" value="#{Planning.indexedSourcesPickSelected}" size=

      "5">

         <f:selectItem itemLabel="All" itemValue="all" />

         <s:selectItems value="#{Planning.indexedDataSources}" var="i" label="#{i.label}" itemValue="#{i.value}"/>

      </h:selectManyListbox>

       

      The problem that I am running into is that I can't find a way to get the ourtput text to be vertically aligned to the top of the <td> cell.  I have tried using attributes and styles to do this but with no luck.  If I view the source in the browser, I can see that a standard HTML table is being rendered. In one case I ended up just switching and using the standard HTML <table> tags where I can define attributes on my <td> tags.

       

      Does anyone know if you can define <td> attributes in some way when using a panelGrid?

       

      Thanks - Peter