Re: [t5.2.6] Composing pages through inheritance problem

2011-09-29 Thread Thiago H. de Paula Figueiredo
On Wed, 28 Sep 2011 13:17:10 -0300, Muhammad Gelbana wrote: I hope one day I can as helpful as you are..for no less than helping you back :) Just help people in this mailing list, blog about Tapestry if you have a blog, and I'll be very, very happy. :) -- Thiago H. de Paula Figueiredo I

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Muhammad Gelbana
I hope one day I can as helpful as you are..for no less than helping you back :) On Wed, Sep 28, 2011 at 3:51 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 28 Sep 2011 10:38:53 -0300, Taha Hafeez > wrote: > > Have you looked at >> http://tawus.wordpress.com/**2011/04/

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Thiago H. de Paula Figueiredo
On Wed, 28 Sep 2011 10:38:53 -0300, Taha Hafeez wrote: Have you looked at http://tawus.wordpress.com/2011/04/20/tapestry-magic-3-plugin-blocks/ Which is basically the same approach used by BeanEditor, Grid and other BeanModel-based components. A proven approach. :) -- Thiago H. de Paula

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Taha Hafeez
Have you looked at http://tawus.wordpress.com/2011/04/20/tapestry-magic-3-plugin-blocks/ On Wed, Sep 28, 2011 at 6:13 PM, Muhammad Gelbana wrote: > I know you mean I should use components but in what way ? > I retracted the inheritance approache and replaced it with the > switching

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Muhammad Gelbana
I know you mean I should use components but in what way ? I retracted the inheritance approache and replaced it with the switchingidea which is marvelous. This way I won't get into the messy "t:if" tree. I'm trying to figure out *every possible way*

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Taha Hafeez
Use components :) On Wed, Sep 28, 2011 at 5:03 PM, Muhammad Gelbana wrote: > Thank you Taha :) > > But what do you mean by "You can always re-factor your code by composition." > > > On Wed, Sep 28, 2011 at 1:11 PM, Taha Hafeez wrote: > >> Hi Muhammad >> >> I don't think inheritance is the best a

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Muhammad Gelbana
Thank you Taha :) But what do you mean by "You can always re-factor your code by composition." On Wed, Sep 28, 2011 at 1:11 PM, Taha Hafeez wrote: > Hi Muhammad > > I don't think inheritance is the best approach with tapestry. You can > always re-factor your code by composition. Using component

Re: [t5.2.6] Composing pages through inheritance problem

2011-09-28 Thread Taha Hafeez
Hi Muhammad I don't think inheritance is the best approach with tapestry. You can always re-factor your code by composition. Using components is always a better approach. If you have a child page trying to access a component in parent page, IMHO, you should reconsider your refactoring. On Wed, S