我有一个添加一些数据的对话框:
<p:commandButton id="save"
actionListener="#{adminNationalController.saveTeam}"
action="#{adminManageInternationalTournamentController.updateTeamList}"
value="#{msg.save}" ajax="true"
icon="ui-icon-check"
onmousedown="return validateSubmit('addCombinedTeamForm', ['name'],'lang')"
oncomplete="if (!args.validationFailed) addCombinedTeamDialog.hide()"
process = "@form"
update="lang, name, :manageTournament:dataList,:manageTournament:scroll, :menuForm:growl, :manageTournament:nationalTeam">
<f:setPropertyActionListener
value="#{adminNationalController.newTeamBean}"
target="#{adminManageInternationalTournamentController.newTeamBean}"/>
</p:commandButton>
在saveTeam
我尝试验证数据但action
以防万一验证失败。
是否可以禁止调用动作?