[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-user
Subject: Re: Help! How to overwrite column/value renderers
From: Andreas Pardeike <andreas () pardeike ! net>
Date: 2004-11-26 19:04:32
Message-ID: 01591BD6-3FDE-11D9-84ED-000A95D31F90 () pardeike ! net
[Download RAW message or body]
> On 26 nov 2004, at 09.11, Sakaki wrote:
>
>> You can create new component with nearly the same component
>> specification as
>> TableColumns and write your own html for it but use the same java
>> class. This
>> way you can change only look of the columns and the functionality
>> remains the
>> same.
>>
>> <component-specification
>> class="org.apache.tapestry.contrib.table.components.TableColumns"
That was quite helpful. I am on the right track and I even managed to
get
most of my subcomponents bound correctly.
However, the only thing left is the <a jwcid="linkColumn"> that sorts
the
table differently. It seems that I got the parameters up correctly
(phew!)
but the listener is left to be converted and I have not the slightest
clue
on how to do this:
<component id="linkColumn" type="DirectLink">
<binding name="listener" expression="listeners.columnSelected"/>
<binding name="parameters" expression="new java.lang.Object[] { new
org.apache.tapestry.util.ComponentAddress(tableModelSource),
tableColumn.columnName }"/>
</component>
What should I put in there to replace listeners.columnSelected ?
Thanks,
Andreas Pardeike
On 26 nov 2004, at 15.21, Sakaki wrote:
<snip>
>>
>> <span jwcid="$content$">
>> <span jwcid="iterColumns">
>> <th jwcid="informal">
>> <span jwcid="condSorted">
>> <a jwcid="linkColumn">
>> <span jwcid="imageSort"/><span jwcid="insertSortedColumn"/>
>> </a>
>> </span>
>> <span jwcid="condNotSorted">
>> <span jwcid="insertNotSortedColumn"/>
>> </span>
>> </th>
>> </span>
>> </span>
>>
>> and I don't understand how to define all those subcomponents like
>> i.e. 'condSorted' so they bind to the same values as the original
>> column. Since this isn't a straight component tree but some funky
>> columnRenderer stuff I am totally lost in getting the connection
>> to my original TableView and its model and data.
>
> For example:
>
> <component id="condSorted" type="FormConditional">
> <binding name="condition" expression="tableColumn.sortable"/>
> </component>
>
> you can find this in SimpleTableColumnFormComponent
>
> public boolean getColumnSorted()
> {
> return getTableColumn().getSortable();
> }
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic