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在哪里配置,待查手册?

  • 相关阅读:
    Cake
    抽屉评论数据库设计
    学习网站
    栈和堆简介
    链表相关操作
    链表操作
    Django form验证二
    django ajax提交form表单数据
    jquery中 after append appendTo 的区别
    Python json.dumps 自定义序列化操作
  • 原文地址:https://www.cnblogs.com/rgqancy/p/5340695.html
Copyright © 2011-2022 走看看