Hello Simon, I'm using JSF 1.1 (Myfaces + Facelets + Trinidad) until I feel safe to move.
Actually I can't see any specific reason for moving to 1.2, and on the other hand I read about many troubles with it on this list.
Meanwhile, I had no problems with f:loadBundle till now, except the confused page which is returned when a bundle entry is missing.
I never thought about using a managed bean instead of it, it sounds pretty simple indeed.
Thanks,

-- Renzo

Simon Lessard wrote:
Hello Renzo,

If you're using JSF 1.2, you can use the <resource-bundle> element. With JSF 1.1, you can create yourself something equivalent as a managed bean. f:loadBundle, is far from the best JSF tag in existence, if you can avoid it, do so.


Regards,

~ Simon

On Dec 14, 2007 1:30 PM, 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