OK. You should override close(boolean) in your dialog or add a DialogStateListener. That will allow you to prevent the dialog from closing until the login has succeeded, or if the user has not provided the required data. G
On Jul 12, 2011, at 10:17 PM, epontes wrote: > Yes, > 'Because I'm doing a login screen , and when the user press "Enter" the > screen will disappear. > The Right way is : > - User fill The userName and password fields , then search in Database > whether exist or not. > positive return true and close de dialog modal, negative, set the message > that User invalid. > > -- > View this message in context: > http://apache-pivot-users.399431.n3.nabble.com/ENTER-IN-A-DIALOG-MODAL-tp3161006p3164511.html > Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
