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

Reply via email to