how to add custom token in URL (using Activities and Places )

41 views
Skip to first unread message

sridevi macherla

unread,
Oct 12, 2011, 9:17:36 AM10/12/11
to google-we...@googlegroups.com
Hi,

I am working on Activities and Places for one of our App.  I am not sure how to add the functionality for eg:

1. http://lhost/?page=App1  (this can  be done with Place and Actiivity) and I have done it

2. http://lhost/?page=App1 &param1="abc"&param="2"

How to append the params in Activities and Places and all the params are dynamic in place, please help me by providing a soluation or sample.

tha nks in advance
Sri
 

Prakash

unread,
Oct 13, 2011, 7:04:23 AM10/13/11
to google-we...@googlegroups.com
AFAIK, this cant be done with GWT Places. 
GWT places can only understand whatever comes after '#' sign in URL.

Check the HelloPlace class in hellpmvp tutorial available in GWT docs page. That will give you an idea on how to add parameters to Place.

If you really want to access/change the params in URL, then one way of doing is using  http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Window.Location.html

-Prakash M.





Ashton Thomas

unread,
Oct 13, 2011, 11:24:42 AM10/13/11
to google-we...@googlegroups.com
Prakash, this question is a duplicate by Sri:

Other identical post:

Sri, please do not copy and paste your questions as it is redundant and decreases the usefulness of this forum.
Reply all
Reply to author
Forward
0 new messages