Seems like the easy fix would be to change WebTable to public void addParameter(String name, Object value) { BeanUtil.setProperty(name, value, this); super.addParameter(name, value); }
You may have some duplication but it should work. I haven't worked with the table tag much. I believe Mike has done some work with it in his Jira project and made appropriate modifications/improvements. I think we should take him up on his offer to look at some of his ui components and see if we can incorporate some of them. -Matt ----- Original Message ----- From: "Graf Patrick" <[EMAIL PROTECTED]> To: "WebWork-User (E-Mail)" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 8:45 AM Subject: [Webwork-user] Problems with the table template > 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 > > _______________________________________________ Webwork-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webwork-user