选择编辑时,将调用支持 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>