Overriding specific portions of parent template is a really amazing
feature from 5.1; however can it be extended to "override specific
portions of template within a component in containing component/page"?
In my opinion, it's the most straightforward way.

Currently only sub-class is able to override parent's template has
limit: if there are 2 sub layouts both extends the a parent layout and
overrides different portion of template, and they don't know each
other, then in a page you want to have all the overrides together in
one layout, it seems hard to make it.

Regards,
Yunhua


On Mon, Mar 16, 2009 at 3:53 PM, Inge Solvoll <[email protected]> wrote:
> I agree. The last few months, I've been working on a complex tree component
> that needs minor overrides for different usages. So far I've solved it by
> having almost identical templates for each variant. This new feature solves
> this nicely.
>
> My company's software has some page layout implementations based on deep and
> complex inheritance, so I won't go there again after what I've seen :) It
> still hurts every time I need to adjust something in my tiles-config.xml.
>
>
> On Mon, Mar 16, 2009 at 8:34 PM, Howard Lewis Ship <[email protected]> wrote:
>
>> I actually got the idea from Wicket. I think it has some useful
>> properties, but I still prefer a layout component to a layout base
>> page class. I envision it as something used with complex components
>> (Grid, BeanEditForm, maybe Palette) that want to make portions more
>> easily overridden.
>>
>> On Mon, Mar 16, 2009 at 11:52 AM, Inge Solvoll <[email protected]>
>> wrote:
>> > Overriding specific portions of parent template is a feature I have been
>> > waiting for since T4!  Excellent stuff :)
>> >
>> > Inge
>> >
>> > On Mon, Mar 16, 2009 at 3:46 PM, Howard Lewis Ship <[email protected]>
>> wrote:
>> >
>> >> March 15 2009
>> >>
>> >> An updated alpha release of Tapestry 5.1 is now available: Tapestry
>> >> 5.1.0.1.
>> >>
>> >> This release adds localized numeric input validation, both on the
>> >> client side and the server side. It also addresses "slow loading"
>> >> pages by preventing the user from clicking links that will ultimately
>> >> trigger client-side DHTML or Ajax functionality. The embedded version
>> >> of Scriptaculous has been upgraded to 1.8.2.
>> >>
>> >> Server-side templates have been improved; there are now new elements
>> >> in the Tapestry 5.1 XML namespace to limit template content (similar
>> >> to Tapestry 4's special $content$ and $remove$ ids). In addition, it
>> >> is now possible for a subclass to override specific portions of its
>> >> parent class' template.
>> >>
>> >> See the release notes for more details.
>> >> http://tapestry.apache.org/tapestry5.1/release-notes.html
>> >>
>> >> Download Tapestry 5.1.0.1 http://tapestry.apache.org/download.html
>> >>
>> >> Upgrading from 5.0.18 should be straight forward, but be sure to read
>> >> the upgrade notes first.
>> >> http://tapestry.apache.org/tapestry5.1/upgrade.html
>> >>
>> >> Feedback is encouraged!
>> >>
>> >> --
>> >> Howard M. Lewis Ship
>> >>
>> >> Creator Apache Tapestry and Apache HiveMind
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [email protected]
>> >> For additional commands, e-mail: [email protected]
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator Apache Tapestry and Apache HiveMind
>>
>> ---------------------------------------------------------------------
>> 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]

Reply via email to