数据字典的问题
通过online coding创建表单,填写字典表的相关信息:如果code字段值是int类型,在查看表单列表页面点击“录入”,会弹出空白页面,
后台报错如下:
JEECG-上海-国明(592885920) 2013-10-30 22:06:10查看前后消息
Template processing error: "The only legal comparisons are between two numbers, two strings, or two dates.\nLefthand operand is a freemarker.template.SimpleNumber\nRight hand operand is a freemarker.template.SimpleScalar\n"
The only legal comparisons are between two numbers, two strings, or two dates.
Lefthand operand is a freemarker.template.SimpleNumber
Right hand operand is a freemarker.template.SimpleScalar
The problematic instruction:
----------
==> if dictdata.typecode=="${data['${tableName}']['${po.field_name}']?if_exists?html}"
in user-directive DictData
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateException: The only legal comparisons are between two numbers, two strings, or two dates.
Lefthand operand is a freemarker.template.SimpleNumber
Right hand operand is a freemarker.template.SimpleScalar
......
当把字段code类型设置为String就正常了,具体原因不清楚,等待高手解答!
file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\592885920\QQ\WinTemp\RichOle\I%0]1`~1W~$45YITD89PV@B.jpg
字典表的类型还是尽量字符把
页:
[1]