You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Pai911 <ja...@gmail.com> on 2008/02/19 14:37:27 UTC
Re: getColumnValue convert all "<" into "<"
I think you should add an attribute raw="true"
to the Insert component in the table cell
learner-6 wrote:
>
> is getColumnValue automatically convert all "<" into "<" ? can by pass
> the
> conversion? because i want to return a html tag rather than "string"
>
>
> Object getColumnValue(ITableColumn objColumn, Object objRow);
> }
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/getColumnValue--convert-all-%22%3C%22-into-%22-lt-%22-tp15537512p15560796.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: getColumnValue convert all "<" into "<"
Posted by Pai911 <ja...@gmail.com>.
I mean that you should override the "table cell"
by defining a "Block" component
and put a "Insert" component (with raw="true") inside the Block to print the
data you need to display
e.g. to override the "activeOrNotColumn" column
<td jwcid="activeOrNotColumn@Block">
</td>
I'm not sure if I get you wrong, this is the simple way I know to do it
learner-6 wrote:
>
> from the documentation that i got, there is no "raw" parameter for table .
> how
> do i add that parameter in my component ?
>
>
>
> <component id="table" type="Contrib:TableView">
> <binding name="source" value="model"/>
> <binding name="columns"
> value="literal:=activeOrNotColumn"/>
> <binding name="columnsClass" value="literal:title"/>
>
> <binding name="pageSize" value="100"/>
>
>
> </component>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/getColumnValue--convert-all-%22%3C%22-into-%22-lt-%22-tp15537512p15580938.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: getColumnValue convert all "<" into "<"
Posted by Andreas Andreou <an...@gmail.com>.
I see you're deep into contrib table :)
Are you using a custom ITableColumnEvaluator ?
The results of
Object getColumnValue(ITableColumn objColumn, Object objRow);
are fed to an ITableRendererSource and the default one
(SimpleTableValueRendererSource) returns an IRender implementation
that just outputs the value as a string and escapes those
characters...
So, you basically need to hook up your own ITableRendererSource ... somewhere!
On 2/19/08, venturer <se...@yahoo.com> wrote:
> from the documentation that i got, there is no "raw" parameter for table . how
> do i add that parameter in my component ?
>
>
>
> <component id="table" type="Contrib:TableView">
> <binding name="source" value="model"/>
> <binding name="columns"
> value="literal:=activeOrNotColumn"/>
> <binding name="columnsClass" value="literal:title"/>
>
> <binding name="pageSize" value="100"/>
>
>
> </component>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: getColumnValue convert all "<" into "<"
Posted by venturer <se...@yahoo.com>.
from the documentation that i got, there is no "raw" parameter for table . how
do i add that parameter in my component ?
<component id="table" type="Contrib:TableView">
<binding name="source" value="model"/>
<binding name="columns"
value="literal:=activeOrNotColumn"/>
<binding name="columnsClass" value="literal:title"/>
<binding name="pageSize" value="100"/>
</component>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org