incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Jaquith <andrew.r.jaqu...@gmail.com>
Subject Re: Localized js strings
Date Sat, 06 Mar 2010 22:45:30 GMT
Dirk --

The spot in DefaultLayout.jsp where you see the <s:layout-component
name="jslocalizedstrings" /> element is a placeholder for any
localized strings you want to include. Same for jsfunction. By
default, these components contain nothing.

What you need to do is to override these components in the template
JSPs, for example in templates/default/Preferences.jsp. Just add in a
<s:layout-component name="jslocalizedstrings" /> element with the
contents you want. You can of course also change DefaultLayout.jsp if
you want certain strings to be included in ALL template JSPs by
default.

If it helps, another way to think about this is that DefaultLayout.jsp
is (essentially) a superclass, and the template JSPs are the
"subclasses." The layout-component names are the properties, which the
subclasses can easily override.

I hope this helps. Glad to see you are jumping in again now that your
setup is working. :)

Andrew

On Sat, Mar 6, 2010 at 4:32 PM, Dirk Frederickx
<dirk.frederickx@gmail.com> wrote:
> Andrew,
>
> The localized js strings are not rendered anymore.
>
> The DefaultLayout.jsp is referring to
>
>    <s:layout-component name="jslocalizedstrings" />
>
> but no toplevel jsp is defining this layout-component ?
>
>
>
> dirk
>

Mime
View raw message