Sunday, September 30, 2012

Re: Implementing Normal HTML Instead of GWT



On Mon, Oct 1, 2012 at 12:44 AM, Michael Allan <mike@zelea.com> wrote:
Manuel Carrasco Moñino said:
> ... basically a gwt app is a javascript inside an html, ...  so when
> you change to other html [page], your app is unloaded from memory
> and you have to load it in the new html [page].

If anyone needs to avoid page unloading, here's a branch of GWT with
limited support for the BFCache (rapid back-and-forth navigation):
http://zelea.com/project/gwt/

Michael, Interesting stuff, a couple of cuestions:
. are you planning to send this to gwt?
. to play with this code, do I have to download the entire kit or may I patch just some classes?
. does it work with 2.5.

- Manolo

 


--
Michael Allan

Toronto, +1 416-699-9528
http://zelea.com/

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

Editor driver factory?

Hi,
I have situation where we have multiple input fields on form and each input field should be separate editor, but there is a problem since we don't know
what kind of input field actually needs to be displayed to user. So basically we get list of ids and based on that list of ids we should create form and display it to the
user.

When creating editor we need to define interface in a following manner:

  // Empty interface declaration, similar to UiBinder
 
interface Driver extends SimpleBeanEditorDriver<SomeKindOfBean, SomeKindOfEditor> {}
 
 
// Create the Driver
 
Driver driver = GWT.create(Driver.class);

Is there any way to create Editor Driver factory, any suggestion would be great. I know that I can declare all required interfaces and then create one switch statement and create drivers
as needed, but I would like to avoid having that switch statement in every activity where we need that functionality, and would like to have some generic driver interface to work with.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hLePvYUNlLQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Implementing Normal HTML Instead of GWT

Manuel Carrasco Moñino said:
> ... basically a gwt app is a javascript inside an html, ... so when
> you change to other html [page], your app is unloaded from memory
> and you have to load it in the new html [page].

If anyone needs to avoid page unloading, here's a branch of GWT with
limited support for the BFCache (rapid back-and-forth navigation):
http://zelea.com/project/gwt/

--
Michael Allan

Toronto, +1 416-699-9528
http://zelea.com/

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

Re: javascript files GWT generates

Imran,

Generally using Java best practices are what you should do with GWT. Don't try to prematurely optimize you code, but rather leave that to the GWT compiler. As to the size of classes, I think following common best practices for Java of separation of concerns and abstraction should dictate how large your classes are, not concern of the size of the JS files created. Generally speaking you'll get 1 boostrap file, plus 1 no cache JS file (for each browser/language permutation). If you want to have more smaller JS files, then us Code Splitting. You can also set gzip headers on your requests and serve up pregzipped (there's a GWT flag for that) JS files to make your project load even faster.


Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/rETVG2Hb-eAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT podcasts?

Gordon,

Was moving to Boston and had a 14 hour drive yesterday. Enjoyed listening to the podcasts, but just wished there were more. If only you'd been doing these since 2006 I could have filled the entire time. Keep it up!


Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Be8HwJuC1nsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

GWT + GAE separate DB connection question

Hello,

I am developing a project and I am using GWT and  Google App Engine to store data in the cloud. What I need is to connect to a web based Mysql (or any Relational Database) obtain some data and then upload it to GAE, is it possible to connect to 2 different DataSources within the same app? Ej: GWT+GAE+Mysql

The other option is to connect GWT with two separate GAE apps , I need the Datasources to be in separate places, is it possible?

I'm using Eclipse to develop this

Thank You

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/tSZCTTiPM9UJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: [ANN] Sheath: Dagger Inside

Nice work Thomas! I've been looking for just such a light weight DI replacement. I'll give it a try this weekend.


Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/5fSr_AbF0uMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Adsense Subscription for GWT Based Website

Hello people,

   I have developed an image sharing website using GWT. I have been trying to subscribe to Google Adsense program, but my application is getting rejected repeatedly and the reason given is that there is Insufficient content. The further details indicated that my website should have enough text data and complete sentences. Although I have enhanced my website repeatedly to add more and more text content, the application is still getting rejected repeatedly.

    Has this got something to do with the fact that my website is Ajax-based and "view source" of the html page would not show enough text? Should I implement the AJAX based history mechanism, i.e., the #! history mechanism so that the SEO spiders can pick up the text in my website? Is this a functionality that needs to be implemented before submitting to the Adsense? 

     Is there any other thing that needs to be taken care of while submitting the site to Adsense?

Regards,
Sachin

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/wENL3k2iGsgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Webpage on different Browsers looks different

Hey,

I just started on GWT and used the GWT Designer to create a Website.
It uses DockPanel (North, South, West and Center). Dock Panel should use 100% width and height.

After compiling it, it looks just like in developmode on Firefox, but on other browsers the Webside looks bad, i.e. it doesnt use 100% height.

I thought due the permutation for each browser this wouldnt happen?

Regards,
Manuel


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/RjvUhHjn6EMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT using App Engine

Hi,

thanks for your answer, that make things clear.

Regards

Am Sonntag, 30. September 2012 08:33:52 UTC+2 schrieb Manuel Carrasco:
The gae stuff is not needed in gwt projects, in fact most of my projects use a non gae server side solution: spring, couchdb, php, rails.
Think that gwt is to produce an app to be run in a browser sending ajax requests to any server side implementation. 
If your backend is java, you can take advantage of a couple of things which the gwt-server library provides and which makes that ajax easier (RPC, RF), but gwt does not provide anything for your server implementation (persistence, injection, etc), and gives you the freedom to select anything (spring, grails, gae, etc)
If your backend is not java, you have to use traditional ajax making requests and parsing the json or xml results. Gwt gives you some utilities to parsing those responses, or you could use a 3party library like gwtquery.ajax.
In the other hand you can use gae without gwt in the browser (jsp, spring-mvc, etc)

- Manolo

On Saturday, September 29, 2012, Manuel wrote:
Hi,

thanks for your reply.

I just tried to remove the GAE from my project, but that caused some weird errors.
Now I set up a new project without GAE.

If I dont consider to deploy my App to Google I dont need that GAE anyway.
Or are there any other features that belong to GAE?

Regards

Am Samstag, 29. September 2012 03:37:27 UTC+2 schrieb Manuel:
Hi everyone,

Iam new to gwt and I got a question regarding app engine.

Actually I have a project that uses app engine. Does that mean I only can use this project to deploy it on Googles app engine,
or can that project be deployed/hosted on my own Server ?

Thanks in advanced.

Regards,
Manuel

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/54smcizflG8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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 view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/LBANoWux43oJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Implementing Normal HTML Instead of GWT



On Sun, Sep 30, 2012 at 9:45 AM, sampath88 <arnoldkumar2007@gmail.com> wrote:

Hi,
     We started using GWT from few months ago. We are about to use normal HTML files, instead of using GWT-HTML.  I have few concerns regarding this.


My Questions:-

If we use normal HTML instead of GWT HTML.

*) Is it possible to Compile both Class-files and HTML files using GWT?

