Sorry, I was missing the correct user.agent on my user.agent in the
module. Fixed now

On Jul 21, 3:31 pm, Vinicius Carvalho <[email protected]>
wrote:
> Hi there! Just starting here, so apologize for the noob question:
>
> I have a uitemplate:
> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
>         xmlns:g="urn:import:com.google.gwt.user.client.ui">
>         <ui:style>
>                 .important {
>                         font-weight: bold;
>                 }
>         </ui:style>
>         <g:DockLayoutPanel unit="EM">
>                 <g:north size="3">
>                         <g:MenuBar ui:field="mainMenu">
>
>                         </g:MenuBar>
>                 </g:north>
>                 <g:center>
>                         <g:Label>Body</g:Label>
>                 </g:center>
>         </g:DockLayoutPanel>
> </ui:UiBinder>
>
> and my Widget:
>
> public MainTabPanel() {
>                 initWidget(uiBinder.createAndBindUi(this));
>                 Command cmd = new Command() {
>
>                         public void execute() {
>                                 Window.alert("Clicked");
>
>                         }
>                 };
>                 MenuBar regraMenu = new MenuBar(true);
>                 regraMenu.addItem("Search Rule",cmd);
>                 regraMenu.addItem("Add Rule",cmd);
>                 regraMenu.addItem("Edit Rule",cmd);
>
>                 mainMenu.addItem("Rules",regraMenu);
>
>         }
>
> But when it loads, the first menu entry: Rules is shown, but mouse-
> over does not displays its children, and when clicked, an exception
> occurs:
>
> 15:23:50.957 [ERROR] [com.arkhi.Application] Uncaught exception
> escaped
> com.google.gwt.core.client.JavaScriptException: (TypeError):
> doc.getBoxObjectFor is not a function
>  fileName:http://127.0.0.1:8888
>  lineNumber: 4
>  stack: ([object HTMLBodyElement],[object
> HTMLTableCellElement])@http://127.0.0.1:8888:4
> @:0
> (null,458781,[object MouseEvent],[object HTMLDivElement],[object
> GWTJavaObject])@http://127.0.0.1:8888/com.arkhi.Application/
> hosted.html?com_arkhi_Application:56
> ([object MouseEvent])@http://127.0.0.1:8888:92
> ((function (evt) {var listener, curElem = this;while (curElem && !
> (listener = curElem.__listener)) {curElem = curElem.parentNode;}if
> (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if
> (__gwt_makeJavaInvoke(1)(null, 393249, listener))
> {__gwt_makeJavaInvoke(3)(null, 458781, evt, curElem, listener);}}}),
> [object HTMLDivElement],[object Object])@http://127.0.0.1:8888:32
> @:0
> (null,27,(function (evt) {var listener, curElem = this;while (curElem
> && !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if
> (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if
> (__gwt_makeJavaInvoke(1)(null, 393249, listener))
> {__gwt_makeJavaInvoke(3)(null, 458781, evt, curElem, listener);}}}),
> [object HTMLDivElement],[object Object])@http://127.0.0.1:8888/
> com.arkhi.Application/hosted.html?com_arkhi_Application:56
> ([object MouseEvent])@http://127.0.0.1:8888:3
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
> elServer.java:
> 195)
>     at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 120)
>     at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 507)
>     at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 264)
>     at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
> ava:
> 91)
>     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
>     at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
>     at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> l.java:
> 25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
>     at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
> 157)
>     at
> com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java :
> 1669)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
> nelServer.java:
> 401)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
> 222)
>     at java.lang.Thread.run(Thread.java:619)
>
> What did I miss here?
>
> Regards

-- 
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.

Reply via email to