【发布时间】:2012-10-23 09:47:53
【问题描述】:
选择编辑时,会调用支持 bean,但表单字段不会预先填充数据。
<h:form id="EmpDetails">
<h:inputText value="#{empBean.fName}">
<f:validateBean disabled="#{param[skipBeanValidation]}"/>
</h:inputText>
<h:dataTable>
<h:column>
[<h:commandLink value="Edit" immediate="true">
<f:ajax execute="@form" render="@form" listener="#{empBean.edit}"/>
</h:commandLink> ]
Changed to
<h:commandLink value="Edit" action="#{empBean.edit}">
<f:param name="skipValidation" value="true"/>
</h:comamndLink>
</h:column>
</h:dataTable>
<h:commandLink value="#{empBean.addEmployee}"/>
<h:commandLink value="#{empBean.continue}"/>
</h:form>
【问题讨论】: