[opencms-dev] OpenCms 8 & fmt:message displaying ???mykey???

Sandrine Prousteau s.prousteau at eurelis.com
Fri Jun 24 10:19:09 CEST 2011


Hi all,

 

I'm trying to use <fmt:message> tag in my formatters jsp, and I get "???
mykey ???" display...

Is there someone who can help me?

 

I'm on OpenCms8.0.0.

My code is :

 

<%@page buffer="none" session="false" taglibs="c,cms,fn,fmt" %>

<cms:formatter var="content" val="value">

<div class="webform">

<c:set var="loc"><cms:property name="locale" file="search"/></c:set>

<fmt:setLocale value="${loc}" />

<fmt:bundle basename="com.mymodule.opencms.website.messages" >

form.init.error.headline = <fmt:message key="mykey" />

</fmt:bundle> 

</div>

</cms:formatter>

 

I have a file published in my module : 

 

/system/modules/com.mymodule.opencms.website/classes/com/mymodule/opencm
s/website/messages.properties

 

containing :

 

mykey = My label

 

Where is my mistake please?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110624/f51cc0b6/attachment.htm>


More information about the opencms-dev mailing list