Sunday, September 30, 2012

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.

No comments:

Post a Comment