Re: Display Objects of BeanClass in Grid

2010-09-09 Thread cobse

Thanks! It works :)

But how do i implement the same thing for Enums.

I have a Enum Class and i want to display the enums in a grid form.

5.2 works fine in displaying enums but 5.1.0.5 is not displaying enums name.
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Display-Objects-of-BeanClass-in-Grid-tp2804392p2827671.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


Re: Display Objects of BeanClass in Grid

2010-09-08 Thread Howard Lewis Ship
Behind the scenes for Grid, BeanEditor and BeanDisplay is the
BeanModel class, a description of the properties of the object to be
displayed.

Most of the time, Tapestry creates this BeanModel for you, using the
BeanModelSource service.

The best way to accomplish what you want is to get the BeanModel from
the BeanModelSource and then extend it: add new properties to it (you
may need to use the PropertyConduitSource as well).

On Sun, Sep 5, 2010 at 7:38 PM, ningdh  wrote:
> In my understanding, String, int,boolean.. Enum etc. are visible.
>
> For you own "Address", should try "add" instead of "include" and provide 
> relevant block yourself.
>
> - Original Message -
> From: "cobse" 
> To: 
> Sent: Monday, September 06, 2010 4:17 AM
> Subject: Display Objects of BeanClass in Grid
>
>
>>
>> I am using Tapestr5.2.
>>
>> I have a BeanClass "User" which has an object inside it i.e "Address".
>>
>> Now I want to display the User info and also the address info in
>>
>> but it says "User does not contain a property named 'address.street'."
>>
>> Please let me know what wrong i am doing here.
>>
>> Thanks,
>> Cobse
>> --
>> View this message in context: 
>> http://tapestry.1045711.n5.nabble.com/Display-Objects-of-BeanClass-in-Grid-tp2804392p2804392.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Display Objects of BeanClass in Grid

2010-09-05 Thread ningdh
In my understanding, String, int,boolean.. Enum etc. are visible.

For you own "Address", should try "add" instead of "include" and provide 
relevant block yourself.

- Original Message - 
From: "cobse" 
To: 
Sent: Monday, September 06, 2010 4:17 AM
Subject: Display Objects of BeanClass in Grid


> 
> I am using Tapestr5.2. 
> 
> I have a BeanClass "User" which has an object inside it i.e "Address".
> 
> Now I want to display the User info and also the address info in  
> 
> but it says "User does not contain a property named 'address.street'."
> 
> Please let me know what wrong i am doing here.
> 
> Thanks,
> Cobse
> -- 
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Display-Objects-of-BeanClass-in-Grid-tp2804392p2804392.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>

Display Objects of BeanClass in Grid

2010-09-05 Thread cobse

I am using Tapestr5.2. 

I have a BeanClass "User" which has an object inside it i.e "Address".

Now I want to display the User info and also the address info in  

but it says "User does not contain a property named 'address.street'."

Please let me know what wrong i am doing here.

Thanks,
Cobse
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Display-Objects-of-BeanClass-in-Grid-tp2804392p2804392.html
Sent from the Tapestry - User mailing list archive at Nabble.com.