1 2 Previous Next 21 Replies Latest reply: Mar 21, 2012 4:26 AM by warrior87.it RSS

Alignment not working the datatable

warrior87.it Newbie

Hi friends..

 

I am using richfaces 4.0..

 

In that i am using datatable...for alignment for the table i used the attributes ...in the column..but that f:attributes are not working in the datatable column..please  suggest any solution..

 

My code:

 

<rich:dataTable value="#{Product.searchList}" var="c"  styleClass="order-table" id="prodList" rows="15" style="width:100%">                        

                <h:column>

                    <f:facet name="header">

                        #{spiff.admin_Customer}

                    </f:facet>

                       #{c.partyName}

                </h:column>

                <h:column>

                    <f:facet name="header">

                        #{spiff.admin_POType}

                    </f:facet>

                       #{c.partType}

                </h:column> 

                 <h:column>

                    <f:facet name="header">

                         #{spiff.admin_StyleNo}

                    </f:facet>

                     #{c.styleNo}

                    <f:attribute value="center" name="align" />

                                                                 <f:attribute value="middle" name="valign" />                  

                </h:column>            

                             </h:column>

                <f:facet name="footer" >

                    <rich:dataScroller  for="prodList"  id="scroller" />

                </f:facet>

</rich:dataTable>

1 2 Previous Next