Re: Implementing Normal HTML Instead of GWT

2012-09-30 Thread Manuel Carrasco Moñino
On Mon, Oct 1, 2012 at 12:44 AM, Michael Allan  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+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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Editor driver factory?

2012-09-30 Thread Milan Cvejic
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 {}
 
  // 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+unsubscr...@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

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



Re: javascript files GWT generates

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



Re: GWT podcasts?

2012-09-30 Thread Joseph Lust
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+unsubscr...@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

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



Re: [ANN] Sheath: Dagger Inside

2012-09-30 Thread Joseph Lust
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+unsubscr...@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

2012-09-30 Thread sachin sreenivasan
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+unsubscr...@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

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



Re: GWT using App Engine

2012-09-30 Thread Manuel
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+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 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+unsubscr...@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

2012-09-30 Thread Manuel Carrasco Moñino
On Sun, Sep 30, 2012 at 9:45 AM, sampath88 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+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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Implementing Normal HTML Instead of GWT

2012-09-30 Thread sampath88

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