You can host your script (gwt generated js) in any html file (static html, dynamic .jsp, etc) and you can interact with the elements of this html, wrapping html elements in widgets, accessing the elements with gwt DOM methods, or using css selectors with gwt-query: https://code.google.com/p/gwtquery/

If you want html stuff inside gwt scripts, you have to use UIBinder: https://developers.google.com/web-toolkit/doc/latest/DevGuideUiBinder
 


*) Is it possible to maintain session and cookie in GWT. For Ex[In Browse without logging out our session. If we close the browser and if we re-open it. Our session will opened because it will maintain session and cookies. Similarly, Is it possible using normal HTML in GWT ]

Yes, cookies is something related with your html page location so gwt scripts in those html pages should maintain the cookies. 
A different thing is how to restore the gwt las status, I mean if in this page gwt has rendered some thing because of  an iteration with user you have to know somewhere that status (cookies, localstorage, url hash, etc)
 


*) Is it possible to redirect  from  HTML to GWT and vice-verse?

No idea what you are asking, but basically a gwt app is a javascript inside an html, and redirections are perform through html, so when you change to other html, your app is unloaded from memory and you have to load it in the new html.
 



Please provide your precious suggestion.

Thanks,

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/SibUkhXAx6IJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Implementing Normal HTML Instead of GWT


Hi,
     We started using GWT from few months ago. We are about to use normal HTML files, instead of using GWT-HTML.  I have few concerns regarding this.


My Questions:-

If we use normal HTML instead of GWT HTML.

*) Is it possible to Compile both Class-files and HTML files using GWT?

*) Is it possible to maintain session and cookie in GWT. For Ex[In Browse without logging out our session. If we close the browser and if we re-open it. Our session will opened because it will maintain session and cookies. Similarly, Is it possible using normal HTML in GWT ]

*) Is it possible to redirect  from  HTML to GWT and vice-verse?


Please provide your precious suggestion.

Thanks,

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/SibUkhXAx6IJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Saturday, September 29, 2012

Re: GWT using App Engine

The gae stuff is not needed in gwt projects, in fact most of my projects use a non gae server side solution: spring, couchdb, php, rails.
Think that gwt is to produce an app to be run in a browser sending ajax requests to any server side implementation. 
If your backend is java, you can take advantage of a couple of things which the gwt-server library provides and which makes that ajax easier (RPC, RF), but gwt does not provide anything for your server implementation (persistence, injection, etc), and gives you the freedom to select anything (spring, grails, gae, etc)
If your backend is not java, you have to use traditional ajax making requests and parsing the json or xml results. Gwt gives you some utilities to parsing those responses, or you could use a 3party library like gwtquery.ajax.
In the other hand you can use gae without gwt in the browser (jsp, spring-mvc, etc)

- Manolo

On Saturday, September 29, 2012, Manuel wrote:
Hi,

thanks for your reply.

I just tried to remove the GAE from my project, but that caused some weird errors.
Now I set up a new project without GAE.

If I dont consider to deploy my App to Google I dont need that GAE anyway.
Or are there any other features that belong to GAE?

Regards

Am Samstag, 29. September 2012 03:37:27 UTC+2 schrieb Manuel:
Hi everyone,

Iam new to gwt and I got a question regarding app engine.

Actually I have a project that uses app engine. Does that mean I only can use this project to deploy it on Googles app engine,
or can that project be deployed/hosted on my own Server ?

