Re: [Tapestry Wiki] Update of Tapestry5GridComponent by GabrielLandais

2008-02-25 Thread Davor Hrg
nice entry..
in T5.0.11
I've failed to make this work:

How to add an extra column

You want to add an extra column called details to each line that
does not have a field in the POJO:

t:grid t:source=list row=person
  t:parameter name=detailsCell  !-- just invent a cell name --
t:pagelink t:page=person
t:context=person.id${person.lastname}/t:pagelink
  /t:parameter
/t:grid


I know it can be done by modifying BeanModel, but this seemed like
nice feature to try out.


Davor Hrg

On Mon, Feb 25, 2008 at 10:46 AM, Apache Wiki [EMAIL PROTECTED] wrote:
 Dear Wiki user,

  You have subscribed to a wiki page or wiki category on Tapestry Wiki for 
 change notification.

  The following page has been changed by GabrielLandais:
  http://wiki.apache.org/tapestry/Tapestry5GridComponent

  The comment on the change is:
  It works ;)

  
 --


   == How to define the initial sort column ==

  - TODO not tested
  -
* Template part :

   {{{



  -
  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]



Re: [Tapestry Wiki] Update of Tapestry5GridComponent by GabrielLandais

2008-02-25 Thread Gabriel Landais

Davor Hrg a écrit :

nice entry..
in T5.0.11
I've failed to make this work:

How to add an extra column

You want to add an extra column called details to each line that
does not have a field in the POJO:

t:grid t:source=list row=person
  t:parameter name=detailsCell  !-- just invent a cell name --
t:pagelink t:page=person
t:context=person.id${person.lastname}/t:pagelink
  /t:parameter
/t:grid


I know it can be done by modifying BeanModel, but this seemed like
nice feature to try out.


Davor Hrg
  
I've not tried that part, but in my own code I generate a specialized 
property in my model (as I was getting an exception on unknown pojo 
property). I use null as PropertyConduit.


--
Gabriel [EMAIL PROTECTED]
http://www.codelutin.com
tel : 02 40 50 29 28 / fax : 09 59 92 29 28


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]