I use localization with facelets with no problem.. can you explain
better "MyFaces+facelets will ignore it"
2006/7/13, Jonathan Harley <[EMAIL PROTECTED]>:
Denis Nikiforov wrote:
> Ooops... I've got it :)
>
> I'd placed f:loadBundle into wrong place in my index.xhtml:
>
> <f:view>
> <f:loadBundle basename="mypackage.resource.messages" var="message"/>
> <ui:composition template="/template/layout21.xhtml">
> ...
> </ui:composition>
> </f:view>
>
> After removing it into layout21.xhtml it works fine :)
I was just writing a reply suggesting that you'd got it in the
wrong place when you replied to yourself :)
Also NB that there is no point specifying default-locale in
your faces-config.xml if you are using facelets. Although
MyFaces+JSP will check that file before resorting to
messages.properties, MyFaces+facelets will ignore it. I raised
this on the facelets users list a few months ago and some people
were adamant that the facelets behaviour is more correct. The
JSF 1.1 spec is vague on what should happen. JSF 1.2 has much
nicer support for resource bundles meaning that you no longer
need f:loadBundle at all.
Jon
--
.....................................................................
Dr Jonathan Harley .
. Email: [EMAIL PROTECTED]
Zac Parkplatz Ltd . Office Telephone: 024 7633 1375
www.parkplatz.net . Mobile: 079 4116 0423
--
::SammyRulez::
http://www.kyub.com/blojsom/blog/sam/