Questions tagged [gwt-places]

GWT 2.1 introduced a built-in framework for browser history management. The Places and Activities framework allows you to create bookmarkable URLs within your application, thus allowing the browser's back button and bookmarks to work as users expect.

GWT 2.1 introduced a built-in framework for browser history management. The Places and Activities framework allows you to create bookmarkable URLs within your application, thus allowing the browser's back button and bookmarks to work as users expect.

49 questions
1
vote
1 answer

GXT + GWT MVP in a single application?

I am working on this project which uses 100% gxt code. Now we have another small project which is written using GWT MVP pattern and we are tasked to integrate the 2 projects into one.So pretty much we will be making back and forth method calls…
yonikawa
  • 581
  • 1
  • 9
  • 32
1
vote
2 answers

Should GWT Activities/Places be Singletons or Prototypes?

What's the difference (performance and otherwise) between this: public class MyPlaceMapper implements PlaceHistoryMapper { @Override public String getToken(Place place) { if(place instanceof HomePlace) return "home"; …
user1768830
1
vote
1 answer

Ratio of GWT Places to Activities to Screen?

I'm trying to write a GWT app that reuses the same template for every "page" (place). There are 4 main "pages" of the app: Dashboard page (http://www.mywebapp.com/#dashboard) Calculator page (http://www.mywebapp.com/#calc) Configurator page…
user1768830
1
vote
1 answer

How do GWT PlaceHistoryMapper tokens translate to actual URLs?

If I implement my own PlaceHistoryMapper: public class MyAppPlaceHistoryMapper implements PlaceHistoryMapper { @Override public Place getPlace(String token) { if(token.equals("home")) return new HomePlace(); else …
user1768830
1
vote
0 answers

GWT MVP: Connecting the Dots on Presenters, Activities, Displays & Places

I am attempting to design my first, super-simple GWT app, that takes advantages of most of GWT's major API features. I think I'm about 70 - 80% of the way there, but after pouring over the GWT docs, countless articles, and posting many other…
Bantha Fodder
  • 1,242
  • 1
  • 11
  • 19
1
vote
1 answer

GWT - Dialog Box with Places/Activities

I have a header bar at the top of the page which contains buttons and anchors. One of the anchors on the header bar opens a dialog doing the following: The view calls the activity which does a goTo to a new place, in the start method of the activity…
1
vote
1 answer

Using GWT Places and Activities or not in very large project

Imagine a very big gwt project of application. This is just a some form of scientific environment on the web. So for each user it stores the state of app and there is nothing related to browser history or bookmarks. History is something that can't…
Niko
  • 71
  • 5
0
votes
1 answer

What is best testing strategy and tool for a GWT project

I am developing with GWT since a few months. I have difficulties with testing. I am using MVP pattern and activities and places. I test the classes without any GWT specific code with Junit. But the client classes with lots of GWT dependencies are…
Kayser
  • 6,544
  • 19
  • 53
  • 86
0
votes
1 answer

GWT persistent URLs

I have a web-app built with GWT, Request Factory and Places/Activities. I'm curious whether history tokens I use are persistent or not. The task is basically just about having URLs that define exact places of my web-app (read as - "files/folders…
Andrey Agibalov
  • 7,624
  • 8
  • 66
  • 111
0
votes
5 answers

How to show previous url after user has canceled dialog with message from Activity#mayStop()?

In our app we need to check if the data is saved when we are in a particular place before navigating away from it. So the user should be able to negate a browser back button request. But by the time that the history value change event is received…
Bill Lyons
  • 19
  • 2
0
votes
2 answers

GWT tokenizer: How to change URL

I am using Activities and Places. I have a LoginPlace. The url displayed when I navigate to that place has this at the end: #LoginPlace:login How can I change this to just #login or something else? My tokenizer looks like this: public class…
user3629892
  • 2,960
  • 9
  • 33
  • 64
0
votes
2 answers

Understanding GWT onModuleLoad

Behold, my first GWT app's EntryPoint impl: public class MyModule implements EntryPoint { private SimplePanel mainPanel = new SimplePanel(); @Override public void onModuleLoad() { // Extract all root-level dependencies from the…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
0
votes
3 answers

Understanding GWT AbstractActivity's start method

I'm trying to learn both GWT-recommended MVP and their Activities & Places API (yes, I know they are two different things, but they seem play nicely into each other). In a lot of code examples of Activities/Places, I keep seeing the following…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
0
votes
1 answer

How to generate a navigable URL for a particular slotted place?

How do I generate the URL to navigate to a particular place in slotted? I know that to navigate the current user to a particular place, it would just be (assuming slottedController is defined and pointing to a valid SlottedController…
Jeff Evans
  • 1,257
  • 1
  • 15
  • 31
0
votes
1 answer

Adding to GWT RootPanel or just setting the default view?

I have the following GWT classes: public class MyDefaultView extends Composite { // Uses UiBinder and just contains all the widgets for this view. } public class MyDefaultActivity extends AbstractActivity { @Inject private MyDefaultView…
user1768830