Re: Dynamic place navigation

2013-06-18 Thread Akbar Gadhiya
Hi All,

Thanks for responding. I will try to add return place in my new place.


On Tue, Jun 18, 2013 at 3:01 PM, Thomas Broyer  wrote:

>
>
> On Tuesday, June 18, 2013 11:19:39 AM UTC+2, Prince wrote:
>>
>> Hi,
>>
>> I have a requirement to navigate to the places where place is dynamically
>> decided.
>>
>> For example,
>>
>> I have an "Edit User" link from Screen-1 & Screen-2. When I click on the
>> link, it takes me to EditUserView.java. Now, when I click on Save button
>> from my EditUserView.java, it should take me to Screen-1 if I come
>> from Screen-1 and to Screen-2 if I come from Screen-2.
>>
>> Is there any way I can achieve this?
>>
>
> Add the "return-to place" to the "edit user" place (that doesn't mean you
> surface it in the URL through the PlaceTokenizer though), so you can use in
> from your EditUserView (and choose a sane default when the place is
> constructed from the URL and doesn't have a "return-to place"; as an
> alternative, just put the "return-to place" in the URL, serializing it
> using the PlaceHistoryMapper).
> As an alternative, you can use 2 distinct places *resolving* to the same
> EditUserView.
> In any case, the idea is to choose the next place based on the current
> place.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

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




Re: Dynamic place navigation

2013-06-18 Thread Thomas Broyer


On Tuesday, June 18, 2013 11:19:39 AM UTC+2, Prince wrote:
>
> Hi,
>
> I have a requirement to navigate to the places where place is dynamically 
> decided.
>
> For example,
>
> I have an "Edit User" link from Screen-1 & Screen-2. When I click on the 
> link, it takes me to EditUserView.java. Now, when I click on Save button 
> from my EditUserView.java, it should take me to Screen-1 if I come 
> from Screen-1 and to Screen-2 if I come from Screen-2.
>
> Is there any way I can achieve this?
>

Add the "return-to place" to the "edit user" place (that doesn't mean you 
surface it in the URL through the PlaceTokenizer though), so you can use in 
from your EditUserView (and choose a sane default when the place is 
constructed from the URL and doesn't have a "return-to place"; as an 
alternative, just put the "return-to place" in the URL, serializing it 
using the PlaceHistoryMapper).
As an alternative, you can use 2 distinct places *resolving* to the same 
EditUserView.
In any case, the idea is to choose the next place based on the current 
place.

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




Re: Dynamic place navigation

2013-06-18 Thread Jens
History.back(); maybe? 

If this doesn't work for you then store the previous place in the current 
place so you can call 
placeController.goTo(editUserPlace.getPreviousPlace()); later on.

-- J.

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




Dynamic place navigation

2013-06-18 Thread Prince
Hi,

I have a requirement to navigate to the places where place is dynamically 
decided.

For example,

I have an "Edit User" link from Screen-1 & Screen-2. When I click on the 
link, it takes me to EditUserView.java. Now, when I click on Save button 
from my EditUserView.java, it should take me to Screen-1 if I come 
from Screen-1 and to Screen-2 if I come from Screen-2.

Is there any way I can achieve this?

Thanks

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