you should use cookies.
On 8 Ocak, 19:48, "[email protected]" <[email protected]>
wrote:
> I had tried something similar only I was trying to move my textboxes
> into a popup after the GWT app loaded. Not recalling the exact error
> message, I can tell you that it was a problem with GWT not having
> created the elements itself.
>
> Add a form to your HTML and wrap it. The addFormHandler will work.
>
> fp = FormPanel.wrap(DOM.getElementById("loginHolder"), true);
> fp.addFormHandler(new FormHandler() { ......
>
> On Jan 8, 6:28 am, Ice13ill <[email protected]> wrote:
>
> > I'm trying to remember the username and password in a gwt login
> > applicaion.
> > I found this:
> > 1. adding a textbox and passwordbox in the html file
>
> > <input type="text" id="1" name="text"/>
> > <input type="password" id="2" name="password"/>
>
> > (i read that if i add those in the html file, the browser will
> > automatically remember the values).
>
> > 2. DOM.getElementById for each of them
>
> > m_tbUsername = TextBox.wrap(DOM.getElementById("1"));
> > m_tbUsername.addKeyboardListener(this);
>
> > m_tbPassword =
> > PasswordTextBox.wrap(DOM.getElementById("2"));
> > m_tbPassword.addKeyboardListener(this);
> > I also added a Login button with a ClickListener
>
> > Problem:
> > neither of those above (textbox, passwordbox, button) will respond to
> > key or click actions
>
> > So...
> > public void onClick(Widget sender) {
> > Window.alert("b");}
>
> > does nothing
>
> > What's the problem ?
> > Can somebody tell me another method in gwt for remembering username
> > and password ? (a link or tip )
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---