[ http://issues.apache.org/jira/browse/TAPESTRY-956?page=all ]
Andreas Andreou resolved TAPESTRY-956:
--------------------------------------
Fix Version: 4.0.3
Resolution: Duplicate
That's a duplicate of TAPESTRY-799, which is fixed for 4.0.3
> TableColumns and TableValues: impossible to assign different styles to
> different columns
> ----------------------------------------------------------------------------------------
>
> Key: TAPESTRY-956
> URL: http://issues.apache.org/jira/browse/TAPESTRY-956
> Project: Tapestry
> Type: Bug
> Components: Contrib
> Versions: 4.0.1
> Environment: win xp, jdk15, tomcat 5.0.28
> Reporter: Oleg Bondarenko
> Fix For: 4.0.3
>
> I tried setting different column styles using solution proposed by
> MindBridge.
> I have the following in my .page file:
> <component id="tableValues" type="contrib:TableValues">
> <binding name="column" value="currColumn"/>
> <binding name="class" value="currColumnClass"/>
> </component>
> The problem is that although the currColumn gets correctly initialized with
> every column, the "getCurrColumnClass" method gets called just once, only for
> the first column, so every <td> tag gets the same "class"!
> The solution works with Tapestry 3.0, so I have modified the following method
> of TableValues (copied from version 3.0):
> public String getValueClass()
> {
> IBinding objClassBinding = getBinding("class");
> if (objClassBinding != null)
> return objClassBinding.getObject().toString();
> else
> return getTableColumn().getColumnName() +
> TABLE_VALUE_CSS_CLASS_SUFFIX;
> // if (isParameterBound("class"))
> // return getCellClass();
> //
> // return getTableColumn().getColumnName() +
> TABLE_VALUE_CSS_CLASS_SUFFIX;
> }
> This way it works for me.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]