"-       how do I select columns to not show all of the classes properties
and how do
        I set labels different from the getter methods?"


You can use either  @NonVisual annotation for a setter or grid's "model"
attribute (
http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditform.html)
:

<table t:type="grid" rowsPerPage="5" row="tUser" source="usersList"
model="model">
... some code here
       </table>

   void pageLoaded()
     {
       _model = _beanModelSource.create(TUser.class, true, _resources);
       _model.remove("password");
     }

As for labels - it might be possible to use . properies file like
src\main\resources\org\example\myapp\pages\PageClassName.properties:

userName-label= Login name
firstName-label= First name

Here is a very simple T5 application, just a couple of pages with
screencasts examples -   http://www.box.net/shared/jk4blh9chu , Home page
uses Grid.

E.L.

On 11/06/07, Thomas Beckmann <[EMAIL PROTECTED]> wrote:

Hi,

we want to use Grid component but I can't find any example code.
Current issues are:
-       how do I select columns to not show all of the classes properties
and how do
        I set labels different from the getter methods?
-       how do I connect paging with paging on database level (in our case
it's
        hibernate)?

Many thanks in advance

Thomas

--
Thomas Beckmann
Dipl.-Math.

freiheit.com technologies gmbh
Straßenbahnring 22 / 20251 Hamburg, Germany
fon       +49 (0)40 / 890584-0
fax       +49 (0)40 / 890584-20
HRB Hamburg 70814

DB48 4B15 11BA 9268 B74B  64A0 48AE 80AB C86A 46A3
Geschäftsführer: Claudia Dietze, Stefan Richter, Jörg Kirchhof

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


Reply via email to