But Mike - If I type
<span jwcid="[EMAIL PROTECTED]">
<span jwcid="@Insert" value="ognl:components.table.tableRow.name" />
</span>
It will take me to the actual MyTable class, and that class doesn't have a
getName method, it only
has a method which returns the testList. Do I have to make a separate @For loop
to iterate over the
specific objects for this and then do a @Insert? ...sort of like this:
<span jwcid="[EMAIL PROTECTED]">
<span jwcid="@For" source="ognl:testList" value="ognl:testObject">
<span jwcid="@Insert" value="ognl:testObject.name" />
</span>
</span>
I have done the above solution before but I'd rather not do it again
because it presents a bunch of other problems.
Thanks btw!
Mike Snare wrote:
You need to use a Block to render that column. Simply change
testList.name back to testList and include the following inside the
table element in your template:
<span jwcid="[EMAIL PROTECTED]">
<span jwcid="@Insert" value="ognl:components.table.tableRow.name" />
</span>
the Table component will use this block to render the data in the
testList column instead of the standard rendering.
On 3/21/06, Nima Boustanian <[EMAIL PROTECTED]> wrote:
Hey all
I have two columns in my contrib:table, one returns a string and the
other one returns a list.
<table jwcid="[EMAIL PROTECTED]:Table"
cellpadding="0"
width="100%"
class="myTable"
source="ognl:table"
columns="testString, testList.name"
pageSize="5"
pagesDisplayed="2"/>
I manage to extract the string with the above line, but the testList
which contains objects with getName methods (that return strings)
is a bit trickier. I have tried testList.name but without luck, can
someone please give me some pointers on how this
should be done?
Thanks!
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]