zoukankan      html  css  js  c++  java
  • FreeMarker boolean Issue

    FreeMarker template error:
    Can't convert boolean to string automatically, because the "boolean_format" setting was "true,false", which is the legacy default computer-language format, and hence isn't accepted.

    ----
    Tip: If you just want "true"/"false" result as you are generting computer-language output, use "?c", like ${myBool?c}.
    ----
    Tip: You can write myBool?string('yes', 'no') and like to specify boolean formatting in place.
    ----
    Tip: If you need the same two values on most places, the programmers should set the "boolean_format" setting to something like "yes,no".
    ----

    ----
    FTL stack trace ("~" means nesting-related):
    - Failed at: ${isCopanyUser} [in template "sys_page/company_new/patent/register.html" at line 95, column 79]
    ----

    没有什么比FreeMarker的提示更清楚的了。boolean_format在哪里配置,待查手册?

  • 相关阅读:
    可持续化线段树(主席树)
    2016-06-19 NOIP模拟赛
    0618图的整理
    1536 海战
    1005 生日礼物
    3280 easyfinding
    2594 解药还是毒药
    2919 选择题
    1845 二叉查找树
    1174 靶形数独
  • 原文地址:https://www.cnblogs.com/rgqancy/p/5340695.html
Copyright © 2011-2022 走看看