/eova/htmltag/field.tag
onlyloveu2 发布于95月前 1答/1853阅

我想实现的功能: 先建一个表,然后做一个元数据, 再做一个菜单


过程中遇到的问题: 新增行,删除都没有,但不能修改,修改都是空白的.

console 中报以下错误

Sql: select * from eova_object where code = ?

Sql: select * from eova_field where object_code = ? order by order_num

Sql: select * from `emp` where `empno` = ?

Sql: select * from eova_widget where type = ?

JFinal action report -------- 2016-06-18 13:57:25 ------------------------------

Controller  : com.eova.widget.form.FormController.(FormController.java:1)

Method      : update

UrlPara     : emp-9

Interceptor : com.eova.interceptor.LoginInterceptor.(LoginInterceptor.java:1)

--------------------------------------------------------------------------------

>>01:57:25:本地调用不合法,找不到类或者方法(NATIVE_CALL_INVALID):strutil.formatDate 位于6行 资源:/eova/htmltag/field.tag

根据参数未找到匹配的方法

3|%} else if(item.type == "查找框"){%>

4|    

<#find id="${item.en}" name="${item.en}" code="${item.object_code}" field="${item.en}" value="${item.value!item.defaulter}" isNoN="${item.is_required!}" multiple="${item.is_multiple}" disable="${item.is_disable!}" />

5|<%} else if(item.type == "时间框"){%>

6|    

<#time id="${item.en}" name="${item.en}" value="${isEmpty(item.value!) ? '' : strutil.formatDate(item.value, 'yyyy-MM-dd HH:mm:ss')}" isNoN="${item.is_required!}" disable="${item.is_disable!}" options="format:'yyyy-MM-dd HH:mm:ss'" />

7|<%} else if(item.type == "日期框"){%>

8|    

<#time id="${item.en}" name="${item.en}" value="${isEmpty(item.value!) ? '' : strutil.formatDate(item.value, 'yyyy-MM-dd')}" isNoN="${item.is_required!}" disable="${item.is_disable!}" options="format:'yyyy-MM-dd'"/>

  ========================

  调用栈:

  /eova/htmltag/field.tag 行:6

  /eova/htmltag/form.tag 行:6

  /eova/widget/form/update.html 行:20





我的分析过程如下:

后来发现是 选择时间框,但表中的字段是字符型.



[沙发] Jieven
时间框 字段 必须是 时间 时间要么必填,要么禁止编辑 通过AOP来给时间!
提交评论
嘿,我来帮你!