Hi,
More informations here :
public void onModuleLoad() {
// Login
final PopupPanel simplePopup = new PopupPanel(false, true);
simplePopup.setWidth("300px");
simplePopup.setAnimationEnabled(true);
simplePopup.setTitle("Authentification");
VerticalPanel panel = new VerticalPanel();
panel.setSpacing(10);
Grid g = new Grid(2, 2);
g.setWidget(0, 0, new Label("Login : "));
g.setWidget(1, 0, new Label("Password"));
final TextBox pw = new PasswordTextBox();
final TextBox login = new TextBox();
g.setWidget(0, 1, login);
g.setWidget(1, 1, pw);
Button okButton = new Button("GO >");
okButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
final String userName = login.getValue();
String password = pw.getValue();
}
});
panel.add(g);
panel.add(okButton);
simplePopup.add(panel);
simplePopup.center();
simplePopup.show();
// Hide loading element
RootPanel.get("loading").getElement().getParentElement
().removeChild(
RootPanel.get("loading").getElement());
}
It works very well and suddenly not, but always work with firefox, it
s very strange :-|
On 29 sep, 06:39, Ben <[email protected]> wrote:
> Need more information to answer the question.
>
> -Ben
>
> On Sep 28, 11:10 am, mars1412 <[email protected]> wrote:
>
> > show more code
> > what is the var 'g'?
> > in which class is it - what's the parent class?
>
> > On Sep 28, 2:17 pm, kristo <[email protected]> wrote:
>
> > > Hi all,
>
> > > Today i restart my eclipse and when i launch my application on Hosted
> > > mode, i have the following problem :
> > > [ERROR] Unable to load module entry point class
> > > com.perso.test.client.Test (see associated exception for details)
> > > com.google.gwt.core.client.JavaScriptException: (Error):
> > > number: -2147467259
> > > description:
> > > at com.google.gwt.dom.client.DOMImplTrident.setInnerText(Native
> > > Method)
> > > at
> > > com.google.gwt.dom.client.Element$.setInnerText$(Element.java:450)
> > > at com.perso.test.client.Test.onModuleLoad(Test.java:61)
>
> > > The problem occurs on the following lines :
> > > g.setWidget(0, 0, new Label("Login : "));
>
> > > It's the first label created.
> > > When i compile my code, same problem on IE but it works good with
> > > FireFox.
>
> > > Any ideas ?
>
> > > Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---