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

[1132 byte] By [dElay] at [2007-11-26 11:07:26]
# 1
Try using Object psw=fieldPsw.getValue();
creonnoir at 2007-7-7 3:21:43 > top of Java-index,Development Tools,Java Tools...
# 2
thanks for response!unfortunately none of this are workingObject psw=fieldPsw.getValue();Object psw=fieldPsw.getText();Object psw=fieldPsw.getPassword();they all return null :(
dElay at 2007-7-7 3:21:43 > top of Java-index,Development Tools,Java Tools...
# 3
Hi,In my project, I has used getText() be ok.Smile
nsqsmile at 2007-7-7 3:21:43 > top of Java-index,Development Tools,Java Tools...
# 4
ok i fixed it !sorry i'm bothering you guys with such a trifle!last night (actually it was dawning : / ) i was apparently too tired to think of virtual forms, i just forgot to add these fields to participate : /sorry again and thanks for feedback
dElay at 2007-7-7 3:21:43 > top of Java-index,Development Tools,Java Tools...