The bundle doesn't render anything, so it doesn't have to be in the
document tag. Just put it at the top of your template and it will
always be used (I assume your tr:document is in the template).

On Dec 14, 2007 11:30 AM, Renzo Tomaselli <[EMAIL PROTECTED]> wrote:
> Hi, until now I used tr:document with a fixed title. Now I would pick up
> a title from bundles, using the title attribute such as in:
>
> <tr:document
>     xmlns:ui="http://java.sun.com/jsf/facelets";
>     title="#{msg['login.title']}"
>     ...
>
> but I need to declare "msg" in:
>
> <f:loadBundle basename="#{sessionBean.bundle}" var="msg"/>
>
> in case of components, I declare this at the beginning of any
> ui:component (I use Facelets) included in a html bracket.
> But in case of tr:document we start the page straight away declaring it,
> e.g. there is no html declaration.
> Where can I place the bundle declaration in this case ?
> Thanks -- Renzo
>
>

Reply via email to