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/28 22:21:23 UTC

Re: Form Column [SOLVED]

I am such a knuckle-head... I had been futzing with the TableUtils
class and had not cleaned out my exploded war directory. Consequently,
I had an old version messing things up.

Sincerest apologies.

RMC

On Fri, 28 May 2004 15:04:17 -0500, Ralph Churchill
<ch...@gmail.com> wrote:
> 
> Looking at the HTML generated by LocaleList in Workbench, those column
> headers look like so:
> 
> <th>
>         <table border=0 cellspacing=0 cellpadding=0 align="center">
>         <tr>
>         <td><a href="javascript:submitLink(document.Form0,&quot;linkColumn$0&quot;);">Language</a></td>
> 
>         </tr>
>         </table>
> </th>
> 
> Whereas mine look like this:
> <th class="supplierShortNameColumnHeader">
> 
> <a href="/tas/app?service=direct/1/Supplier/contrib:SimpleTableColumnPage/tableColumnComponent.linkColumn&amp;sp=ASupplier%2FtableView&amp;sp=SsupplierShortName">Supplier
> Name</a>
> </th>
> 
> Only the currently sorted column appears inside a table and has the
> "submitLink" javascript.
> 
> RMC
> 
> On Fri, 28 May 2004 14:34:35 -0500, Ralph Churchill
> 
> 
> <ch...@gmail.com> wrote:
> >
> > Even if I'm *not* using TableFormRows? Does that even matter?
> >
> > Also, I'm using the format:
> >
> >     <component id="tableView" type="contrib:TableView">
> >         <binding name="source" expression="supplierTableModel"/>
> >         <binding name="columns">
> >         '* supplierNumber:Sup#:supplierNumber, '+
> >         'supplierShortName:Supplier Name:supplierShortName, '+
> >
> > Where supplierTableModel returns an IBasicTableModel.  Is the space
> > between the asterik and the id required??
> >
> > RMC
> >
> >
> >
> > On Fri, 28 May 2004 20:29:52 +0300, Mindbridge <mi...@yahoo.com> wrote:
> > >
> > > Hi Ralph,
> > >
> > > The columns parameter does indeed take just a single * in front, and that
> > > affects _all_ columns defined in the string -- their headers are all changed
> > > to submit the form as a result. I would recommend looking at the LocaleList
> > > component in the Workbench -- it does precisely that. It also demonstrates
> > > the use of FormTable in its comments as well.
> > >
> > > Hope this helps,
> > > -mb
> > >
> > >
> > > ----- Original Message -----
> > > From: "Ralph Churchill" <ch...@gmail.com>
> > > To: "Tapestry users" <ta...@jakarta.apache.org>
> > > Sent: Friday, May 28, 2004 5:38 PM
> > > Subject: Re: Form Column
> > >
> > > > It still seems to me that putting an asterik in front of only the
> > > > first element OR leaving the code the way it is (i.e. only recognizing
> > > > the first asterik), results in only the first column causing the form
> > > > to be submitted.
> > > >
> > > > My observations seem to confirm this. Have you seen otherwise??
> > > >
> > > > RMC
> > > >
> > > > On Thu, 27 May 2004 08:53:04 +0200, Luca De Petrillo
> > > > <lu...@websiteitalia.com> wrote:
> > > > >
> > > > > 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
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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
> > >
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org