Hi Quu, seems all sources I read advice to use exactly the same approach you already use. Maybe this will be useful for you as well: http://aarendar.wordpress.com/2010/01/11/custom-integration-of-gwt-widgets-into-jsps/
Sincerely, Alex On Mon, Mar 1, 2010 at 9:00 PM, Quu <[email protected]> wrote: > Is there a clean or elegant way to pass configuration data from the > page that is hosting my GWT application into GWT itself? > > right now I use the following to pass info from the page to the app > in the HTML (PHP actually, but HTML when it reaches the client) I do > something like the following > <script> > window.dataXMLURL = "/stoplanner/STOPlanner.xml"; > </script> > > > and then in my java app, I have the following function to match > public static native String getXMLSourceLocation() /*-{ > return $wnd.dataXMLURL; > }-*/; > > is there a cleaner or easier way to give configuration information to > my GWT application? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
