You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ralph Churchill <ch...@gmail.com> on 2004/05/26 17:50:33 UTC
Form Column
When specifying a column in TableView, prepending an asterik results
in the column header being a link that submits the form. e.g.
<component id="tableView" type="contrib:TableView">
<binding name="source" expression="driverTableModel"/>
<binding name="columns">
'*driverId:Unique Driver Id:driverId, '+
'*lastName:Last Name:lastName, '+
'*firstName:First Name:firstName, '+
However, the asterik stays in the name, so you get stuff like:
<td class="*lastNameColumnValue">
And you cannot do this:
<span jwcid="*lastNameColumnValue@Block"
becaus that's not valid OGNL. The same issue would exist with
prepending a "!" (to indicate No Sorting), except that the "!" is
removed... My question is this: is there any reason why the asterik
can't (or shouldn't be removed)?? As it stands, only the first asterik
is removed (in TableUtils.java)...
RMC
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
R: Form Column
Posted by Luca De Petrillo <lu...@websiteitalia.com>.
AFAIK, the '*' should be insert only at the start of columns declarations,
not at every column element (instead, the '!' should be insert before every
column that can't be sorted).
BYE!
Luca De Petrillo
luca.depetrillo@websiteitalia.com
-----Messaggio originale-----
Da: Ralph Churchill [mailto:churchillrm@gmail.com]
Inviato: mercoledi 26 maggio 2004 18.15
A: tapestry-user@jakarta.apache.org
Oggetto: Re: Form Column
I've modified the code... and it seems to work. I can provide a patch
if anyone is interested.
RMC
On Wed, 26 May 2004 10:50:33 -0500, Ralph Churchill
<ch...@gmail.com> wrote:
>
> When specifying a column in TableView, prepending an asterik results
> in the column header being a link that submits the form. e.g.
>
> <component id="tableView" type="contrib:TableView">
> <binding name="source" expression="driverTableModel"/>
> <binding name="columns">
> '*driverId:Unique Driver Id:driverId, '+
> '*lastName:Last Name:lastName, '+
> '*firstName:First Name:firstName, '+
>
> However, the asterik stays in the name, so you get stuff like:
>
> <td class="*lastNameColumnValue">
>
> And you cannot do this:
>
> <span jwcid="*lastNameColumnValue@Block"
>
> becaus that's not valid OGNL. The same issue would exist with
> prepending a "!" (to indicate No Sorting), except that the "!" is
> removed... My question is this: is there any reason why the asterik
> can't (or shouldn't be removed)?? As it stands, only the first asterik
> is removed (in TableUtils.java)...
>
> RMC
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Form Column
Posted by Ralph Churchill <ch...@gmail.com>.
I've modified the code... and it seems to work. I can provide a patch
if anyone is interested.
RMC
On Wed, 26 May 2004 10:50:33 -0500, Ralph Churchill
<ch...@gmail.com> wrote:
>
> When specifying a column in TableView, prepending an asterik results
> in the column header being a link that submits the form. e.g.
>
> <component id="tableView" type="contrib:TableView">
> <binding name="source" expression="driverTableModel"/>
> <binding name="columns">
> '*driverId:Unique Driver Id:driverId, '+
> '*lastName:Last Name:lastName, '+
> '*firstName:First Name:firstName, '+
>
> However, the asterik stays in the name, so you get stuff like:
>
> <td class="*lastNameColumnValue">
>
> And you cannot do this:
>
> <span jwcid="*lastNameColumnValue@Block"
>
> becaus that's not valid OGNL. The same issue would exist with
> prepending a "!" (to indicate No Sorting), except that the "!" is
> removed... My question is this: is there any reason why the asterik
> can't (or shouldn't be removed)?? As it stands, only the first asterik
> is removed (in TableUtils.java)...
>
> RMC
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org