javadev-chiennx / struts2-jquery-plugin

Automatically exported from code.google.com/p/struts2-jquery-plugin
0 stars 0 forks source link

head tag #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Errors occurs on the line:
<sj:head compressed="false" uiTheme="redmond" locale="%{#language}" />

language contain: "en"

freemarker.core.NonBooleanException: Error on line 49, column 6 in
template/jquery/head.ftl
Expecting a boolean (true/false) expression here
Expression parameters.locale!"en" != "en" does not evaluate to true/false 

Don't know if Im doing something wrong... will be good if u also add the
showcase source in the downloads area.

Original issue reported on code.google.com by mileid...@gmail.com on 14 Aug 2009 at 5:11

GoogleCodeExporter commented 8 years ago
I solve overwriting the head.ftl:

<#if parameters.locale?if_exists != "">
  <#if parameters.locale?if_exists != "en">
    <script type="text/javascript"
src="${base}/struts/i18n/ui.datepicker-${parameters.locale?string}.js"></script>
  </#if>
</#if>

using struts 2.1.6

hey... I willing to join your project and help u...

Original comment by mileid...@gmail.com on 14 Aug 2009 at 5:20

GoogleCodeExporter commented 8 years ago
Fixed.
Thanks for the note and the patch

Original comment by obinna@gmail.com on 29 Aug 2009 at 5:06