• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why should I use GWT Deferred Binding Using Replacement

 
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, I am new to GWT and am reading about GWT deferred binding. I understood about deferred binding a bit. It is used to generate javascript files at runtime for a browser based on the user agent.

I was reading this page. What I don't understand is why should I use GWT's "Deferred binding using replacement"?

The author says that for each specific browser an appropriate javascript file is generated. Again he says that when you are using PopupPanel you have to use GWT's <replace-with> element to generate browser specific implementations.

My question is will GWT not do it for me? Will it not identify the right implementation itself?

Or my understanding is wrong? Is the author trying to say that it is done automatically, it is already coded and he is only trying to explain deferred binding neatly by showing the code?

Thank you all in advance, have a good day.


 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think my understanding is wrong. May be the author is trying to tell this is how GWT selects the specific implementation for PopupPanel at runtime based on the user agent.
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I don't understand is will GWT generate all javascript files for every browser while compiling the module or will it generate the javascript file when a request comes?

What do you say experts?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic