You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by epontes <du...@gmail.com> on 2011/07/12 03:31:39 UTC
"ENTER" IN A DIALOG MODAL
Hello,
I'm Using a Apache pivot to developer a simple app, and i'm facing a problem
with modal Dialog, When the aplication start i set de dialog without window
menu like "close, maximize " etc... whe i press "Enter" keyboard, the
Dialog close automatically.
anybody passed for this problem?
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/ENTER-IN-A-DIALOG-MODAL-tp3161006p3161006.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: "ENTER" IN A DIALOG MODAL
Posted by epontes <du...@gmail.com>.
Greate,
Thanks for your help.!
2011/7/13 gk_brown@verizon.net [via Apache Pivot - Users] <
ml-node+3166220-1198617811-412600@n3.nabble.com>
> 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.
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-pivot-users.399431.n3.nabble.com/ENTER-IN-A-DIALOG-MODAL-tp3161006p3166220.html
> To unsubscribe from "ENTER" IN A DIALOG MODAL, click here<http://apache-pivot-users.399431.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3161006&code=ZHVjYTg2QGdtYWlsLmNvbXwzMTYxMDA2fDIwMTAzNjQ3NjY=>.
>
>
--
*Analista Desenvolvedor Java
*
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/ENTER-IN-A-DIALOG-MODAL-tp3161006p3167978.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: "ENTER" IN A DIALOG MODAL
Posted by Greg Brown <gk...@verizon.net>.
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.
Re: "ENTER" IN A DIALOG MODAL
Posted by epontes <du...@gmail.com>.
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.
Re: "ENTER" IN A DIALOG MODAL
Posted by epontes <du...@gmail.com>.
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/ENTER-IN-A-DIALOG-MODAL-tp3161006p3164486.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: "ENTER" IN A DIALOG MODAL
Posted by Greg Brown <gk...@verizon.net>.
> I'm Using a Apache pivot to developer a simple app, and i'm facing a problem
> with modal Dialog, When the aplication start i set de dialog without window
> menu like "close, maximize " etc... whe i press "Enter" keyboard, the
> Dialog close automatically.
This is by design. It is intended to make it easier for developers to write applications that use dialogs. Enter always closes the dialog with a result of true, and Escape closes it with a result of false.
Is there a reason this behavior is causing a problem for you?