Well, that Foreach logic doesn't work. Anyone have an idea on how to dynamically create a JWCID attribute or else get around this problem of a dynamic number of columns for contrib:Table?
Thanks, David -----Original Message----- From: David Ethell [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 12:17 PM To: Tapestry users Subject: Passthrough HTML formatting on contrib:Table cells? I saw a previous post about overriding one of the Table classes to allow raw on the render formatting of Table columns, but I'm hoping to use a solution that involves @Block overrides of a column. Here's my problem: We have a dynamic number of columns in a dataset underlying a contrib:Table. We do not know at design time what the column names will be so I am unable to use the standard [EMAIL PROTECTED] override in the html template. We have data that is coming out of the database with carriage returns that Tapestry is converting to BR tags, but the Table component escapes the < and > into < and > and so the cell just prints the tag instead of leaving it as html. What is the best way to create dynamic blocks based on runtime column values? Is it possible to do a Foreach and inside that have Block components where the jwcid is set using values from the Foreach value? Something like: <span jwcid="@Foreach" source="ognl:resultHeader" value="ognl:parameterBean"> <span jwcid="ognl:parameterBean.recid + '[EMAIL PROTECTED]'"> <span jwcid="@Insert" raw="true" value="ognl:parameterBean.value"/> </span> </span> The problem is that I'm trying to dynamically change a jwcid tag. Any thoughts or better ideas for what we're trying to do? Thanks, David --------------------------------------------------------------------- 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]
