Hi *,

before i develop a testing project for this issue i ask here. Maybe someone 
can see my fault.

I try to develop an user registration. This will be managed by a 
RegistrationPanel. On this a LoginPanel and a NewUserPanel will be exchanged 
by toggling the visible state while pressing the newUser Button. So far i 
hope its simple.

Some Textfields on the NewUserPanel contain an InputValidator (EMail, Phone, 
etc.). They avoiding submitting the NewUserDataForm if required data are not 
present.

RegistartionPanel
add(LoginPanel)
  add(UserIdTextField)
  add(NewUserButton)
add(NewUserPanel)
  add(EMailTextField)
    add(EMailValidator)
  add(UserIdTextField)
    add(MinStringLenghtValidator(5))
  add(NameTextField)
    add(MinStringLenghtValidator(3))
  add(GobackButton)

All panels share a user POJO. They accessing it by their own property model 
instance.

So the following process happens:
1. LoginPanel will be presented
2. Press Button:NewUser (LoginPanel.visible=false, NewUserPanel.visible=true)
3. Add invalid email data and submit (validation of all fields failed - no 
submit)
4. Press Button:Goback to LoginPanel (LoginPanel.visible=true, 
NewUserPanel.visible=false)
5. Load userdata while logging in correctly (LoginPanel.visible=false, 
NewUserPanel.visible=true)

The effect is that only the email field contains data of the user logged in, 
but not the others. The model contains data. The fields without data present 
didn't have been edited. Maybe i have to reset some error messages or the 
validators?

Any help is appreciated
Thanks
Per

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to