Gary VanMatre wrote:
From: Richard Wallace <[EMAIL PROTECTED]>
I'm trying to use some of the extended Tomahawk components and
attributes in a Clay web page. The table is being configured with:
<component jsfid="instructorCourseReportTable" extends="t:dataTable">
<attributes>
<set name="value" value="[EMAIL PROTECTED]" />
<set name="var" value="student" />
<set name="rowClasses" value="name" />
<set name="id" value="instructorReport" />
<set name="forceId" value="true" />
</attributes>
...
</component>>
But the forceId tag is being ignored. In the Tomahawk clay-config.xml
file attached to this JIRA issue,
https://issues.apache.org/jira/browse/TOMAHAWK-70, has the following:
<component jsfid="t:dataTable"
componentType="org.apache.myfaces.HtmlDataTable" extends="baseHtml">
<attributes>
<set name="id" bindingType="VB"/>
....
<set name="forceId" bindingType="VB"/>
....
</attributes>
</component>
Also, the Tomahawk HtmlColumn extension has an attribute for setting the
cell style class on a per cell basis. I tried adding the attribute to
the t:column component configuration by adding a > value="VB" />
<component jsfid="t:column"
componentType="org.apache.myfaces.HtmlColumn" extends="baseHtml">
<attributes>
<set name="id" bindingType="VB"/>
...
<set name="styleClass" bindingType="VB"/>
...
</attributes>
</component>
When I try and use it with:
<component jsfid="myTableColumn" extends="t:column">
<attributes>
<set name="styleClass" value="[EMAIL PROTECTED]" />
</attributes>
...
</component>>
When I try and use it with:
<component jsfid="myTableColumn" extends="t:column">
<attributes>
<set name="styleClass" value="[EMAIL PROTECTED]" />
</attributes>
...
</component>
The styleClass attribute is ignored. Any idea why this might be?
I was able to recreate the styleClass error. In my test, the class attribute
was not evaluated. It was rendered like:
class="#{student.columnStyle}"
In my case it's not that the attribute is not being evaluated, it's that
it seems to be completely ignored. In the rendered output for the <td>
element there is no class attribute at all.
I found this was a bug in the base clay configs. The binding type defauted to
"None". I've put in a fix for this that will be avaiable in the 20060312
nightly build
but the workaround is to override the bindingType.
<set name="styleClass" value="[EMAIL PROTECTED]" bindingType="VB"/>
I tried overriding the bindingType as above, but that didn't work. The
class attribute still doesn't show up in the rendered output. I'll try
the nightly tomorrow, but I've been having other problems with the
nightlies causing unexpected exceptions where there were none before.
I looked at the "forceId" and "forceIdIndex" problem but I don't understand how that would work - especially in a data table. I looks like it *should* ignores the fully qualified client id. I'm sure I just don't understand how it should be used but ignoring the naming container namespaces seems problematic.
Thanks,
Rich
Gary
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]