GWT usage of Document.get().getElementById("main") vs RootPanel.get("main")

2014-12-10 Thread Jugunu
Hi , I am using GWT in my project and i came across this issue.. I have the 
container structure as below in my main html... If i try to access main 
directly with

RootPanel.get("main")

, i get an error "A widget that has an existing parent widget may not be 
added to the detach list".. It works fine, if i try to get "container", but 
any child element...(all in dev mode, it works fine in production)


  
  
  
  




I don't want to add all above n code now, say with HTMLPanel (its working, 
if i add one by one each HTMLPanel to container)

Now i tried another approach of using this DOM parsing and adding a node..

Document.get().getElementById(GwtCnst.PANL_MAIN).appendChild(mainCanvas.
getElement());


Please advise me on whether it will create a performance issue or any thing 
that i am missing.

Thanks
Jugunu

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: IncompatibleRemoteServiceException & SerializationException Issue.....

2011-07-29 Thread Jugunu
I am not getting it always, after doing a gwtcompile i am getting it
sometimes even in dev server... I tried to deploy it in tomcat after
creating a war, that time the response returns from handler, but
doesn't reach the async call back ..

Previously i was getting serialization error in Arraylist , but now i
am getting only this, not sure what changed...

Note: I am not extending IsSerializable but just extending all my
objects with java.io.Serializable...


On Jul 29, 4:40 pm, Juan Pablo Gardella 
wrote:
> This error ocurr in dev mode too?
>
> 2011/7/29 Jugunu 
>
> > Hi Pablo,
>
> > Thanks a lot for the offer to help..
>
> > I am using gwt 2.3 coupled with gwtp framework, gin & guice..
> > These are the specific external jars i am using...
>
> > gin-1.5-post-gwt-2.2.jar
> > guice-3.0.jar
> > guice-assistedinject-3.0.jar
> > guice-servlet-3.0.jar
> > gwtp-all-0.6.jar
> > javax.inject.jar
> > jaxen-1.1.1.jar
> > GwtAI-Client.jar
> > GwtAI-Core.jar
> > aopalliance.jar
> > mvel2-2.0.17.jar
> > xstream-1.2.2.jar
> > commons-lang-2.4.jar
> > ecj-3.6.2.jar
>
> > Thnaks & Regards
> > Jugunu
>
> > On Jul 28, 8:18 pm, Juan Pablo Gardella 
> > wrote:
> > > Sounds conflicts of version. Put gwt version and your dependencies to
> > help
> > > you.
>
> > > 2011/7/28 Jugunu 
>
> > > > Hi GWT Group,
>
> > > > I am getting a IncompatibleRemoteServiceException  & serialization
> > > > exception... But i have extended my class with
> > > > java.io.Serializable...  Also i have observed that I am having
> > > > duplicate entry in the gwt.rpc file..one starting with"[L" and the
> > > > other without...  Can you give me some guidance to solve this issue?
>
> > > > UserInfo extends AResponse
>
> > > > ***
> > > > .GWT.RPC Content...
>
> > > > com.sample.project.shared.model.UserInfo, true, true, true, true,
> > > > com.sample.project.shared.model.UserInfo/3419115833, 3419115833
> > > > [Lcom.sample.project.shared.model.UserInfo;, true, true, true, true,
> > > > [Lcom.sample.project.shared.model.UserInfo;/3454344643, 3454344643
> > > > com.delta.rafg.coredata.AResponse, true, false, true, false,
> > > > com.delta.rafg.coredata.AResponse/3701931059, 3701931059
> > > > [Lcom.delta.rafg.coredata.AResponse;, true, true, true, true,
> > > > [Lcom.delta.rafg.coredata.AResponse;/1389744197, 1389744197
>
> > > > ERROR LOG...
> > > > ***
>
> > > > Jul 21, 2011 1:25:49 PM org.apache.catalina.core.ApplicationContext
> > > > log
> > > > SEVERE:
> > > > Key[type=com.gwtplatform.dispatch.server.guice.DispatchServiceImpl,
> > > > annotation=[none]]: An IncompatibleRemoteServiceException was thrown
> > > > while processing this call.
> > > > com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
> > > > Invalid type signature for com.sample.project.shared.model.UserInfo
> > > >        at
> > com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315)
> > > >        at
>
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
> > > > 206)
> > > >        at
>
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
> > > > 248)
> > > >        at
>
> > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
> > > > 62)
> > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > > >        at
>
> > com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:
> > > > 263)
> > > >        at
>
> > com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:
> > > > 178)
> > > >        at
>
> > com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:
> > > > 91)
> > > >        at
>
> > com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:
> > > > 62)
> > > >        at
>
> > com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:
> > > > 118

Re: IncompatibleRemoteServiceException & SerializationException Issue.....

2011-07-29 Thread Jugunu
Hi Pablo,

Thanks a lot for the offer to help..

I am using gwt 2.3 coupled with gwtp framework, gin & guice..
These are the specific external jars i am using...

