Hi all,

I'm having problems with the table template. As mentioned earlier I'd like
to give some style sheet tags to the templates for formatting reason. The
solution is to add ui:param tags to the used template . This works fine for
textfields, radio,... but not on the table template.

I wondered why, so I had a look into the corresponding Action file called
"webtable.java".
In there you see, that the class has it's own "addParameter" method. And
this method is (of course) different to the ComponentTag method. This seems
to be the problem, since the param tags I created and use in the table.jsp
template were never filled.

Is there another way to send parameters to the table template?


Example (taken from webwork examples)

<webwork:table modelName="'/result'" sortable="true" theme="'pdt'"
template="'table.jsp'">
 <webwork:param name="'columnHidden(1)'"      value="true"/>
 <webwork:param name="'columnDisplayName(2)'" value="'New Display Name'"/>
 <webwork:param name="'columnRenderer(0)'"    value="@dateRenderer"/>
 <webwork:param name="'columnRenderer(2)'"    value="@linkRenderer"/>
 <webwork:param name="'columnRenderer(4)'"    value="@intRenderer"/>
 <webwork:param name="'tableCSS'"             value="'formattedTbl borAll
borCol2'"/>
 <webwork:param name="'columnHeaderTrCSS'"    value="'bgCol4'"/>
 <webwork:param name="'columnHeaderCSS'"      value="'fontBold'"/>
</webwork:table>

I never get the params "tableCSS", "columnHeaderTrCSS" or "columnHeaderCSS"



-Patrick

_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to