JSF 2.0 command button 为‘null Converter’设置值“......“时发生转换错误。
来源:互联网 发布:王士营养配餐软件 编辑:程序博客网 时间:2024/06/01 08:32
JSF 2.0 command button 为‘null Converter’设置值“……“时发生转换错误。
为 commandButton标签添加 immediate=”true”属性能够解决以上问题
添加前
<h:commandButton value="your value" action="#{bean.action}"/>
添加后
<h:commandButton value="your value" immediate="true" action="#{bean.action}"/>
immediate属性介绍:
Flag indicating that, if this component is activated by the user, notifications should be delivered to interested listeners and actions immediately (that is, during Apply Request Values phase) rather than waiting until Invoke Application phase.
标志表明,如果这个组件被用户激活,那么应该立即(即,在“申请请求值”阶段期间)将通知递送到感兴趣的监听器和动作,而不是等到“调用应用程序”阶段。
阅读全文
0 0
- JSF 2.0 command button 为‘null Converter’设置值“......“时发生转换错误。
- jsf为‘null Converter’设置值“......“时发生转换错误的一种可能原因
- 将 varchar 值 'null' 转换为数据类型为 int 的列时发生语法错误。
- Hibernate错误记录(二): 将 nvarchar 值转换为 JDBC 数据类型 TIMESTAMP 时发生错误。
- JSF教程三 数据转换与验证 提示错误设置为中文
- 将 varchar 值转换为 JDBC 数据类型 DATE 时发生错误。
- 将expression转换为数据类型int时发生算术溢出错误 解决
- 将 numeric 转换为数据类型 numeric 时发生算术溢出错误。
- Android设置Activity背景为透明style发生的错误
- JSF 自定义Converter疑惑
- JSF Converter使用总结
- mysql查询时给值为null的设置默认值
- DB2查询时如果为null值,设置默认值
- 为Button设置选择器
- null值转换为真正的值
- Php json_encode转换数组,值为null
- SQL将 NULL值转换为0
- oracle查出数据为null时转换
- Html5 canvas学习1-描边 渐变 直线 矩形
- 安装虚拟机教程
- 皮尔逊相关系数和安斯库姆四重奏 pandas corr()函数
- [TensorFlow] demo1 创建100个float32的随机数x_data
- Java并发编程:CountDownLatch、CyclicBarrier和 Semaphore
- JSF 2.0 command button 为‘null Converter’设置值“......“时发生转换错误。
- linux 下安装python3
- 防止帐号重复登录,本地有效
- 请求https错误: unable to find valid certification path to requested target
- android view的讲解 之 view的工作流程(measure,layout,draw)(二)
- python 购物车程序 作业2
- Jenkins-工作区清理插件
- SDUT 1272 面向对象程序设计上机练习十(运算符重载)
- centos7 gitlab安装