How to build a place hierarchy?

34 views
Skip to first unread message

Drew Spencer

unread,
Oct 25, 2012, 7:09:55 AM10/25/12
to gwt-pl...@googlegroups.com
Hi coders,

I'm just implementing the editor framework in my app - replacing the hand made forms I used to have. My problem is this... I want my cancel button to go back to the previous page. This could be the page if the actual object being edited (if it was an existing object) or it could be a different page (if the user was going to create a new object from scratch but changed their mind).

I tried to use placeManager.revealRelativePlace(-1), but have found that my hierarchy depth is always 1. How do I build a proper history hierarchy? I am using placeManager.revealPlace(NameTokens.placename) for all reveals.

I must be missing something from the docs but if anyone can help I'd most appreciate it.

Drew 

Drew Spencer

unread,
Oct 25, 2012, 7:45:44 AM10/25/12
to gwt-pl...@googlegroups.com
Think I've got it!

Using revealRelativePlace instead of revealPlace seems to be doing the trick. Still playing with it though.
Reply all
Reply to author
Forward
0 new messages