Gary VanMatre wrote:
From: Richard Wallace <[EMAIL PROTECTED]>
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:
I think the forceId is being ignored because you need it on all components.
After several tries, I was able to get it to work.
Consider this XML config:
<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>
<element renderId="0" jsfid="t:column" id="firstName">
<attributes>
<set name="styleClass" value="#{student.columnStyle}"
bindingType="VB" />
<set name="forceId" value="true" />
</attributes>
<element renderId="0" jsfid="t:outputText"
facetName="header">
<attributes>
<set name="value" value="First Name" />
<set name="forceId" value="true" />
</attributes>
</element>
<element renderId="1" jsfid="t:inputText" id="fname">
<attributes>
<set name="value" value="#{student.firstName}" />
<set name="forceId" value="true" />
</attributes>
</element>
</element>
</component>
Rendered html:
<table id="clayView:_id0:_id18:data1">
<thead>
<tr><th>First Name</th></tr></thead>
<tbody id="clayView:_id0:_id18:data1:tbody_element">
<tr class="name"><td class="test"><input id="fname[0]" name="fname[0]" type="text"
value="First0" /></td></tr>
<tr class="name"><td class="test"><input id="fname[1]" name="fname[1]" type="text"
value="First1" /></td></tr>
<tr class="name"><td class="test"><input id="fname[2]" name="fname[2]" type="text"
value="First2" /></td></tr>
<tr class="name"><td class="test"><input id="fname[3]" name="fname[3]" type="text"
value="First3" /></td></tr>
<tr class="name"><td class="test"><input id="fname[4]" name="fname[4]" type="text"
value="First4" /></td></tr>
<tr class="name"><td class="test"><input id="fname[5]" name="fname[5]" type="text"
value="First5" /></td></tr>
<tr class="name"><td class="test"><input id="fname[6]" name="fname[6]" type="text"
value="First6" /></td></tr>
<tr class="name"><td class="test"><input id="fname[7]" name="fname[7]" type="text"
value="First7" /></td></tr>
<tr class="name"><td class="test"><input id="fname[8]" name="fname[8]" type="text"
value="First8" /></td></tr>
<tr class="name"><td class="test"><input id="fname[9]" name="fname[9]" type="text" value="First9"
/></td></tr></tbody></table>
Alright, the only reason the actual id of the table was important was
because it was being used in the css to set the styles. I changed it to
instead set the style using a class and it works perfectly that way.
I'll have to talk to the web designer about not using the id for css I
think.
Thanks again,
Rich
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]