Thanks in advanced.

Regards,
Manuel

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/54smcizflG8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: AbsolutePanel scrolling

I had the same problem and I fixed it as this :
absolutePanel.getElement().getStyle().setOverflow(Overflow.AUTO);

On Monday, April 21, 2008 9:58:28 AM UTC-4, Brock Parker wrote:
Hello,

I have an application that allows users to build their own forms.
These forms are then rendered on the web using GWT.  I use an
AbsolutePanel so I can set the widgets at the X,Y coordinates defined
by the user.  I'm having a problem getting the AbsoutePanel to
automatically scroll when the user adds too many widgets to fit on the
screen.

The AbsolutePanel is contained inside a GWT-Ext BorderLayout and it's
located in the center section.

Does anyone have any suggestions or general guidelines as to how I
could make this work?

Thanks,

Brock

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/kTgh9kNnaakJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT using App Engine

Hi,

thanks for your reply.

I just tried to remove the GAE from my project, but that caused some weird errors.
Now I set up a new project without GAE.

If I dont consider to deploy my App to Google I dont need that GAE anyway.
Or are there any other features that belong to GAE?

Regards

Am Samstag, 29. September 2012 03:37:27 UTC+2 schrieb Manuel:
Hi everyone,

Iam new to gwt and I got a question regarding app engine.

Actually I have a project that uses app engine. Does that mean I only can use this project to deploy it on Googles app engine,
or can that project be deployed/hosted on my own Server ?

Thanks in advanced.

Regards,
Manuel

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/54smcizflG8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: how to deploy gwt apps to tomcat

hello every body my question goes in the same way of the greetz's question.
 I want to deploy my GWT project in jboss because am using it with an EJB project and EAP project.
When i use the normal way of deploying and EJB,WAP,EAP project it is not going.

             how can i do?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/idiRqTAAkB0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Testing an asynchronous rpc with GWT SyncProxy

Hi
has someone here experiences with GWT SyncProxy?
I am trying to test an asynchronous rpc, but the code under onFailure and onSuccess is not tested. Unfortunately there is no error log, but maybe someone can help me. The example is from this page: http://code.google.com/p/gwt-syncproxy/

public class Test extends TestCase {  private static GreetingServiceAsync rpcServiceAsync =            (GreetingServiceAsync) SyncProxy.newProxyInstance(GreetingServiceAsync.class,          "http://127.0.0.1:8888/GreetingTest.html?gwt.codesvr=127.0.0.1:9997", "greet");    public void test() {      rpcServiceAsync.greetServer("SyncProxy", new AsyncCallback<String>(){            public void onFailure(Throwable caught) {                System.out.println("bad");            }            public void onSuccess(String result) {                System.out.println("good");            }          });  }}

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/lVhCX0UhQ6YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Documentation of GWT logging (compile out of log levels)

The documentation mentions, that it's possible to make all logging code compile out, but it doesn't mention how to compile out only certain levels.