gin-1.5-post-gwt-2.2.jar
guice-3.0.jar
guice-assistedinject-3.0.jar
guice-servlet-3.0.jar
gwtp-all-0.6.jar
javax.inject.jar
jaxen-1.1.1.jar
GwtAI-Client.jar
GwtAI-Core.jar
aopalliance.jar
mvel2-2.0.17.jar
xstream-1.2.2.jar
commons-lang-2.4.jar
ecj-3.6.2.jar


Thnaks & Regards
Jugunu

On Jul 28, 8:18 pm, Juan Pablo Gardella 
wrote:
> Sounds conflicts of version. Put gwt version and your dependencies to help
> you.
>
> 2011/7/28 Jugunu 
>
> > Hi GWT Group,
>
> > I am getting a IncompatibleRemoteServiceException  & serialization
> > exception... But i have extended my class with
> > java.io.Serializable...  Also i have observed that I am having
> > duplicate entry in the gwt.rpc file..one starting with"[L" and the
> > other without...  Can you give me some guidance to solve this issue?
>
> > UserInfo extends AResponse
>
> > ***
> > .GWT.RPC Content...
>
> > com.sample.project.shared.model.UserInfo, true, true, true, true,
> > com.sample.project.shared.model.UserInfo/3419115833, 3419115833
> > [Lcom.sample.project.shared.model.UserInfo;, true, true, true, true,
> > [Lcom.sample.project.shared.model.UserInfo;/3454344643, 3454344643
> > com.delta.rafg.coredata.AResponse, true, false, true, false,
> > com.delta.rafg.coredata.AResponse/3701931059, 3701931059
> > [Lcom.delta.rafg.coredata.AResponse;, true, true, true, true,
> > [Lcom.delta.rafg.coredata.AResponse;/1389744197, 1389744197
>
> > ERROR LOG...
> > ***
>
> > Jul 21, 2011 1:25:49 PM org.apache.catalina.core.ApplicationContext
> > log
> > SEVERE:
> > Key[type=com.gwtplatform.dispatch.server.guice.DispatchServiceImpl,
> > annotation=[none]]: An IncompatibleRemoteServiceException was thrown
> > while processing this call.
> > com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
> > Invalid type signature for com.sample.project.shared.model.UserInfo
> >        at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315)
> >        at
>
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
> > 206)
> >        at
>
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
> > 248)
> >        at
>
> > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
> > 62)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >        at
>
> > com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:
> > 263)
> >        at
> > com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:
> > 178)
> >        at
>
> > com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:
> > 91)
> >        at
>
> > com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:
> > 62)
> >        at
>
> > com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:
> > 118)
> >        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
> > 113)
> >        at
>
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> > 235)
> >        at
>
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> > 206)
> >        at
>
> > com.sample.project.server.guice.projectWebsphereFilter.doFilter(projectWebsphereFilter.java:
> > 27)
> >        at
>
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> > 235)
> >        at
>
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> > 206)
> >        at
>
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> > 233)
> >        at
>
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> > 191)
> >        at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> > 128)
> >        at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> > 102)
> >        at
>
> > org.apache.catalin

IncompatibleRemoteServiceException & SerializationException Issue.....

2011-07-28 Thread Jugunu
Hi GWT Group,

I am getting a IncompatibleRemoteServiceException  & serialization
exception... But i have extended my class with
java.io.Serializable...  Also i have observed that I am having
duplicate entry in the gwt.rpc file..one starting with"[L" and the
other without...  Can you give me some guidance to solve this issue?

UserInfo extends AResponse

***
.GWT.RPC Content...

com.sample.project.shared.model.UserInfo, true, true, true, true,
com.sample.project.shared.model.UserInfo/3419115833, 3419115833
[Lcom.sample.project.shared.model.UserInfo;, true, true, true, true,
[Lcom.sample.project.shared.model.UserInfo;/3454344643, 3454344643
com.delta.rafg.coredata.AResponse, true, false, true, false,
com.delta.rafg.coredata.AResponse/3701931059, 3701931059
[Lcom.delta.rafg.coredata.AResponse;, true, true, true, true,
[Lcom.delta.rafg.coredata.AResponse;/1389744197, 1389744197


ERROR LOG...
***

Jul 21, 2011 1:25:49 PM org.apache.catalina.core.ApplicationContext
log
SEVERE:
Key[type=com.gwtplatform.dispatch.server.guice.DispatchServiceImpl,
annotation=[none]]: An IncompatibleRemoteServiceException was thrown
while processing this call.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
Invalid type signature for com.sample.project.shared.model.UserInfo
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
206)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:
263)
at
com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:
178)
at
com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:
91)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:
62)
at
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:
118)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
113)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
com.sample.project.server.guice.projectWebsphereFilter.doFilter(projectWebsphereFilter.java:
27)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
845)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.google.gwt.user.client.rpc.SerializationException:
Invalid type signature for com.sample.project.shared.model.UserInfo
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.validateTypeVersions(ServerSerializationStreamReader.java:
916)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:
544)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:
119)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader
$ValueReader$8.readValue(ServerSerializationStreamReader.java:137)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:
384)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeClass(ServerSerializationStreamReader.java:
669)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStre