-
1. Re: RichFaces 3.3.3 + dataTable + align footer
edilmar Apr 22, 2010 11:19 AM (in response to edilmar)Is it possible to be a bug at RichFaces?
I have this problem since 3.3.2, and also in 3.3.3.
-
2. Re: RichFaces 3.3.3 + dataTable + align footer
ilya_shaikovsky Apr 22, 2010 11:35 AM (in response to edilmar)define .rich-table-footercell CSS class and put text-align here or use headerClass and footerClass.
In general maybe absense of corresponding styles attributes could be considered as minor issue - but I prefer not to do it as using inline styles pretty bad practice, so the attributes is not really needed there.
-
3. Re: RichFaces 3.3.3 + dataTable + align footer
edilmar Apr 22, 2010 1:41 PM (in response to ilya_shaikovsky)Hi friend,
I put style="text-align:right" into outputText to test but it didn't work.
<rich:column width="70px" id="valorVenc" style="text-align:right;"> <f:facet name="header"><h:outputText styleClass="headerText" value="#{msgCliente['consTitulos.table.labelValorVenc']}" /></f:facet> <h:outputText value="#{item.valorVenc}"><f:convertNumber minFractionDigits="2"/></h:outputText> <f:facet name="footer"> <h:outputText value="#{consTitulosCliente.somaValorVenc}" style="text-align:right;"><f:convertNumber minFractionDigits="2"/></h:outputText> </f:facet> </rich:column>
I think that all <f:facet name="footer"> should use the same style of its "father" <rich:column...>.
Is this a limitation of <rich:dataTable>/<rich:column>?
The class .rich-table-footercell doesn't have a property for text-align. I look at this document: http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_dataTable.html
-
4. Re: RichFaces 3.3.3 + dataTable + align footer
ilya_shaikovsky Apr 23, 2010 2:23 AM (in response to edilmar)header uses headerClass, cells uses styleClass and footer uses footerClass. And header and footer has prefdefined classes I mentioned above. Style as the styleClass is applied only to cells. And there are not headerStyle and footerStlye attribute which analogous to styleClass but for the corresponding elements. So please just use the classes as I already proposed. And b.t.w. if you insist on using just stlyes and believe that it's a bug that we have no such attributes - check some optimization articles. Using inline stlyes is really bad practice.
-
5. Re: RichFaces 3.3.3 + dataTable + align footer
edilmar Apr 23, 2010 1:37 PM (in response to ilya_shaikovsky)Hi friend,
Thank you... I solved with footerClass easily... before I had not understand how to use footerClass, but now it is great!
-
6. Re: RichFaces 3.3.3 + dataTable + align footer
eldiegolp Feb 14, 2011 7:49 AM (in response to ilya_shaikovsky)In my opinion, if this is a feature, it isnt flexible at all. In my case, i use the css located at richfaces' jars, so, i hace to create my own css for this case.Having my entire column is center aligned, why cant the footer inherit that property ? I think it would be easier and much more flexible to allow the specificacion of the style to every facet of the column.
Thanks for the info on the style classes.