Saturday, January 23, 2016

Re: GWT 2.7 retrieving input parameter from calling URL

Methods of c.g.g.user.client.Window.Location should have helped you. What's the exception you're getting?

On Sat, Jan 23, 2016 at 5:32 PM rsearls <rsearls@gmail.com> wrote:

I have an external webpage, with a link (<a href="http://localhost:8080/myGWTapp?str=my-new-data">call test</a>)
to my GWT app.  I want to capture the passed parameter and display it in the first (view) of the app.
My GWT app has been implemented using the MVP pattern.  With debugging I can see that MyEntryPoint,
impl of EntryPoint intf is called and the AppController class is called.  I have not been able to gain
access to the href or its parameter in either of these classes using
com.google.gwt.core.client.GWT or com.google.gwt.user.client.Window.Location.  Both of these classes
throw an exception when referenced in my classes. 

How can I get access to the url and the parameter?

--
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.
--
BORIS BRUDNOY
Web Application Developer, Java/GWT Enthusiast (LinkedIn)

--
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