Re: converting JPA entities to Records

2010-08-29 Thread Marcus Vinícius Bastos de Andrade
If you are using Hibernate as JPA provider, I suggest you to take a look in
Gilead project http://noon.gilead.free.fr/gilead/ and GWT-SL project
http://gwt-widget.sourceforge.net/
Create a separated project for your entities and use it as dependency in
main project and add this entity project to your application.gwt.xml using
'inherits' tag.

best regards,


On Sun, Aug 29, 2010 at 1:13 PM, Joe Hudson joe...@gmail.com wrote:

 Hi,

 I was about to start a project that will use deferred binding to
 automatically convert JPA-annotated entities to GWT Records.  Before
 re-inventing the wheel I wanted to make sure this didn't exist first -
 does anyone know of a project that is already doing this?  Thanks.

 Joe

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Marcus Vinícius Bastos de Andrade
http://twitter.com/mynameisflaw
+55 31 9823-3606

-- 
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: gson module problem

2010-07-07 Thread Marcus Vinícius Bastos de Andrade
Use JSON in GWT ? It looks like PHP programming!

On Wed, Jul 7, 2010 at 1:41 PM, Ahmed Shoeib
ahmedelsayed.sho...@gmail.comwrote:

 i need to convert JSON to/From Java Object

 how to do it ?
 i don't know how to use this way

 On Jul 6, 10:35 pm, eggsy84 jimbob...@hotmail.com wrote:
  Hi all,
 
  With the latest versions of GWT you don't have to use any other
  libraries.
 
  GWT now comes with something known as Javascript Overlays that you can
  utilise to convert JSON into Objects.
 
  See here:
 
  http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver...
 
  Also I have made a bit of a discussion on my blog here:
 
  http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays...
 
  Hope this helps,
 
  Eggsy
 
  On Jul 6, 1:38 pm, Harald Pehl harald.p...@googlemail.com wrote:
 
   You cannot use gson in GWT. Seehttp://
 groups.google.com/group/google-gson/browse_thread/thread/6c3d6...
   for more infos.
 
   If you need a JSON parser for GWT take a look at Piriti (http://
   code.google.com/p/piriti/).
 
   - Harald
 
   On 6 Jul., 12:30, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:
 
Welcome ,
 
i add gson lib version 1.4
 
and i face a problem when trying to inherit it in the gwt.xml file
 
how i can fix this problem ???
 
thanks ,
ahmed shoeib

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Marcus Vinícius Bastos de Andrade
http://twitter.com/mynameisflaw
+55 31 9823-3606

-- 
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: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-06 Thread Marcus Vinícius Bastos de Andrade
Hello there,

Executing locally my project, after a long time of browser refreshs of my
application, the Jetty freezes.
I have identified that is a memory leak problem of Jetty, then I've added
the following VM args to my pom.xml

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
configuration
runTarget${gwt.runtarget.html}/runTarget
extraJvmArgs
*-server -Xms1024m -Xmx1024m -XX:MaxPermSize=512m -XX:ParallelGCThreads=20
-XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8
-XX:TargetSurvivorRatio=75 -XX:MaxTenuringThreshold=0 -XX:+AggressiveOpts
-XX:-TraceClassUnloading -Dsun.io.useCanonCaches=false
-Dsun.net.client.defaultConnectTimeout=6
-Dsun.net.client.defaultReadTimeout=6*
 /extraJvmArgs
**
*
*
I hope that works for you ;)

best regards


2010/7/6 Matthias Groß f0r7y@googlemail.com

 Hi,

 I doubt that you will get any definite answers if you don't provide a
 more thorough analysis of your problem.

 Generally just try to release all references to heavy-weight objects
 you don't need anymore as soon as possible. This holds true especially
 for global instances, e.g. singletons.
 If that doesn't help consider using weak references (see
 http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ref/WeakReference.html).

 /Matthias

 P.S.:
 Also use less exclamation marks please.

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Marcus Vinícius Bastos de Andrade
http://twitter.com/mynameisflaw
+55 31 9823-3606

-- 
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 + JDBC

2010-01-28 Thread Marcus Vinícius Bastos de Andrade
Try to move the JAR to war/WEB-INF/lib folder, then update your classpath
reference.

On Wed, Jan 27, 2010 at 9:27 PM, ddyer ddyer-goog...@real-me.net wrote:


 Can someone explain why this occurs?  Im trying to connect a JDBC
 driver
 to the server end of a test application.   The JDBC driver is in the
 classpath.

 The server is running at http://localhost:/
 Err java.lang.ClassNotFoundException: org.sqlite.JDBC
 java.lang.ClassNotFoundException: org.sqlite.JDBC
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
 com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass
 (IsolatedAppClassLoader.java:142)

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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: Contacts Example Using MVP

2010-01-28 Thread Marcus Vinícius Bastos de Andrade
Check your project settings for exactly java compiler and target version.
Keep your JAVA_HOME environment variable updated too.

Clean and build your project after these modifications.

best regards

On Wed, Jan 27, 2010 at 1:42 PM, skippy a...@2lehmans.com wrote:

 I am trying to run the contacts example found in the MVP Architecture
 Section.

 I am getting a runtime error:

 java.lang.UnsupportedClassVersionError: Bad version number in .class
 file

 GWT 2.0 ,Java compiler 1.6, eclipse 3.5.

 Thanks for your help.

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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: DateTimeFormat with locale

2010-01-28 Thread Marcus Vinícius Bastos de Andrade
This class doesn't support define locale.
You can make a RPC call to server and use java.text.SimpleDateFormat :/

best regards

On Wed, Jan 27, 2010 at 11:05 AM, mariyan nenchev nenchev.mari...@gmail.com
 wrote:

 Hi,
 How to specify locale when formating date?

  --
 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.comgoogle-web-toolkit%2bunsubscr...@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: Strange behavior of sessions when using Safari 4

2010-01-28 Thread Marcus Vinícius Bastos de Andrade
Which application server/servlet container have you tested your application
?
Try test your application with Safari browser in another application server
nor servlet container.
There's any bug registered for this case ?


On Wed, Jan 27, 2010 at 11:45 AM, Meletis webmas...@kissometer.gr wrote:

 Hello there!

 I have created an application, but for some reason I cannot maintain
 the session between RPC calls. After loading the the home page, there
 are two different RPC calls that are being called.

 Debugging the session id, I saw that the home page, 1st and 2nd RPC
 are loaded with 3 different session ids! Every time an RPC is called
 afterwards, a new session is created on the server.

 The strange thing is that this is only happening with Safari 4. It
 works fine on IE,FF, Opera and Chrome!

 Any ideas?

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.