Re: Customizing Serialization process for exceptions In GWT
Can anyone atleast let me know if what i am looking at is feasible in first place. Thank you! On Nov 14, 3:16 pm, keyboard_samurai wrote: > Hi, > > I am curious to find out if we can override few features in GWT to > achieve the following :- In GWT if we want an exception to be > propagated to the client, the interfaces (extending RemoteService) > should have the throws explicitly declared. In our project we have an > exception hierarchy defined and we would like the developers not to > explicitly mention the throws keyword in the interface but instead > some customization being able to be done in GWT which would serialize > and send across this hierarchy if the server side throws it... > > for eg:- if the base class of the exception hierarchy is > com.sample.ParentException .. GWT should automatically serialize this > and send across to client side instead of developers explicitly > declaring the exception would be thrown in the interface definition. > > Let me know if this is possible throught GWT? We are using GWT 1.7.1 > for this... > > Thank you in advance... > > Cheers! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Customizing Serialization process for exceptions In GWT
Hi, I am curious to find out if we can override few features in GWT to achieve the following :- In GWT if we want an exception to be propagated to the client, the interfaces (extending RemoteService) should have the throws explicitly declared. In our project we have an exception hierarchy defined and we would like the developers not to explicitly mention the throws keyword in the interface but instead some customization being able to be done in GWT which would serialize and send across this hierarchy if the server side throws it... for eg:- if the base class of the exception hierarchy is com.sample.ParentException .. GWT should automatically serialize this and send across to client side instead of developers explicitly declaring the exception would be thrown in the interface definition. Let me know if this is possible throught GWT? We are using GWT 1.7.1 for this... Thank you in advance... Cheers! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Loading the application very slowly
The issue was happening because IE probably slows down with the amount of JS file being loaded. I recompiled the code to get generated in obfuscated mode .. the size of JS dropped and started rendering fast :) Cheers! On Nov 6, 8:20 pm, keyboard_samurai wrote: > I am sure ppl might have encountered such issues with GWT 1.7.1. Let > me know if u have any idea for this > > On Nov 6, 11:02 am, keyboard_samurai wrote: > > > No I cannot use it as I am using GWT 1.7.1 not the 2.x version.. > > > This is what is making this task more challenging now .. > > > On Nov 6, 10:58 am, zixzigma wrote: > > > > Have you tried Code Splitting > > > ?http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html > > > > are you Lazy Loading your widgets ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Loading the application very slowly
I am sure ppl might have encountered such issues with GWT 1.7.1. Let me know if u have any idea for this On Nov 6, 11:02 am, keyboard_samurai wrote: > No I cannot use it as I am using GWT 1.7.1 not the 2.x version.. > > This is what is making this task more challenging now .. > > On Nov 6, 10:58 am, zixzigma wrote: > > > > > Have you tried Code Splitting > > ?http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html > > > are you Lazy Loading your widgets ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Loading the application very slowly
No I cannot use it as I am using GWT 1.7.1 not the 2.x version.. This is what is making this task more challenging now .. On Nov 6, 10:58 am, zixzigma wrote: > Have you tried Code Splitting > ?http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html > > are you Lazy Loading your widgets ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Loading the application very slowly
HI, Does anyone have any pointers for this ? Also not sure if speed tracer can be used in this case.. On Nov 5, 9:59 pm, keyboard_samurai wrote: > Hi All, > > I am facing a issue which seems to have cropped up in recent times in > our code. We are using GWT 1.7.1 along with GXT 2.2 widget libraries. > Till a few days back the application was getting loaded i.e with the > data within 5-10 seconds ... the cache.html which was getting > generated back then was around 12.8 MB...This being a intranet based > application so we didnt have to worry on the application statup. We > been making continuous upgrades to code base and now the generated > cache.html size is somewhere around 13.5 MB but this has affected our > application startup time to increase from 10 seconds to 1 min 10 > seconds. This issue is noticeable only in IE6 and not on other > browsers like FF and Chrome. > > On looking via the HTTP Watch i noticed that the 12.8 MB cache.html > file gets downloaded in 2-3 seconds and the javascript statements > executed within the file takes around rest 3-4 seconds, but the 13.5 > MB cache file was getting downloaded in 28-30 seconds and also the > javascript within it was taking around 30 seconds to execute. Is this > normal ? also on comparing the no of lines of code within > the .cache.html file i noticed it has just increased from 98k to > 98.5k ... > > not sure whats going wrong here bcoz of which the application has > slowed down considerably ... Can anyone please provide pointers on how > to tackle this issue ? > > 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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Loading the application very slowly
Hi All, I am facing a issue which seems to have cropped up in recent times in our code. We are using GWT 1.7.1 along with GXT 2.2 widget libraries. Till a few days back the application was getting loaded i.e with the data within 5-10 seconds ... the cache.html which was getting generated back then was around 12.8 MB...This being a intranet based application so we didnt have to worry on the application statup. We been making continuous upgrades to code base and now the generated cache.html size is somewhere around 13.5 MB but this has affected our application startup time to increase from 10 seconds to 1 min 10 seconds. This issue is noticeable only in IE6 and not on other browsers like FF and Chrome. On looking via the HTTP Watch i noticed that the 12.8 MB cache.html file gets downloaded in 2-3 seconds and the javascript statements executed within the file takes around rest 3-4 seconds, but the 13.5 MB cache file was getting downloaded in 28-30 seconds and also the javascript within it was taking around 30 seconds to execute. Is this normal ? also on comparing the no of lines of code within the .cache.html file i noticed it has just increased from 98k to 98.5k ... not sure whats going wrong here bcoz of which the application has slowed down considerably ... Can anyone please provide pointers on how to tackle this issue ? 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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Adding custom code before making RPC calls to server,,,,
Thanks you All!! Let me check those and get back incase of anyissues... Thanks again! Cheers! On Apr 25, 3:24 pm, Peter Simun wrote: > You can override ProxyCreator and provide your own super class for > your RPC services (by default RPC services extends > RemoteServiceProxy). > This allows you to override doInvoke method and put additional data > into payload. > > In our project (acris-security) we add session ID into the payload in > this way so you can inspire by the code: > - SessionEnabledRemoteServiceProxy - overriding doInvoke method > -http://code.google.com/p/acris/source/browse/trunk/acris-security/src... > - SessionProxyCreator - overriding RPC service proxy > creator-http://code.google.com/p/acris/source/browse/trunk/acris-security/src... > - SessionRemoteServiceProxyGenerator - overrinding GWT generator > -http://code.google.com/p/acris/source/browse/trunk/acris-security/src... > > and finally, enable generator on all RemoteService interfaces > > class="sk.seges.acris.security.rebind.SessionRemoteServiceProxyGenerator"> > class="com.google.gwt.user.client.rpc.RemoteService" /> > > > or you can enable this generator only for specific service interfaces. > > On 25. Apr, 07:38 h., mmoossen wrote: > > > > > hi samurai! > > > check out this > > thread:http://groups.google.com/group/google-web-toolkit/browse_thread/threa... > > > HTH > > Michael > > > On Apr 24, 9:09 pm, keyboard_samurai wrote: > > > > Hi , > > > > I need to know if there is a way we can inject in a piece of code when > > > the RPC call is made to server. Basically in a typical example call > > > using RPC would have something like RemoteService.getData(String > > > param, AsyncCallback callback). Here on call to getData i would like > > > to transparently add in a piece of code which gets called whenever > > > call is being made to server via RPC. I understand the AsyncCall code > > > is being written by GWT during compile time. Is there a way we can > > > modify to get a custom code in ??? > > > > Let me Know ... Hope my problem statement was clear > > > > Thanks ! > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google Web Toolkit" group. > > > To post to this group, send email to google-web-tool...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-web-toolkit+unsubscr...@googlegroups.com. > > > For more options, visit this group > > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Adding custom code before making RPC calls to server,,,,
Hi , I need to know if there is a way we can inject in a piece of code when the RPC call is made to server. Basically in a typical example call using RPC would have something like RemoteService.getData(String param, AsyncCallback callback). Here on call to getData i would like to transparently add in a piece of code which gets called whenever call is being made to server via RPC. I understand the AsyncCall code is being written by GWT during compile time. Is there a way we can modify to get a custom code in ??? Let me Know ... Hope my problem statement was clear Thanks ! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
After i remove the dependency on Google App Engine i.e after unchecking "Use Google App Engine" How do i configure the GWT plugin to use tomcat ? is that possible ? or should i be building a war and deploy the code on tomcat and then check ? Thanks for your patience ... On Apr 20, 11:06 pm, kozura wrote: > As mentioned before, this is because you appear to have Google App > Engine enabled, not from Jetty itself. You need to remove GAE from > your project. If you see something like: > > -server com.google.appengine.tools.development.gwt.AppEngineLauncher > > in the arguments, you are running with GAE. To remove this, open > Properties under the project, click on Google->App Engine and uncheck > "Use Google App Engine". > > On Apr 20, 11:31 am, keyboard_samurai wrote: > > > > > The Jetty Environment does not let me create database connections as > > it has restricted the API usage.:) > > > and hence i am getting an exception which has been described in the > > first post. > > > Thanks! > > > On Apr 20, 10:05 pm, kozura wrote: > > > > Not sure where your trouble spot is, but the easiest way is just to > > > use GWT-RPC, as described here with an example: > > > >http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat... > > > > Create a Synchronous and matching Asynchronous interface, then in the > > > server code implement the Synchronous interface to do all your server- > > > side stuff, access databases, whatever. When you start Hosted/Dev > > > mode, GWT will start a Jetty (or tomcat in older GWT versions) server > > > which runs your server code concurrently with your client code so that > > > you can debug them together. > > > > On Apr 20, 10:45 am, keyboard_samurai wrote: > > > > > "Not at all, you can do anything you want in Java on the server side, > > > > including connecting to databases etc, and have it work in hosted > > > > (development) mode. " > > > > > Can you tell me how ??? > > > > > Thanks !! > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
BTW i am on GWT 1.7. On Apr 20, 10:31 pm, keyboard_samurai wrote: > The Jetty Environment does not let me create database connections as > it has restricted the API usage.:) > > and hence i am getting an exception which has been described in the > first post. > > Thanks! > > On Apr 20, 10:05 pm, kozura wrote: > > > > > > > Not sure where your trouble spot is, but the easiest way is just to > > use GWT-RPC, as described here with an example: > > >http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat... > > > Create a Synchronous and matching Asynchronous interface, then in the > > server code implement the Synchronous interface to do all your server- > > side stuff, access databases, whatever. When you start Hosted/Dev > > mode, GWT will start a Jetty (or tomcat in older GWT versions) server > > which runs your server code concurrently with your client code so that > > you can debug them together. > > > On Apr 20, 10:45 am, keyboard_samurai wrote: > > > > "Not at all, you can do anything you want in Java on the server side, > > > including connecting to databases etc, and have it work in hosted > > > (development) mode. " > > > > Can you tell me how ??? > > > > Thanks !! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
The Jetty Environment does not let me create database connections as it has restricted the API usage.:) and hence i am getting an exception which has been described in the first post. Thanks! On Apr 20, 10:05 pm, kozura wrote: > Not sure where your trouble spot is, but the easiest way is just to > use GWT-RPC, as described here with an example: > > http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat... > > Create a Synchronous and matching Asynchronous interface, then in the > server code implement the Synchronous interface to do all your server- > side stuff, access databases, whatever. When you start Hosted/Dev > mode, GWT will start a Jetty (or tomcat in older GWT versions) server > which runs your server code concurrently with your client code so that > you can debug them together. > > On Apr 20, 10:45 am, keyboard_samurai wrote: > > > "Not at all, you can do anything you want in Java on the server side, > > including connecting to databases etc, and have it work in hosted > > (development) mode. " > > > Can you tell me how ??? > > > Thanks !! > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
"Not at all, you can do anything you want in Java on the server side, including connecting to databases etc, and have it work in hosted (development) mode. " Can you tell me how ??? Thanks !! On Apr 20, 8:37 pm, kozura wrote: > Not at all, you can do anything you want in Java on the server side, > including connecting to databases etc, and have it work in hosted > (development) mode. > > The only restriction pointed out above is if you have GAE turned on, > you cannot use databases or other things that cannot work in a > deployed App Engine. > > On Apr 20, 9:14 am, keyboard_samurai wrote: > > > Hi Jason Thanks for the quick reply .. About GWT-Dispatch i will > > surely look into it from my project point of view i dont want to have > > one more framework over and above GWT now on server side ... But yes > > we are using spring. > > > As i understand this issue.. we cannot connect to database using > > Hosted Mode. Then in projects where you need database support is > > everyone developing just the client part using the GWT Plugin and > > enable the database support when they deploy it on to tomcat ? > > > This seems too long a process to follow. > > > Please let me know > > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT RemoteServiceServlet Implementation Issue ....Serialization Error
The version of GWT used is 1.7 On Apr 20, 8:27 pm, keyboard_samurai wrote: > Hi, > > I have a requirement where my application is being accessed from a > different portal itself. The portal developed is on a different > technology and has a link to my application. When i directly access > the application things seem to work fine. But when accessed via link > it throws this strange serialization exception. I am sure GWT wouldnt > have this restriction of not being called from a different portal... > Below is the log and exception trace that i get ... > > greetServlet: ERROR: The module path requested, /pp/pp/XYZ0001/my/test- > project/simplegwtproject/, is not in the same web application as this > servlet, /my/test-project. Your module may not be properly configured > or your client and server code maybe out of date. > > greetServlet: WARNING: Failed to get the SerializationPolicy > '219198A02BFC1DA663CA1A667C5D07B9' for module 'https://testdomain.com: > 8443/pp/pp/XYZ0001/my/test-project/simplegwtproject/'; a legacy, 1.3.3 > compatible, serialization policy will be used. You may experience > SerializationExceptions as a result. > > greetServlet: An IncompatibleRemoteServiceException was thrown while > processing this call. > com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: > Type 'com.test.client.Custom' was not assignable to > 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a > custom field serializer. For security purposes, this type will not be > deserialized. > > I looked into the GWT's RemoteServiceServlet code and it looks like > the it fails doGetSerializationPolicy( > HttpServletRequest request, String moduleBaseURL, String > strongName) method. > > Wherein there is a check being made between contextpath and module > path > > i.e if (modulePath == null || !modulePath.startsWith(contextPath)) { > > since module path has a value of " /pp/pp/XYZ0001/my/test-project/ > simplegwtproject/" and contextPath has a value "/my/test-project". > contextpath is part of the module path but doesnt start with it. > > Can anyone help me to fix this issue ? I am not sure if this is GWT > Remote Servlet Implementation Issue > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using Dictionary with frames and getting null
Hello, I am using GWT's Dictionary support and my application is being loaded within a frame assigned. For eg the code is testGWT is the name of my application and within the web.xml the welcome page has been set as TestGWT.html. The html file has a javascript variable defined var userDetails = { userName: "John Henry", companyName: "XYZ" }; Within the module entry the code written is Dictionary userDetails = Dictionary.getDictionary("userDetails"); But this seems to be returning null. I presume this is because that dictionary api is trying to locate the javascript variable in master frame and not in the child one. Is it possible for dictionary api to look into the child frame i.e bottomFrame for loading the values ? 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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT RemoteServiceServlet Implementation Issue ....Serialization Error
Hi, I have a requirement where my application is being accessed from a different portal itself. The portal developed is on a different technology and has a link to my application. When i directly access the application things seem to work fine. But when accessed via link it throws this strange serialization exception. I am sure GWT wouldnt have this restriction of not being called from a different portal... Below is the log and exception trace that i get ... greetServlet: ERROR: The module path requested, /pp/pp/XYZ0001/my/test- project/simplegwtproject/, is not in the same web application as this servlet, /my/test-project. Your module may not be properly configured or your client and server code maybe out of date. greetServlet: WARNING: Failed to get the SerializationPolicy '219198A02BFC1DA663CA1A667C5D07B9' for module 'https://testdomain.com: 8443/pp/pp/XYZ0001/my/test-project/simplegwtproject/'; a legacy, 1.3.3 compatible, serialization policy will be used. You may experience SerializationExceptions as a result. greetServlet: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 'com.test.client.Custom' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be deserialized. I looked into the GWT's RemoteServiceServlet code and it looks like the it fails doGetSerializationPolicy( HttpServletRequest request, String moduleBaseURL, String strongName) method. Wherein there is a check being made between contextpath and module path i.e if (modulePath == null || !modulePath.startsWith(contextPath)) { since module path has a value of " /pp/pp/XYZ0001/my/test-project/ simplegwtproject/" and contextPath has a value "/my/test-project". contextpath is part of the module path but doesnt start with it. Can anyone help me to fix this issue ? I am not sure if this is GWT Remote Servlet Implementation Issue -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
Hi Jason Thanks for the quick reply .. About GWT-Dispatch i will surely look into it from my project point of view i dont want to have one more framework over and above GWT now on server side ... But yes we are using spring. As i understand this issue.. we cannot connect to database using Hosted Mode. Then in projects where you need database support is everyone developing just the client part using the GWT Plugin and enable the database support when they deploy it on to tomcat ? This seems too long a process to follow. Please let me know Thanks On Apr 19, 9:10 pm, Jason Hatton wrote: > keyboard-samurai I would highly recommend you check out the Google I/O GWT > Best Practices <http://www.youtube.com/watch?v=PDuhR18-EdM> video. It talks > about gwt-dispatch and MVP. > > You will want to implement your connections to Oracle/Hibernate in the > GWT-RPC servlets. The project I am on we are using our own extension of the > gwt-dispatch project's servlet to initialize a Spring context. > > Our web.xml looks like this: > > > contextConfigLocation > classpath:applicationContext.xml > > > org.springframework.web.context.ContextLoaderListener > > > > > dispatchServlet > com.own.custom.extended.server.StandardDispatchServiceServlet > > > > dispatchServlet > /client/dispatch > > > Our applicationContext.xml sits in the WEB-INF/classes directory. Nothing > but standard Spring stuff there including the necessary things to get > Hibernate working. If you want to skip Spring I am not going to be of much > help there but, I am sure it can be done. > > Jas > > > > On Mon, Apr 19, 2010 at 10:53 AM, keyboard_samurai wrote: > > awesome do we have a article how to get this done ??? > > > and also does it gets integrated with eclipse ? > > > Regards, > > -Yogesh > > > On Apr 19, 8:45 pm, Jason Hatton wrote: > > > You will get that with just GWT. > > > > On Mon, Apr 19, 2010 at 9:55 AM, keyboard_samurai > > wrote: > > > > Then do you replace tomcat with GAE ? i want to have the benefits of > > > > Hosted mode i.e auto compile and debug ??? > > > > > On Apr 19, 5:32 pm, Sripathi Krishnan > > > > wrote: > > > > > Disable Google App Engine in your eclipse settings. GAE does not > > allow > > > > you > > > > > to use databases or open network connections. > > > > > > --Sri > > > > > > On 19 April 2010 17:59, keyboard_samurai wrote: > > > > > > > Hello, > > > > > > > I need to know if anyone is able to query the database for fetching > > > > > > data. This is a common requirement for most of the applications to > > use > > > > > > database.If Hosted Mode doesnt support it then how are the users of > > > > > > GWT developing ? > > > > > > > Do let me know !! > > > > > > > I get an exception while connecting to database using JDBC below is > > > > > > the trace of it. > > > > > > > java.lang.NoClassDefFoundError: > > java.lang.management.ManagementFactory > > > > > > is a restricted class. Please see the Google App Engine > > developer's > > > > > > guide for more details. > > > > > > at > > > com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: > > > > > > 51) > > > > > > at > > > oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:270) > > > > > > at > > oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213) > > > > > > at java.security.AccessController.doPrivileged(Native Method) > > > > > > > Thanks! > > > > > > > -- > > > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > > > "Google Web Toolkit" group. > > > > > > To post to this group, send email to > > > > google-web-tool...@googlegroups.com. > > > > > > To unsubscribe from this group, send email to > > > > > > google-web-toolkit+unsubscr...@googlegroups.com > > > > > > > > > > > > > > > > . > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > > > > -- > > > > > You received this message because you are subscribed to the Goo
Re: Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
awesome do we have a article how to get this done ??? and also does it gets integrated with eclipse ? Regards, -Yogesh On Apr 19, 8:45 pm, Jason Hatton wrote: > You will get that with just GWT. > > > > On Mon, Apr 19, 2010 at 9:55 AM, keyboard_samurai wrote: > > Then do you replace tomcat with GAE ? i want to have the benefits of > > Hosted mode i.e auto compile and debug ??? > > > On Apr 19, 5:32 pm, Sripathi Krishnan > > wrote: > > > Disable Google App Engine in your eclipse settings. GAE does not allow > > you > > > to use databases or open network connections. > > > > --Sri > > > > On 19 April 2010 17:59, keyboard_samurai wrote: > > > > > Hello, > > > > > I need to know if anyone is able to query the database for fetching > > > > data. This is a common requirement for most of the applications to use > > > > database.If Hosted Mode doesnt support it then how are the users of > > > > GWT developing ? > > > > > Do let me know !! > > > > > I get an exception while connecting to database using JDBC below is > > > > the trace of it. > > > > > java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory > > > > is a restricted class. Please see the Google App Engine developer's > > > > guide for more details. > > > > at > > > com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: > > > > 51) > > > > at > > > > oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:270) > > > > at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213) > > > > at java.security.AccessController.doPrivileged(Native Method) > > > > > Thanks! > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Google Web Toolkit" group. > > > > To post to this group, send email to > > google-web-tool...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-web-toolkit+unsubscr...@googlegroups.com > > > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > > To post to this group, send email to google-web-toolkit@googlegroups.com > > . > > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > > . > > > For more options, visit this group athttp:// > > groups.google.com/group/google-web-toolkit?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Spring MVC with GWT RPC
The issue was somehow the init(ServletConfig) was not getting called... I made the controller ServletConfigAware and manually gave a call to super.init(config) and that worked ... On Apr 18, 7:26 pm, keyboard_samurai wrote: > Also i see a alertbox by the browser that "This page is accessing > information that is not under its control. This poses a security risk. > Do you want to continue ? > > This is the only thing which seems different that the local > environment. I don't get this alert msg in local environment. > > Please advice how do i remove this as well... > > Regards, > -Yogesh > > On Apr 18, 6:00 pm, keyboard_samurai wrote: > > > > > Hi, > > > I am using GWT RPC with Spring MVC.. the integration details is > > similar as described > > @http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in- > > The integration works fine when deployed and tested on local servers. > > When we deploy the war on an enterprise environment with SSO we face a > > null pointer exception. The application unlike in the development mode > > opens in a popup within a frame (This frame cannot be removed). Below > > is the exception that we get ... > > > SEVERE: Exception while dispatching incoming RPC call > > java.lang.NullPointerException > > at > > javax.servlet.GenericServlet.getServletName(GenericServlet.java:322) > > at javax.servlet.GenericServlet.log(GenericServlet.java:277) > > at > > com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java: > > 219) > > at > > com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java: > > 117) > > at > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java: > > 429) > > at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java: > > 234) > > at > > com.test.server.generic.controller.GWTRPCController.processCall(GWTRPCController.java: > > 94) > > at > > com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java: > > 86) > > at > > com.test.server.generic.controller.GWTRPCController.handleRequest(GWTRPCController.java: > > 63) > > at > > org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java: > > 48) > > at > > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: > > 875) > > at > > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java: > > 807) > > at > > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: > > 571) > > at > > org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java: > > 511) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java: > > 637) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java: > > 717) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: > > 290) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: > > 206) > > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: > > 219) > > 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: > > 293) > > at > > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) > > at > > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) > > at > > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) > > at > > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > > 698) > > at org.apache.jk.common.ChannelSocket > > $SocketConnection.runIt(ChannelSocket.java:891) > > at org.apache.tomcat.util.threads.ThreadPool >
Re: Spring MVC with GWT RPC
Any pointers for identifying what could be the problem? On Apr 18, 7:26 pm, keyboard_samurai wrote: > Also i see a alertbox by the browser that "This page is accessing > information that is not under its control. This poses a security risk. > Do you want to continue ? > > This is the only thing which seems different that the local > environment. I don't get this alert msg in local environment. > > Please advice how do i remove this as well... > > Regards, > -Yogesh > > On Apr 18, 6:00 pm, keyboard_samurai wrote: > > > > > Hi, > > > I am using GWT RPC with Spring MVC.. the integration details is > > similar as described > > @http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in- > > The integration works fine when deployed and tested on local servers. > > When we deploy the war on an enterprise environment with SSO we face a > > null pointer exception. The application unlike in the development mode > > opens in a popup within a frame (This frame cannot be removed). Below > > is the exception that we get ... > > > SEVERE: Exception while dispatching incoming RPC call > > java.lang.NullPointerException > > at > > javax.servlet.GenericServlet.getServletName(GenericServlet.java:322) > > at javax.servlet.GenericServlet.log(GenericServlet.java:277) > > at > > com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java: > > 219) > > at > > com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java: > > 117) > > at > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java: > > 429) > > at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java: > > 234) > > at > > com.test.server.generic.controller.GWTRPCController.processCall(GWTRPCController.java: > > 94) > > at > > com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java: > > 86) > > at > > com.test.server.generic.controller.GWTRPCController.handleRequest(GWTRPCController.java: > > 63) > > at > > org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java: > > 48) > > at > > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: > > 875) > > at > > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java: > > 807) > > at > > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: > > 571) > > at > > org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java: > > 511) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java: > > 637) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java: > > 717) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: > > 290) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: > > 206) > > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: > > 219) > > 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: > > 293) > > at > > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) > > at > > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) > > at > > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) > > at > > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > > 698) > > at org.apache.jk.common.ChannelSocket > > $SocketConnection.runIt(ChannelSocket.java:891) > > at org.apache.tomcat.util.threads.ThreadPool > > $ControlRunnable.run(ThreadPool.java:690) > > at java.lang.Thread.run(Thread.java:619) > > > Th
Re: Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
Then do you replace tomcat with GAE ? i want to have the benefits of Hosted mode i.e auto compile and debug ??? On Apr 19, 5:32 pm, Sripathi Krishnan wrote: > Disable Google App Engine in your eclipse settings. GAE does not allow you > to use databases or open network connections. > > --Sri > > On 19 April 2010 17:59, keyboard_samurai wrote: > > > > > Hello, > > > I need to know if anyone is able to query the database for fetching > > data. This is a common requirement for most of the applications to use > > database.If Hosted Mode doesnt support it then how are the users of > > GWT developing ? > > > Do let me know !! > > > I get an exception while connecting to database using JDBC below is > > the trace of it. > > > java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory > > is a restricted class. Please see the Google App Engine developer's > > guide for more details. > > at > > > com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: > > 51) > > at > > oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:270) > > at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213) > > at java.security.AccessController.doPrivileged(Native Method) > > > Thanks! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using Oracle and Hibernate in Google Web Toolkit's Hosted Mode.
Hello, I need to know if anyone is able to query the database for fetching data. This is a common requirement for most of the applications to use database.If Hosted Mode doesnt support it then how are the users of GWT developing ? Do let me know !! I get an exception while connecting to database using JDBC below is the trace of it. java.lang.NoClassDefFoundError: java.lang.management.ManagementFactory is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: 51) at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:270) at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213) at java.security.AccessController.doPrivileged(Native Method) Thanks! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Spring MVC with GWT RPC
Also i see a alertbox by the browser that "This page is accessing information that is not under its control. This poses a security risk. Do you want to continue ? This is the only thing which seems different that the local environment. I don't get this alert msg in local environment. Please advice how do i remove this as well... Regards, -Yogesh On Apr 18, 6:00 pm, keyboard_samurai wrote: > Hi, > > I am using GWT RPC with Spring MVC.. the integration details is > similar as described > @http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in- > The integration works fine when deployed and tested on local servers. > When we deploy the war on an enterprise environment with SSO we face a > null pointer exception. The application unlike in the development mode > opens in a popup within a frame (This frame cannot be removed). Below > is the exception that we get ... > > SEVERE: Exception while dispatching incoming RPC call > java.lang.NullPointerException > at > javax.servlet.GenericServlet.getServletName(GenericServlet.java:322) > at javax.servlet.GenericServlet.log(GenericServlet.java:277) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java: > 219) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java: > 117) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java: > 429) > at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java: > 234) > at > com.test.server.generic.controller.GWTRPCController.processCall(GWTRPCController.java: > 94) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java: > 86) > at > com.test.server.generic.controller.GWTRPCController.handleRequest(GWTRPCController.java: > 63) > at > org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java: > 48) > at > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: > 875) > at > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java: > 807) > at > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: > 571) > at > org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java: > 511) > at javax.servlet.http.HttpServlet.service(HttpServlet.java: > 637) > at javax.servlet.http.HttpServlet.service(HttpServlet.java: > 717) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: > 290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: > 206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: > 219) > 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: > 293) > at > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) > at > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) > at > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) > at > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > 698) > at org.apache.jk.common.ChannelSocket > $SocketConnection.runIt(ChannelSocket.java:891) > at org.apache.tomcat.util.threads.ThreadPool > $ControlRunnable.run(ThreadPool.java:690) > at java.lang.Thread.run(Thread.java:619) > > The code use for marshalling and unmarshalling of the RPC request and > response is .. > > RPCRequest rpcRequest = RPC.decodeRequest(payload, > this.remoteServiceClass, this); > return RPC.invokeAndEncodeResponse(this.remoteService, rpcRequest > .getMethod(), > rpcRequest.getParameters(),rpcRequest.getSerializationPolicy()); > > Please let me know if incase anyone has faced this issue before. > > This approach seems to be working when i deploy it on my local tomcat > but creates a issue on enterprise environment with SSO (Siteminder) > > Thanks in advance!
Spring MVC with GWT RPC
Hi, I am using GWT RPC with Spring MVC.. the integration details is similar as described @ http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/. The integration works fine when deployed and tested on local servers. When we deploy the war on an enterprise environment with SSO we face a null pointer exception. The application unlike in the development mode opens in a popup within a frame (This frame cannot be removed). Below is the exception that we get ... SEVERE: Exception while dispatching incoming RPC call java.lang.NullPointerException at javax.servlet.GenericServlet.getServletName(GenericServlet.java:322) at javax.servlet.GenericServlet.log(GenericServlet.java:277) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java: 219) at com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java: 117) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java: 429) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java: 234) at com.test.server.generic.controller.GWTRPCController.processCall(GWTRPCController.java: 94) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java: 86) at com.test.server.generic.controller.GWTRPCController.handleRequest(GWTRPCController.java: 63) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java: 48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java: 875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java: 807) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 571) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java: 511) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 637) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 219) 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: 293) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 698) at org.apache.jk.common.ChannelSocket $SocketConnection.runIt(ChannelSocket.java:891) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) The code use for marshalling and unmarshalling of the RPC request and response is .. RPCRequest rpcRequest = RPC.decodeRequest(payload, this.remoteServiceClass, this); return RPC.invokeAndEncodeResponse(this.remoteService, rpcRequest .getMethod(), rpcRequest.getParameters(),rpcRequest.getSerializationPolicy()); Please let me know if incase anyone has faced this issue before. This approach seems to be working when i deploy it on my local tomcat but creates a issue on enterprise environment with SSO (Siteminder) 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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 'Stop running this script' message in browsers
in the above code i see that the records start appearing in browser one by one ... is there a way i can find that all my incremental commands have done processing their logic so i can go ahead removing the message or progress bar ? Thanks for the help! On Apr 5, 9:08 am, keyboard_samurai wrote: > is there any example for this ? the logic for my code as of now is > > // some pre tasks > DeferredCommand.addCommand(new IncrementalCommand()){ > // some heavy stuff > // out here associate the rows to be shown in DOM} > > // some post task > > On Apr 3, 10:47 pm, Ian Bambury wrote: > > > > > Well, don't show it while that is happening, then :-) - show a twirling > > pizza or a 'Hang On A Minute' message or a progress bar (which is perfectly > > possible in this situation) > > > Ian > > >http://examples.roughian.com > > > On 3 April 2010 18:41, keyboard_samurai wrote: > > > > hi has anyone done anything like this ? or anything similar ? > > > > Cheers! > > > > On Apr 3, 12:24 am, keyboard_samurai wrote: > > > > Agree but since this is a tree i wudnt like the subnodes to be seen > > > > until its all done generating... similarly when a user selects > > > > collapse wudnt like to show the user each entry getting deleted from > > > > the screen. > > > > > This is the behaviour i see as of now using incremental command. > > > > > Any ideas ? > > > > > On Apr 2, 11:46 pm, kozura wrote: > > > > > > Can always throw up a modal dialog, maybe with a glass panel, so user > > > > > can't interact until it's all done. 'course in general this isn't > > > > > very nice to the user.. > > > > > > On Apr 2, 12:08 pm, keyboard_samurai wrote: > > > > > > > Hi .. Sorry for the late reply but is there a way i can hold the > > > > > > browser till the incremental command is done finishing its task ? > > > > > > > Some kinda sleep technique ? > > > > > > > Do let me know if this is possible ... > > > > > > > Thanks! > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google Web Toolkit" group. > > > To post to this group, send email to google-web-tool...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-web-toolkit+unsubscr...@googlegroups.com > > cr...@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 'Stop running this script' message in browsers
is there any example for this ? the logic for my code as of now is // some pre tasks DeferredCommand.addCommand(new IncrementalCommand()){ // some heavy stuff // out here associate the rows to be shown in DOM } // some post task On Apr 3, 10:47 pm, Ian Bambury wrote: > Well, don't show it while that is happening, then :-) - show a twirling > pizza or a 'Hang On A Minute' message or a progress bar (which is perfectly > possible in this situation) > > Ian > > http://examples.roughian.com > > On 3 April 2010 18:41, keyboard_samurai wrote: > > > > > hi has anyone done anything like this ? or anything similar ? > > > Cheers! > > > On Apr 3, 12:24 am, keyboard_samurai wrote: > > > Agree but since this is a tree i wudnt like the subnodes to be seen > > > until its all done generating... similarly when a user selects > > > collapse wudnt like to show the user each entry getting deleted from > > > the screen. > > > > This is the behaviour i see as of now using incremental command. > > > > Any ideas ? > > > > On Apr 2, 11:46 pm, kozura wrote: > > > > > Can always throw up a modal dialog, maybe with a glass panel, so user > > > > can't interact until it's all done. 'course in general this isn't > > > > very nice to the user.. > > > > > On Apr 2, 12:08 pm, keyboard_samurai wrote: > > > > > > Hi .. Sorry for the late reply but is there a way i can hold the > > > > > browser till the incremental command is done finishing its task ? > > > > > > Some kinda sleep technique ? > > > > > > Do let me know if this is possible ... > > > > > > Thanks! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 'Stop running this script' message in browsers
hi has anyone done anything like this ? or anything similar ? Cheers! On Apr 3, 12:24 am, keyboard_samurai wrote: > Agree but since this is a tree i wudnt like the subnodes to be seen > until its all done generating... similarly when a user selects > collapse wudnt like to show the user each entry getting deleted from > the screen. > > This is the behaviour i see as of now using incremental command. > > Any ideas ? > > On Apr 2, 11:46 pm, kozura wrote: > > > > > Can always throw up a modal dialog, maybe with a glass panel, so user > > can't interact until it's all done. 'course in general this isn't > > very nice to the user.. > > > On Apr 2, 12:08 pm, keyboard_samurai wrote: > > > > Hi .. Sorry for the late reply but is there a way i can hold the > > > browser till the incremental command is done finishing its task ? > > > > Some kinda sleep technique ? > > > > Do let me know if this is possible ... > > > > Thanks! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 'Stop running this script' message in browsers
Agree but since this is a tree i wudnt like the subnodes to be seen until its all done generating... similarly when a user selects collapse wudnt like to show the user each entry getting deleted from the screen. This is the behaviour i see as of now using incremental command. Any ideas ? On Apr 2, 11:46 pm, kozura wrote: > Can always throw up a modal dialog, maybe with a glass panel, so user > can't interact until it's all done. 'course in general this isn't > very nice to the user.. > > On Apr 2, 12:08 pm, keyboard_samurai wrote: > > > > > Hi .. Sorry for the late reply but is there a way i can hold the > > browser till the incremental command is done finishing its task ? > > > Some kinda sleep technique ? > > > Do let me know if this is possible ... > > > Thanks! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 'Stop running this script' message in browsers
Hi .. Sorry for the late reply but is there a way i can hold the browser till the incremental command is done finishing its task ? Some kinda sleep technique ? Do let me know if this is possible ... Thanks! On Mar 25, 9:24 pm, Jim wrote: > Hello you should use IncrementalCommand when items are added > > On Mar 24, 4:54 pm, keyboard_samurai wrote: > > > > > Hi, > > > Yes the script process all the data at once because we have a > > requirement that all the nodes to be expanded rather than collapsed. > > > Thank you! > > > On Mar 24, 1:24 am, Eric wrote:> On Mar 23, 2:21 pm, > > Jeff Chimene wrote: > > > > > On 03/23/2010 11:05 AM, keyboard_samurai wrote: > > > > > > Hi, > > > > > > I need to know if anyone has solved the script running too long issue > > > > > in internet explorer. I have a requirement where we need to show a lot > > > > > of information (in thousands) in tree structure. I was just checking > > > > > using GWT EXT and came across this issue. The issue in detail can be > > > > > found @http://support.microsoft.com/kb/175500. As i interpret the > > > > > issue arises bcoz of the high volume of data to be shown is crossing > > > > > the maximum no of statements which can be executed. > > > > > > Has anyone encountered such an issue and fixed it ? > > > > > Does the script process all data at once? It may need to process the > > > > data in batces. > > > > If the original poster can, just return the direct children of a node > > > when the > > > node is opened. If he needs to, implement paging on the server, and > > > use > > > IncrementalCommand to release control to the browser after each page. > > > > Respectfully, > > > Eric Jablow -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: 'Stop running this script' message in browsers
Hi, Yes the script process all the data at once because we have a requirement that all the nodes to be expanded rather than collapsed. Thank you! On Mar 24, 1:24 am, Eric wrote: > On Mar 23, 2:21 pm, Jeff Chimene wrote: > > > > > On 03/23/2010 11:05 AM, keyboard_samurai wrote: > > > > Hi, > > > > I need to know if anyone has solved the script running too long issue > > > in internet explorer. I have a requirement where we need to show a lot > > > of information (in thousands) in tree structure. I was just checking > > > using GWT EXT and came across this issue. The issue in detail can be > > > found @http://support.microsoft.com/kb/175500. As i interpret the > > > issue arises bcoz of the high volume of data to be shown is crossing > > > the maximum no of statements which can be executed. > > > > Has anyone encountered such an issue and fixed it ? > > > Does the script process all data at once? It may need to process the > > data in batces. > > If the original poster can, just return the direct children of a node > when the > node is opened. If he needs to, implement paging on the server, and > use > IncrementalCommand to release control to the browser after each page. > > Respectfully, > Eric Jablow -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
'Stop running this script' message in browsers
Hi, I need to know if anyone has solved the script running too long issue in internet explorer. I have a requirement where we need to show a lot of information (in thousands) in tree structure. I was just checking using GWT EXT and came across this issue. The issue in detail can be found @ http://support.microsoft.com/kb/175500. As i interpret the issue arises bcoz of the high volume of data to be shown is crossing the maximum no of statements which can be executed. Has anyone encountered such an issue and fixed it ? 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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Accessing Stylesheet URL set using gwt.xml using API's
I went through the documentation. as i understand if i need to get the information i would have to end up using ModuleDefLoader and load the module again and get the ModuleDef instance to fetch the stylesheet details (Not sure of the issues i might run into if i reload the module def). I am looking at a approach to retrieve the info runtime rather than compile time. I am sure GWT would have a location which would be storing this information in javascript objects. Has anyone tried such a thing before ? Cheers! On Mar 2, 2:32 pm, Chris Lercher wrote: > Hi, > > maybe not the greatest approach, but just because you ask for "any > other approaches": You could load the .gwt.xml file on the server via > classLoader.getResourceAsStream(), parse it as XML, and look for the > tags. > > Also, you may find the class com.google.gwt.dev.cfg.ModuleDef helpful > in some way (?) It has a getStyles() method, but I haven't looked into > how you would get hold of an instance of ModuleDef. > > Chris > > On Mar 2, 8:17 am, keyboard_samurai wrote: > > > > > That was my worst case approach if GWT didnt have any API mechanism to > > retrieve information from whats been set in GWT.XML. ;) > > > Any other approaches available please do let me know?? > > > Cheers! > > > On Mar 2, 11:46 am, Fazeel Kazi wrote: > > > > I think what you can do is search for all tags in the document, > > > since > > > GWT will ultimately convert all into tags included in > > > the of the page. > > > > On Sun, Feb 28, 2010 at 5:40 PM, keyboard_samurai > > > wrote: > > > > Hi, > > > > > we are setting stylesheet using the automatic resource inclusion i.e > > > > by adding a entry in gwt.xml. Is there > > > > any way i can access this information using API's ? The end result i > > > > need is all the list of css url's included for the current module. > > > > > Do let me know if this is possible or any workarounds available rather > > > > than using hardcoded css filenames in my code. > > > > > Thank You! > > > > > Cheers! > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > "Google Web Toolkit" group. > > > > To post to this group, send email to > > > > google-web-tool...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-web-toolkit+unsubscr...@googlegroups.com > > > cr...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Accessing Stylesheet URL set using gwt.xml using API's
Hi, we are setting stylesheet using the automatic resource inclusion i.e by adding a entry in gwt.xml. Is there any way i can access this information using API's ? The end result i need is all the list of css url's included for the current module. Do let me know if this is possible or any workarounds available rather than using hardcoded css filenames in my code. Thank You! Cheers! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestBuilder call fails on FF
can anyone help me on this ? any pointers to debug this issue on firefox would be useful ... Thanks! On Dec 19, 3:09 pm, keyboard_samurai wrote: > Hi, > > I am using GWT 1.7 and within a widget we are trying to access a JSON > service there is a issue which is seen only in firefox. The issue is > at sendRequest() my backend service is invoked but on the client side > i do not get the response stauts code as 200, instead of 200 we see > its 0 and the response text is empty. Has anyone experience this > behaviour? The code works fine in IE 6 and above but fails on FF 3.5 > > Do let me know how i can fix this issue if its with my code. is there > any special parameter that i need to pass for FF ? > > I have only tested this in IE and FF. > > Thanks in advance ... > > Cheers! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Use smartgwt or not
I would agree on ext gwt .. Its faster and much better than smart gwt. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Where to put server-configuration property files?
If you have a configuration file which is to be shared across multiple web applications or deployments you could use a shared drive for this which is accessible to all your applications and get it loaded from there. But i still wouldn't suggest having it outside your war as you are creating a dependency on external files. Cheers! On Dec 12, 11:51 pm, jbdhl wrote: > Eh, but putting the config files in the war file makes them context- > independent which was exactly what I didn't want? In that case all > installations would ship with the same config file and upgrading from > release N to N+1 would override the config file. I fail to see how > putting the config files in the war-file can be context/installation > dependent. I would like the customer to keep one config file > on his server and separating it from the application war- > file - but where is ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RequestBuilder call fails on FF
Hi, I am using GWT 1.7 and within a widget we are trying to access a JSON service there is a issue which is seen only in firefox. The issue is at sendRequest() my backend service is invoked but on the client side i do not get the response stauts code as 200, instead of 200 we see its 0 and the response text is empty. Has anyone experience this behaviour? The code works fine in IE 6 and above but fails on FF 3.5 Do let me know how i can fix this issue if its with my code. is there any special parameter that i need to pass for FF ? I have only tested this in IE and FF. Thanks in advance ... Cheers! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Where to put server-configuration property files?
should be part of the war file and incase you like to load it using classloaders make sure its within classpath. Incase you still need to know where exactly to put the file. Do let us know the directory structure of your project... Cheers! On Dec 12, 12:49 am, jbdhl wrote: > I have a bunch of settings that are installation specific (e.g. > database connection properties) that I store in a property file. But > where should I put a file like this? I would like it to stay unchanged > between two deployments, so I guess the file should not be part of the > war-file (because it's installation specific and should somehow just > be considered as a static ). The war-file should, at most, contain > some kind of template for the property file. But if it's not part of > the war dir, how do I then refer to it? I need to know where to find > it. > So in general: Where do you put installation specific server-side > config files (property files)? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Properties Support for Configuration Data in GWT 1.7
No i do not want it on server side ... Have certain values which would be used in client side. Need it configurable and also its same across different locales. Any thoughts on this ? On Dec 11, 7:17 pm, philippe wrote: > If it doesn't draw user text on screen, if it's just to configured > your server you can use ResourceBundle in server side. > > On 11 déc, 13:58, keyboard_samurai wrote: > > > > > Hi, > > > I need to maintain some configurable data (in properties) and lookup > > for it in the code. I do understand GWT has support for constants and > > messages (i18n). I would not like to get this information like > > constant or message as these are kept specific to locale and the > > configuration data which i intend to keep is the same across different > > locales. > > > Is there any other way i can handle this ? I am fine the approach > > depends on static binding approach as well. > > > 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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Properties Support for Configuration Data in GWT 1.7
Hi, I need to maintain some configurable data (in properties) and lookup for it in the code. I do understand GWT has support for constants and messages (i18n). I would not like to get this information like constant or message as these are kept specific to locale and the configuration data which i intend to keep is the same across different locales. Is there any other way i can handle this ? I am fine the approach depends on static binding approach as well. 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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Has any one written new annotations for GWT Client side ?
Thanks for the reply ... Can you provide more information on the generator side and how can i accomplish this ? I would definitely look into the lovely json rpc code. Any directions on this would be greatly appreciated. Thank you ! Cheers! On Dec 4, 9:43 pm, Jamie Gennis wrote: > Annotations in client code can be used during GWT's rebind phase of the > compilation, but they are not accessible at runtime on the client side. GWT > doesn't support much of Java's reflection functionality on the client side > in order to keep the compiled Javascript code smaller. > > You can write a custom generator, which can be called to create > implementation code for specific interfaces during the rebind phase, to > generate your marshaling code at compile-time. This is the approach taken > by lovely-gwt-jsonrpc <http://code.google.com/p/lovely-gwt-jsonrpc/>, for > example, and is how all of GWT's built-in RPC functionality works. You may > be able to leverage some or all of the work in that project to accomplish > what you're trying to do. > > Jamie > > > > On Thu, Dec 3, 2009 at 7:21 PM, keyboard_samurai wrote: > > Hi, > > > I am a newbie to GWT. Need to know if GWT can support custom > > annotations on client side ?. The reason for custom annotations is i > > would be communicating with the backend service through json and not > > gwt rpc and i wouldnt like each developer to write the same piece of > > code. So i was planning to annotated my entity classes which can be > > used for marshalling and unmarshalling json response. > > > Please do let me know if this can be done in GWT. > > > Thanks in advance > > > cheers! > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Has any one written new annotations for GWT Client side ?
Hi, I am a newbie to GWT. Need to know if GWT can support custom annotations on client side ?. The reason for custom annotations is i would be communicating with the backend service through json and not gwt rpc and i wouldnt like each developer to write the same piece of code. So i was planning to annotated my entity classes which can be used for marshalling and unmarshalling json response. Please do let me know if this can be done in GWT. Thanks in advance cheers! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.