In my xhtml I have:
<p:commandButton actionListener="#{accountInfoBean.onChangePassword}"
ajax="true" onsuccess="changePasswordDlgVar.show()"
update=":changePassForm:changePasswordPanel" />
My bean:
private String password;
private String confirmPassword;
public void onChangePassword() {
this.password = null;
this.confirmPassword = null;
}
I don't understand how password changes in database and what are onsuccess
, ajax
and update
attributes?