Tag HTML affect on other components
pbaker01 Oct 11, 2008 4:17 PMI am using the html CENTER tag to center content. However, when I use CENTER I am unable to left justify the content of tables (i.e. extendedDataTable). ALL content is centered, even the content within table columns.
What affect does the use of CENTER have over rendering other Richfaces componts?
In the snippet below I am trying to left justify the third column... with no success...
Any ideas?
<ui:define name="content"> <center> <h:outputLabel value="Message Requirements" styleClass="titleText" /> </center> <ui:include src="/messages.xhtml" /> <a4j:keepAlive beanName="msgRqmtsController" /> <a4j:form id="effectiveSheetForm"> <center> <<<<------ This is causing problems.... <h:panelGrid columns="1"> <h:panelGroup> <rich:spacer height="5" /> <rich:extendedDataTable id="revision" binding="#{msgRqmtsController.table}" columnClasses = "colC,colC,colL" value="#{msgRqmtsController.value}" var="item" rowKeyVar="idx" selectionMode="single" width="740px" height="450px" cellpadding="0" cellspacing="0"> <rich:column id="selected" sortable="false" width="30px" label="Select"> <f:facet name="header"> <h:outputText value="Sel" /> </f:facet> <h:selectBooleanCheckbox value="#{item.msgSelected}"> </h:selectBooleanCheckbox> </rich:column> <rich:column id="msgType" sortable="true" headerClass="extendedTableHdrCol" sortBy="#{item.msgType}" filterBy="#{item.msgType}" filterEvent="onkeyup" width="100px" label="Message Type"> <f:facet name="header"> <h:outputText>Message<br/>Type</h:outputText> </f:facet> <h:outputText value="#{item.msgType}" styleClass="tableTextInput" /> </rich:column> <rich:column id="msgDescription" sortable="true" headerClass="extendedTableHdrCol" sortBy="#{item.msgDescription}" width="500px" label="Message Description" style="text-align: left" styleClass="colL"> <f:facet name="header"> <h:outputText>Message<br/>Description</h:outputText> </f:facet> <h:outputText value="#{item.msgDescription}" styleClass="tableTextInput" /> </rich:column>
Thanks in advance - PB