Hi,
Welcome to the list. :)
Regarding your questions:
1) There's no way to localize page classes. Why do you need this?
2) For overriding internal services - if you must - you can probably use
an Alias:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html.
3) No, there's no way to inherit from a base template and override
certain sections. But you can get far using components and blocks. For
example you might have a layout component that needs a menu. You can
pass the menu to the layout using a block. See <block> and <parameter>
at http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html.
Hope this helps.
-Filip
Keith Zantow skrev:
Hi all,
I've read through the majority of the Tapestry 5 documentation and
implemented a few samples to make sure I understand how things work.
There are a few specific tasks I couldn't figure out and would
appreciate if anyone could shed some light...
1) Is there a way to localize page classes?
The page templates and message bundles work great but nothing I tried
worked for localized classes. If page class localization is currently
unsupported, is that a feature that may be accepted for inclusion into
the main framework distribution if a patch was donated?
2) Is there a way to override an internal service implementation?
As a work-around for #1 above, I attempted to define a build method
for ClassNameLocator, which understandably resulted in an exception
since it had already been defined. None of the decorate methods I came
up with succeeded, although I was able to decorate what I bound to the
ServiceBinder in my own 'AppModule' class.
3) Is there a way to 'inherit' from a base template in a localized
template and only override certain sections?
I didn't see a way to do this, although I definitely understand how
the <t:body/> was used for creating a wrapper template. As an example,
one could define a header with a unique id in a base template and have
a localized version that displays everything the same except for the
header. If you've ever used Facelets, I'd envision something similar
to using <ui:insert name='title'>Default Content</> in the base
template and in the localized template: <ui:composition
template='parent-template.xhtml'>, where the template attribute
specifies the 'parent' template and contains an override in the form
of: <ui:define name='title'>New Content</>.
I may be missing some obvious things here; any thoughts would be much
appreciated.
Thanks,
-Keith
---------------------------------------------------------------------
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]