原来的写法:
<input type="text" class="date" name="fillTime" value="${consumerEducationInstance?.fillTime }" dateFmt="yyyy-MM-dd" readOnly="true"/>
j_ui中的dateFmt="yyyy-MM-dd"在点击页面时间之后才生效
最终改为:
<input type="text" class="date" name="fillTime" value="${consumerEducationInstance?.fillTime.format(‘yyyy-MM-dd‘)}" dateFmt="yyyy-MM-dd" readOnly="true"/>
原文:http://my.oschina.net/anna153/blog/375173