this is going to be easy for you guys
hello all !
i'm working on simple createAccount page where login, email and other data are written to mySQL db thru dataProvider.
here's the snippet from my code of create button:
public String createAccount_action(){
Object login=fieldLogin.getText();
Object email=fieldEmail.getText();
Object psw=fieldPsw.getPassword();
membersDataProvider.cursorLast();
membersDataProvider.setValue("members.login",login);
membersDataProvider.setValue("members.email",email);
membersDataProvider.setValue("members.psw",psw);
membersDataProvider.commitChanges();
returnnull;
}
everything works fine except
Object psw=fieldPsw.getPassword();
where fieldPsw is an id of Password Field component
i getNULL here
any ideas ?
thanks in advance !
null