This is however possible: The property "gwt.logging.enabled" can take the values FALSE, TRUE, SEVERE and WARNING (note: this is separate from the property "gwt.logging.logLevel, which can take ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING and SEVERE)

When "gwt.logging.enabled" is set to SEVERE or WARNING, then the finer levels will not be compiled into the permutation.

It would be nice if this information were integrated into the documentation. Also, I think it would be a good idea to add at least "INFO" to the allowed values of gwt.logging.enabled.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/joE7tiqkreIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: white screen on iphone (maybe iOS6 issue)

Maybe IOS6 issue about caching posts requests could be your problem, in the case you are doing a RPC/RF post to your web-server and you wait for a response before showing the initial screen of your app.

http://code.google.com/p/google-web-toolkit/issues/detail?id=770

- Manolo

On Fri, Sep 28, 2012 at 6:38 PM, MeiAestro <JMAlbrecht@gmx.de> wrote:
is there maybe a new user agent String required for ios6? I am using:
<set-property name="user.agent" value="safari,ie8,ie9,gecko1_8,opera">

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ijO15XkyDQgJ.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT using App Engine

YES you have to deploy in app-engine.

Actually, and  because the gae sdk contains all the stuff to emulate the app-engine infra when you are developing, you could run that in your servers, but be aware that it is not a reliable solution and be prepared to lose all your data when you restart.



On Sat, Sep 29, 2012 at 3:37 AM, Manuel <develop.mash@gmail.com> wrote:
Hi everyone,

Iam new to gwt and I got a question regarding app engine.

Actually I have a project that uses app engine. Does that mean I only can use this project to deploy it on Googles app engine,
or can that project be deployed/hosted on my own Server ?

Thanks in advanced.

Regards,
Manuel

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3qZuF6NINhIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Friday, September 28, 2012

Re: Using JPA Hibernate persist()... Where is the Data?

Hey,

here an update on my topic.

I could solve the problem.


I created a new Project without App Engine. Now the persistence.xml gets used like expected.
App Engine caused, that datanucleus instead of hibernate were used.

Regards

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/yvYxiIy09IwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: How to use Request Factory with JPA Hibernate and PostgreSQL ?

Hey,

here an update on my topic.

I could solve the problem.


I created a new Project without App Engine. Now the persistence.xml gets used like expected.
App Engine caused, that datanucleus instead of hibernate were used.

Regards

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Bi-7F3cgwOYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

GWT using App Engine

Hi everyone,

Iam new to gwt and I got a question regarding app engine.

Actually I have a project that uses app engine. Does that mean I only can use this project to deploy it on Googles app engine,
or can that project be deployed/hosted on my own Server ?

Thanks in advanced.

Regards,
Manuel

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3qZuF6NINhIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

[ANN] Sheath: Dagger Inside

It took me a couple nights and lunch-breaks of hacking, here is:

Sheath: Dagger Inside

Sheath is to Dagger what GIN is to Guice. Except this is only an experiment, a proof of concept. Sheath currently leverages the code generated by Dagger, which is suboptimal in a GWT context.

I didn't implement singletons either; it's just enough to make the example work (with System.out.println replaced with Window.alert, and everything launched at the click of a button).

If anyone's interested in switching from Guice to Dagger, and uses GWT, have a look at it: https://github.com/tbroyer/sheath

(note: I'm sticking with Guice and GIN, there are too many things I miss in Dagger, and I don't really need something more lightweight, as I don't code for resource-constrained environments; but if anyone's interested, feel free to report bugs, fork and/or send pull requests)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/oXlOsGVcQeIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Should onbeforeunload work in GWT JSNI?

I tried this solution and it worked, but I wanted to make this only create the popup dialog under some circumstances (like testing a boolean into the onbeforeunload function before returning a string). I tried adding a boolean to my EntryPoint and then setting it from the right piece of code, but that never worked.

Anyone have insight?

Brett

On Thursday, 17 December 2009 10:19:59 UTC-6, Damon Lundin wrote:
> In GWT, use Window.addWindowClosingHandler and setMessage on the
> Window.ClosingEvent.

Well, how about that?  That works.  Thank you very much!

I'm still a little curious though why the JSNI version doesn't work.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/TX5lYp1uvboJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Future of GWT survey

Am I reading too much into the fact that the GWT survey ends on the Vaadin.com/gwt page?
With Google pushing GWT into the wild, is https://developers.google.com/web-toolkit/ still the most central place for GWT development?



--
-- A. Stevko
===========
"If everything seems under control, you're just not going fast enough." M. Andretti





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

Re: white screen on iphone (maybe iOS6 issue)

is there maybe a new user agent String required for ios6? I am using:
<set-property name="user.agent" value="safari,ie8,ie9,gecko1_8,opera">

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ijO15XkyDQgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT Cross Site Iframe Linker and Script Tags



On Friday, September 28, 2012 4:36:41 PM UTC+2, skrat wrote:
This sucks great time, now that devmode plugins have been abandoned (surprise!),

Are you kidding?!
Brian spent days (weeks?) releasing the plugin for Firefox 15 (there was more changes from Mozilla's side than for previous releases) and fixing the plugin for Chrome, porting it to manifest v2 so that it can be submitted on the Chrome Web Store (he's not done yet, only the linux binaries have been recompiled for now).
Please have a look at the SVN <http://code.google.com/p/google-web-toolkit/source/list?path=/trunk/plugins/> and/or http://gwt-code-reviews.appspot.com before making such assertions.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3eQzcOuKi2EJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Future of GWT survey



On Friday, September 28, 2012 4:56:21 PM UTC+2, nino wrote:
@Thomas,
Those projects seem to be dead also.

Absolutely.
Which means that I don't think yet another one would succeed where the others failed, *even* on that's "official" and linked from GWT's web site.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2-pdjSVHF7IJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Future of GWT survey

@Thomas,
Those projects seem to be dead also.

2012/9/28 João Cavaleiro <jmscavaleiro@gmail.com>
Hum, didn't know about them. Something like Google Play should be very much appreciated.

Sexta-feira, 28 de Setembro de 2012 15:13:13 UTC+1, Thomas Broyer escreveu:


On Friday, September 28, 2012 3:59:33 PM UTC+2, João Cavaleiro wrote:
I totally agree with Andrei. It is an excellent idea.This will increase developers overall productivity. This is a must. I can offer myself to help building that kind of "marketplace".


You mean, something like http://gwtgallery.appspot.com/ ? (linked under "Community → App Gallery" on https://developers.google.com/web-toolkit/ ) 
or the various others that people from the community built? such as http://gwtreferencelist.appspot.com/ or http://gwtmarketplace.appspot.com/ (note: I found them by searching this group's archives)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/H-VZbOdx4ekJ.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: white screen on iphone (maybe iOS6 issue)

Thanks, I will try to build a workaround. Any ideas what might be the reason why it is not working anymore with ios6 ???

Am Freitag, 28. September 2012 16:44:26 UTC+2 schrieb Milan Cvejic:
You can easily create your own Panel by extending ComplexPanel and attaching ResizeHandler

something like this:

Window.addResizeHandler(new ResizeHandler() {
for (Widget child : getChildren()) { if (child instanceof RequiresResize) { ((RequiresResize) child).onResize(); }
}

You should also implement all methods from RootPanel.

Best,
Milan

On Friday, September 28, 2012 4:23:17 PM UTC+2, MeiAestro wrote:
Ok, now I am sure it is an iOS6 problem. It still works on older iOS. And I am also sure that it has to do something with the RootLayoutPanel. Everything is shown correctly when I use RootPanel, but then I cannot use the required onResize functionality.

Any ideas?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0IwnSLvTnhIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Future of GWT survey

Hum, didn't know about them. Something like Google Play should be very much appreciated.

Sexta-feira, 28 de Setembro de 2012 15:13:13 UTC+1, Thomas Broyer escreveu:


On Friday, September 28, 2012 3:59:33 PM UTC+2, João Cavaleiro wrote:
I totally agree with Andrei. It is an excellent idea.This will increase developers overall productivity. This is a must. I can offer myself to help building that kind of "marketplace".


You mean, something like http://gwtgallery.appspot.com/ ? (linked under "Community → App Gallery" on https://developers.google.com/web-toolkit/ ) 
or the various others that people from the community built? such as http://gwtreferencelist.appspot.com/ or http://gwtmarketplace.appspot.com/ (note: I found them by searching this group's archives)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/H-VZbOdx4ekJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: white screen on iphone (maybe iOS6 issue)

You can easily create your own Panel by extending ComplexPanel and attaching ResizeHandler

something like this:

Window.addResizeHandler(new ResizeHandler() {
for (Widget child : getChildren()) { if (child instanceof RequiresResize) { ((RequiresResize) child).onResize(); }
}

You should also implement all methods from RootPanel.

Best,
Milan

On Friday, September 28, 2012 4:23:17 PM UTC+2, MeiAestro wrote:
Ok, now I am sure it is an iOS6 problem. It still works on older iOS. And I am also sure that it has to do something with the RootLayoutPanel. Everything is shown correctly when I use RootPanel, but then I cannot use the required onResize functionality.

Any ideas?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/S0vJlJvcbUYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT Cross Site Iframe Linker and Script Tags

This sucks great time, now that devmode plugins have been abandoned (surprise!), and Super Dev Mode was forced onto us, xsiframe became a must, and all the GWT libraries and apps that use script tags are not working anymore. What's wrong with document.write anyway? I'm really angry now with Google, and we're going to rewrite the app with JS, Backbone, jQuery, who knows. At least stuff won't break because of ridiculous developer decisions. Thanks Google

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dLk5b77VnZIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: white screen on iphone (maybe iOS6 issue)

Ok, now I am sure it is an iOS6 problem. It still works on older iOS. And I am also sure that it has to do something with the RootLayoutPanel. Everything is shown correctly when I use RootPanel, but then I cannot use the required onResize functionality.

Any ideas?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OkT81xJUf8UJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Future of GWT survey



On Friday, September 28, 2012 3:59:33 PM UTC+2, João Cavaleiro wrote:
I totally agree with Andrei. It is an excellent idea.This will increase developers overall productivity. This is a must. I can offer myself to help building that kind of "marketplace".


You mean, something like http://gwtgallery.appspot.com/ ? (linked under "Community → App Gallery" on https://developers.google.com/web-toolkit/ ) 
or the various others that people from the community built? such as http://gwtreferencelist.appspot.com/ or http://gwtmarketplace.appspot.com/ (note: I found them by searching this group's archives)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/SOuis9qVKdQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Help in JSNI callback in javascript object

Hi i need some help to do a wrapper to GWT.

in javascript i have the following:

(...)

// create a new SIP stack. Not mandatory as it's possible to reuse the same satck
        oSipStack
= new tsip_stack(txtRealm.value, txtPrivateIdentity.value, txtPublicIdentity.value)
oSipStack
.on_event_stack = onSipEventStack;
oSipStack
.on_event_dialog = onSipEventDialog;

(...)

// Callback function for SIP Stacks
function onSipEventStack
(evt) {
   
// this is a special event shared by all sessions and there is no "e_stack_type"
   
// check the 'sip/stack' code
    tsk_utils_log_info
(evt.s_phrase);
   
switch (evt.i_code) {
       
case tsip_event_code_e.STACK_STARTED:

(...)

// Callback function for all SIP dialogs (INVITE, REGISTER, INFO...)
function onSipEventDialog
(evt) {
   
// this is special event shared by all sessions and there is no "e_dialog_type"
   
// check the 'sip/dialog' code
    tsk_utils_log_info
(evt.s_phrase);
   
switch (evt.i_code) {
       
case tsip_event_code_e.DIALOG_TRANSPORT_ERROR:
       
case tsip_event_code_e.DIALOG_GLOBAL_ERROR:
       
case tsip_event_code_e.DIALOG_MESSAGE_ERROR:
       
case tsip_event_code_e.DIALOG_WEBRTC_ERROR:

So in my GWT-Wrapper using JSNI i make:

public static native JavaScriptObject tsip_stack(String s_realm,
           
String s_impi, String s_impu_uri
           
) /*-{
        return new $wnd.tsip_stack(s_realm, s_impi, s_impu_uri);
    }-*/
;

How do i make the callback and is association to the javascript object.

This project is to make an wrapper of sipml5 if someone had the wrapper it helps to

Thanks Best Regards

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/HAUjdk0kmwcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Future of GWT survey

I totally agree with Andrei. It is an excellent idea.This will increase developers overall productivity. This is a must. I can offer myself to help building that kind of "marketplace".

Quinta-feira, 20 de Setembro de 2012 0:51:53 UTC+1, Andrei escreveu:
I hope we can also avoid the other extreme: GWT hijacked by developers of commercial libraries, trying to keep GWT as basic as possible, so that their libraries look even more attractive in comparison. I exaggerate to make a point, I know they are good people :)  

I would love to see a unified marketplace for GWT widgets and extensions, both open-source and commercial, with demos, reviews and ratings. Currently there are a lot of projects that offer useful additions to "core" GWT, but it's hard to see how many people are using each one, and what is their experience. I guess many developers spend a lot of time searching the web and this forum for a TimePicker widget, an improved DatePicker, a good RichTextToolbar, a time zones solution, a grid with spreadsheet-style functionality, a grid with expandable rows, etc. etc.   A single marketplace can really make GWT more attractive, in my opinion, especially to developers who are new to the platform.


On Wednesday, September 19, 2012 1:06:08 PM UTC-4, Chris Lercher wrote:
Focus on reducing compile times even more, fixing all bugs, making it more extendable (e.g. by removing some unnecessary private modifiers, removing static state, ...), improving support of Java core libraries (and things that are close, like Guava, Joda, ...), improving some basic widgets - but don't impose the specialized concepts of Vaadin, GXT, ... (which absolutely do have their place, in their own frameworks!) on GWT itself. That's actually the only worry I currently have about GWT's future (Note: I believe it will turn out well).

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/33fHdiN5vpgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Scary: GWT Team does not fix serious GWT Compiler Bugs

Hallo,

After finishing development on my GWT (2.4) project, I found out, that the compiled version does not work exactly as in the development mode.

Some method ( isValid() ) seems not to be called.

Calling code (simplified):

boolean valid=true;
if(! mypanel.isValid())
   valid=false;


method:

public boolean isValid()
{
    updateSomeData();
    return true;
}

This works well in development mode, but in compiled code, isValid() was never called. From this point things got strange. I've added a log-command to the method:

public boolean isValid()
{
    updateSomeData();
    logger.info("method called");
    return true;
}

The method was called and the log entry written.

I removed the log entry and changed the calling part to:

boolean valid=true;
boolean x=mypanel.isValid();
if(!x)
   valid=false;


Now again the method was called. This seems to be some problem in the compiler optimizer. After switching off the optimizer, the compiled code did work as expected.

After searching the web, I found an issue report, DESCRIBING THE EXACT SAME PROBLEM !

See: http://code.google.com/p/google-web-toolkit/issues/detail?id=6551

So this is a know issue since over a year and present since GWT 2.3 !!!

I have not problem with bugs, but I can't understand, why no one seems to care. Can there be something more serious, than a compiler-bug ?

If you search the database, there are some compiler / optimizer issues, that seem not to have been fixed.

Example:

http://code.google.com/p/google-web-toolkit/issues/detail?id=5739 

This is scary ! If you can't trust the compiler, you'll never know, if your code works in production as I did under development. Adding / removing a single line may change the whole behavior. Testing will become a nightmare !

Some one should care.

regards

Marc




--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/K3Zt9B3sxW8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

white screen on iphone (maybe iOS6 issue)

Hey there,

I am quite in trouble as a mobile website which worked fine for months now only shows an empty white screen on my iPhone. I am just guessing this might be because of the new iOS 6.0 Does anybody of you has made similar experiences? The RootLayoutPanel is the basis of my page.

Thanks & kind regards!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/vQd-2sPWVXIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

GWT Junit Test

Hi.

I want to test a rpc call. I use the standard GWTproject and this testclass:

public class TestGreetingService extends GWTTestCase {
    /**
     * Must refer to a valid module that sources this class.
     */
    public String getModuleName() {
        return "com.TestGreeting";
    }   

    /**
     * This test will send a request to the server using the greetServer method
     * in GreetingService and verify the response.
     */
    public void testGreetingService() {
        // Create the service that we will test.
        GreetingServiceAsync greetingService = GWT
                .create(GreetingService.class);
        ServiceDefTarget target = (ServiceDefTarget) greetingService;
        target.setServiceEntryPoint(GWT.getModuleBaseURL() + "TestGreeting/greet");

        // Since RPC calls are asynchronous, we will need to wait for a response
        // after this test method returns. This line tells the test runner to
        // wait
        // up to 10 seconds before timing out.
        delayTestFinish(20000);

        // Send a request to the server.
        greetingService.greetServer("GWT User", new AsyncCallback<String>() {
            public void onFailure(Throwable caught) {
                // The request resulted in an unexpected error.
                fail("Request failure: " + caught.getMessage());
            }

            public void onSuccess(String result) {
                // Verify that the response is correct.
                assertTrue(result.startsWith("Hello, GWT User!"));

                // Now that we have received a response, we need to tell the
                // test runner
                // that the test is complete. You must call finishTest() after
                // an
                // asynchronous test finishes successfully, or the test will
                // time out.
                finishTest();
            }
        });
    }
}

That's the error I get. Can someone help me?

200 - POST /com.TestGreeting.JUnit/junithost (192.168.1XX.XX) 381 bytes
[WARN] 404 - POST /com.TestGreeting.JUnit/TestGreeting/greet (192.168.1XX.XX) 1427 bytes
   Request headers
      Host: 192.168.1XX.XX:53577
      User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.19
      Accept-Language: en-us
      Accept: */*
      Connection: Keep-Alive
      Referer: http://192.168.1XX.XX:53577/com.TestGreeting.JUnit/junit-standards.html?gwt.codesvr=192.168.1XX.XX:53572
      X-GWT-Permutation: HostedMode
      X-GWT-Module-Base: http://1192.168.1XX.XX:53577/com.TestGreeting.JUnit/
      Content-Type: text/x-gwt-rpc; charset=utf-8
      Content-Length: 181
   Response headers
      Content-Type: text/html; charset=iso-8859-1
      Content-Length: 1427

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FnhdKxTKa5cJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Using JPA Hibernate persist()... Where is the Data?

Sorry for posting several times.
But heres the error message from EntityManagerFactory emfInstance = Persistence.createEntityManagerFactory("kunde");

Explicit persistence provider error(s) occurred for "kunde"
after trying the following discovered implementations:
org.datanucleus.api.jpa.PersistenceProviderImpl,
org.hibernate.ejb.HibernatePersistence from provider:
org.hibernate.ejb.HibernatePersistence




Am Freitag, 28. September 2012 10:26:54 UTC+2 schrieb Manuel:
Hey again,

I still havent found a solution...

Heres one more Info:
I get warning when creating my EntityManagerFactory:
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.StaffView was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.AppController was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.MashService was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.server.MashServiceImpl was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.MainPage was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.WorkerProxy was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.WorkerRequestFactoryDeobfuscatorBuilder was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.presenter.Presenter was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.ExpensesRequestFactoryDeobfuscatorBuilder was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.StockPrice was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.ExpensesRequestFactory was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.WorkerRequestFactory was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.MashServiceAsync was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.WorkerRequest was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.TabContent was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.EmployeeProxy was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,649 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.FieldVerifier was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,649 WARN  [DataNucleus.MetaData] - Class de.mash.project.server.EMF was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,649 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.EmployeeRequest was specified in persistence-unit kunde but not annotated, so ignoring


So it looks like datanucleus is used instead of my db... tough i dont exactly know what this nucleus does.
I tried to disable it via project properties, but after that i had some errors inside my project because he deleted jars etc...



Am Freitag, 28. September 2012 02:26:45 UTC+2 schrieb Manuel:
Hi everyone,

Actually I try to use GWT, Request Factory + JPA with Hibernate.
It seems to be working, but there is no data in my local database.

I can create a EntityMangerFactory  
private static final EntityManagerFactory emfInstance = Persistence.createEntityManagerFactory("kunde");[/code]

a EntityManger
EMF.createEntityManager()

and persists a Object
em.persist(Worker);

I can also read all my persisted Objects.

But I dont know where the data is saved. I thought, it should be saved in the postgresDB I configured in my persistence.xml?


Any help is much appreciated.
Thanks in advanced.

Regards,
Manuel



Here is my Code, please let me know if you need any further information.

My Entity Class
package de.mash.project.server;

import java.util.List;

import javax.jdo.annotations.Transactional;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityManager;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "Worker")
public class Worker {

    public static Worker findWorker(Long id) {
        // if (id == 0) {
        return null;
        // }
        // EntityManager em = entityManager();
        // try {
        // Worker worker = em.find(Worker.class, id);
        // return worker;
        // } finally {
        // em.close();
        // }
    }

    @Transient
    protected Object[] jdoDetachedState;

    // @Id
    // @GeneratedValue(generator = "auto_increment")
    // @GenericGenerator(name = "auto_increment", strategy = "increment")
    // @Column(name = "id")
    // private int id;

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "first_name")
    private String firstName;

    @Column(name = "last_name")
    private String lastName;

    @Column(name = "salary")
    private int salary;

    public Worker() {
    }

    public Worker(String fname, String lname, int salary) {
        this.firstName = fname;
        this.lastName = lname;
        this.salary = salary;
    }

    public Long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String first_name) {
        this.firstName = first_name;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String last_name) {
        this.lastName = last_name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public static Long countWorkers() {
        return 2l;
    }

    public Integer getVersion() {
        return 1;
    }

    public void persist() {
        EntityManager em = entityManager();
        try {
            // em.getTransaction().begin();
            em.persist(this);
            // em.flush();
            // em.getTransaction().commit();
        } catch (Exception e) {
            int i = 1;
        } finally {
            em.close();
        }

        em = entityManager();

        final List<Worker> list = em.createQuery("select p from Worker p").getResultList();

        System.out.println(list.size());
        for (Worker current : list) {
            System.out.println(current.getFirstName() + " " + current.getLastName() + " " + current.getSalary());
        }

        em.close();

    }

    public static final EntityManager entityManager() {
        return EMF.get().createEntityManager();
    }

}


My persistence.xml
<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
        http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
   
    <persistence-unit name="kunde" transaction-type="RESOURCE_LOCAL">
        <class>de.mash.project.server.Worker</class>

        <properties>
            <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
            <property name="hibernate.show_sql" value="true" />
          
            <property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
            <property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/dev_mash" />
            <property name="hibernate.connection.username" value="postgres" />
            <property name="hibernate.connection.password" value="m4nu3l" />
            <property name="hibernate.default_schema" value="public" />
          
            <property name="hibernate.hbm2ddl.auto" value="create" />
            <property name="hibernate.hbm2ddl.auto" value="create-drop" />
        </properties>
    </persistence-unit>
   
</persistence>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/6Os-iI90vWwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Type cannot be serialized only in FireFox in Development Mode.

WARNING: Exception of type com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 'com.myDTO' 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 receive this only if running the code in Development Mode.

If I run absolutely the same code in the same browser on the same machine in normal mode - I do not get this error and everything works fine. 

My classes really implement Serializable, not isSerializable, but usually this works ok, whats up with FF development mode?..

Firefox 15.0.1, Macos 10.7.4



--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/wwl9-U-4tKgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Using JPA Hibernate persist()... Where is the Data?

Hey again,

I still havent found a solution...

Heres one more Info:
I get warning when creating my EntityManagerFactory:
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.StaffView was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.AppController was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.MashService was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.server.MashServiceImpl was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.MainPage was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.WorkerProxy was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.WorkerRequestFactoryDeobfuscatorBuilder was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.presenter.Presenter was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,507 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.ExpensesRequestFactoryDeobfuscatorBuilder was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.StockPrice was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.ExpensesRequestFactory was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.WorkerRequestFactory was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.MashServiceAsync was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.WorkerRequest was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.client.TabContent was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,633 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.EmployeeProxy was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,649 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.FieldVerifier was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,649 WARN  [DataNucleus.MetaData] - Class de.mash.project.server.EMF was specified in persistence-unit kunde but not annotated, so ignoring
10:20:03,649 WARN  [DataNucleus.MetaData] - Class de.mash.project.shared.EmployeeRequest was specified in persistence-unit kunde but not annotated, so ignoring


So it looks like datanucleus is used instead of my db... tough i dont exactly know what this nucleus does.
I tried to disable it via project properties, but after that i had some errors inside my project because he deleted jars etc...



Am Freitag, 28. September 2012 02:26:45 UTC+2 schrieb Manuel:
Hi everyone,

Actually I try to use GWT, Request Factory + JPA with Hibernate.
It seems to be working, but there is no data in my local database.

I can create a EntityMangerFactory  
private static final EntityManagerFactory emfInstance = Persistence.createEntityManagerFactory("kunde");[/code]

a EntityManger
EMF.createEntityManager()

and persists a Object
em.persist(Worker);

I can also read all my persisted Objects.

But I dont know where the data is saved. I thought, it should be saved in the postgresDB I configured in my persistence.xml?


Any help is much appreciated.
Thanks in advanced.

Regards,
Manuel



Here is my Code, please let me know if you need any further information.

My Entity Class
package de.mash.project.server;

import java.util.List;

import javax.jdo.annotations.Transactional;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityManager;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "Worker")
public class Worker {

    public static Worker findWorker(Long id) {
        // if (id == 0) {
        return null;
        // }
        // EntityManager em = entityManager();
        // try {
        // Worker worker = em.find(Worker.class, id);
        // return worker;
        // } finally {
        // em.close();
        // }
    }

    @Transient
    protected Object[] jdoDetachedState;

    // @Id
    // @GeneratedValue(generator = "auto_increment")
    // @GenericGenerator(name = "auto_increment", strategy = "increment")
    // @Column(name = "id")
    // private int id;

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "first_name")
    private String firstName;

    @Column(name = "last_name")
    private String lastName;

    @Column(name = "salary")
    private int salary;

    public Worker() {
    }

    public Worker(String fname, String lname, int salary) {
        this.firstName = fname;
        this.lastName = lname;
        this.salary = salary;
    }

    public Long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String first_name) {
        this.firstName = first_name;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String last_name) {
        this.lastName = last_name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public static Long countWorkers() {
        return 2l;
    }

    public Integer getVersion() {
        return 1;
    }

    public void persist() {
        EntityManager em = entityManager();
        try {
            // em.getTransaction().begin();
            em.persist(this);
            // em.flush();
            // em.getTransaction().commit();
        } catch (Exception e) {
            int i = 1;
        } finally {
            em.close();
        }

        em = entityManager();

        final List<Worker> list = em.createQuery("select p from Worker p").getResultList();

        System.out.println(list.size());
        for (Worker current : list) {
            System.out.println(current.getFirstName() + " " + current.getLastName() + " " + current.getSalary());
        }

        em.close();

    }

    public static final EntityManager entityManager() {
        return EMF.get().createEntityManager();
    }

}


My persistence.xml
<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
        http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
   
    <persistence-unit name="kunde" transaction-type="RESOURCE_LOCAL">
        <class>de.mash.project.server.Worker</class>

        <properties>
            <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
            <property name="hibernate.show_sql" value="true" />
          
            <property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
            <property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/dev_mash" />
            <property name="hibernate.connection.username" value="postgres" />
            <property name="hibernate.connection.password" value="m4nu3l" />
            <property name="hibernate.default_schema" value="public" />
          
            <property name="hibernate.hbm2ddl.auto" value="create" />
            <property name="hibernate.hbm2ddl.auto" value="create-drop" />
        </properties>
    </persistence-unit>
   
</persistence>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aX-ZEugyknIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.