password is one inputSecret object on the form.
I have that after the ajax call , inside onsuccess function, this.password object does not exist (i.e. == null), why?
Code: Select all
function loginClick()
{
//do something
PrimeFaces.ajax.AjaxRequest({
source:'btnLoginId2'
,update:'loginFormGrowl'
,onsuccess:function(data, status, xhr, args) {
var responseXML = xml2Str(data);
var wrongPasswordKeyWord = "wrong Password !";
var wrongPassword = responseXML.includes(wrongPasswordKeyWord);
if(wrongPassword)
{
//do something
}
if(this.password != null)
{
//do something
}
else
{
}
}
}
);
}