[
https://issues.apache.org/jira/browse/TOMAHAWK-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534680
]
David Brainard commented on TOMAHAWK-1116:
------------------------------------------
Hi lea,
I have fixed the bug. there was a problem in the columnStyleIndex generation.
i.e
-In encodeColumnChild() method of the HtmlTableRenderer if the child is a
UIColumns then the columnStyleIndex remains the same for all the child
components.
renderColumnBody(facesContext, writer, uiData, component,
styles, columnStyleIndex );
to avoid this i have added counter 'k' to the columnStyleIndex
- To manage when both UIColumns and UICoulmn are added to the datatable, the
encodeInnerHtml() method in the HtmlTableRendererBase class need to be changed
as follows:
nc * uiData.getChildCount() + j + childCount-columnsCount
I am attaching both the classes(HtmlTableRenderer and HtmlTableRendererBase )
for both 1.1.6 release and the latest snapshot 1.1.7.
I AM NEW TO THIS SO CAN ANYONE PLS VALIDATE THIS FIX AND CREATE A PATCH(DIFF)
FOR THIS BUG . :-)
> ColumnClasses styles is ignored
> -------------------------------
>
> Key: TOMAHAWK-1116
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1116
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable
> Affects Versions: 1.1.3
> Environment: Microsoft Windows XP Professional Version 2002 Service
> Pack 2, Microsoft Internet Explorer Version
> 6.0.2900.2180.xpsp_sp2_gdr.050301-1519, IBM Rational Software Development
> Platform Version: 6.0.1 Build id: 20050725_1800, WebSphere Application Server
> v6.0
> Reporter: lea vogt
> Priority: Blocker
>
> I am using <t:dataTable> and I am using the attribute columnClasses.
> According to (http://myfaces.apache.org/tomahawk/tlddoc/t/dataTable.html)
> columnClasses - A comma separated list of CSS class names to apply to td
> elements in each column.
> But this does not happen, when I define the columnClasses styles to be
> applied in each column only the very first class is rendered for all columns.
> This is how I did it:
> <t:dataTable id="myDetailDataTable" var="row" value="#{myDetailList.rows}"
> cellspacing="0" columnClasses="columnClassLock,columnClassUnlock"
> headerClass="headerClassTopLock" rowClasses="rowOdd,rowEven"
> styleClass="dataTable">
> <t:columns value="#{myDetailList.columns}" var="currentColumn">
> <f:facet name="header">
> <h:outputText value="#{currentColumn.name}"/>
> </f:facet>
> <h:outputText value="#{myDetailList.columnValue[currentColumn.name]} "
> style="#{myDetailList.columnValue[currentColumn.label]}" rendered="#{not
> myDetailList.columnValue[currentColumn.render]}" escape="false"/>
>
> <h:inputText value="#{myDetailList.columnValue[currentColumn.name]}"
> style="#{myDetailList.columnValue[currentColumn.label]}"
> rendered="#{myDetailList.columnValue [currentColumn.render]}" size="6"
> maxlength="15">
> <f:converter converterId="javax.faces.BigDecimal"/>
> </h:inputText>
> </t:columns>
> </t:dataTable>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.