Thursday, May 12, 2016

Re: Dear GWT



On Thursday, May 12, 2016 at 12:38:16 PM UTC+2, junaidp wrote:
After reading the above conversation it looks like this a feature in GWT 2.8 with which we can at run time add/change a class at client side ..
Is this true?

No.
 
Coz I just try using GWT2.8 then running sdm , and then I just change some thing in a class  
like if before the class contains 
Window.alert("Hello");

At run time i goes to the code and change it to Window.alert("Hello world");
and then click the button which calls that class ... 
But I still get the message "Hello";

to see the "Hello world" I need to refresh the application.

Yes, that's how SDM works. But refreshing the page in the browser is not the same thing as restarting SDM.
 
So i was just wondering if there is some way for the above thing in 2.8 

No.
 
Actually i have a requirement where we allow user to add/upload UI layouts at run time , 

Jrebel wont help me as it only works with java , where as GWT client in sdm is javascript.
tried dynamicUIBinder , it gives the layout at runtime but dont load any handlers etc.

So I need a way where user can upload a Java UI class(GWT composite) with the layout + Handlers. which loads at run time , without restarting the application..

Good luck with that, it's going to be a long and probably painful journey.
 
Is this what GWT 2.8 is providing or is there any way i can achive the above.

It's probably possible to run the GWT compiler on the server with the uploaded files to produce a small GWT app with just that code. You'd need some glue code to be able to load that small app into your "bigger" app and have them talk to each other.
But most importantly, you need to run the GWT in a sandbox to make sure uploaded files can't be used to access the server-side app or the machine (if you take care to not JavaC the classes, that'd probably be through bugs in the GWT compiler, but still)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment