I'm new with GWT and recently I've added Actvivities, Places and ActivityMappers to my code. I have one ActivityManager-ActivityMapper per each region. Regions like the header or the menu dont't change a lot so I have to write a lot of boilerplate code in the ActivityMapper for load the same Presenter every time but with a different constructor. For every possible Place I have to write another constructor for the Presenter in order to take the instance given by the ActivityMapper. There's any way to do that easier? Moreover, I'm not happy with the idea of creating a new Presenter every time that we move to a new place(even if you are going to load the same Presenter). In fact I have a big problem with that, cause my activities never die and they keep receiving events.
ActivityMapper, dealing with regions which don't change a lot
33 Views Asked by Nono St At
1
There are 1 best solutions below
Related Questions in GWT
- When accessing the page with gwt it is blank, it does not load
- Encountering bindException when running CodeServer
- How to get variable from GWT Callback
- IntelliJ Idea won't stop on breakpoints while GWT debugging in Super Dev Mode
- How to debug GWT project in Idea
- [Resolved]How to set up gwt super dev mode with the new gwt maven plugin with a web application using Errai framework?
- Integrate DominoKit/-UI Elements Into Existing GWT Application
- Avro after upgrading to JDK 17
- Draw graph in GWT
- How do I stop maven-jetty-plugin jetty:run output warnings: scanned from multiple locations
- Type incoherence when compiling Java code through GWT
- Application not loading with new GWT Maven Plugin
- Getting the error while updating GWT 2.5.1 to 2.11.0 and sencha GXT 3.1.1 to 4.1
- Playing an audio in the front-end without storing any cache to avoid illegal downloading
- how to add a static value to a FlexTable in the ui.xml file GWT?
Related Questions in ACTIVITY-MANAGER
- Activity detection in iOS - Activity Manager want to detect automotive activity in background,foreground and app terminate states
- How to hide app using Android activity manager?
- How can I visually inspect the real-time Activity and Fragment stack in an Android application for debugging purposes?
- Replace getRunningServices(int) for a newer method
- Whitespace in custom args on Android instrument test run
- How attach Tag intent extra for NFC-Tag scan simulation through ADB shell?
- For Android Lock Task Mode is activityManager.lockTaskModeState always "LOCK_TASK_MODE_NONE"
- How can i create a foreground service which keeps track of which applications are being opened?
- Android service isn't killing background process, nor does stopSelf() work
- why is android coming from background activity class "com.miui.home.launcher.Launcher"
- Android - Can't start an activity with "am start" when running as user on Android 11
- Android WebView got E/ActivityManager: ANR error when used Custom Keyboard
- Android application process gets killed automatically after running for some time
- Why is launcher activity with launchMode="singleTask" always pushed to top of backstack even if another activity was on top?
- how to change volume using activity manager (am) in termux
Related Questions in GWT-ACTIVITIES
- Send data between activities with custom variable
- GWT tokenizer: How to change URL
- GWT Activities: Widget added to view again when using browser back button
- gwtupload conflict with Activities and places framework
- How to handle invalid GWT token in places
- What's the point of CachingActivityMapper?
- Activities unexpectedly killed
- ActivityMapper, dealing with regions which don't change a lot
- GWT Activities & Places - Panel in EntryPoint
- Google layer appears wrong with gwt-openlayers
- Understanding GWT onModuleLoad
- Understanding GWT AbstractActivity's start method
- How to generate a navigable URL for a particular slotted place?
- How to achieve nested activities gwt
- GWT: A way to cancel PlaceChangeEvent?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
When an
ActivityMapperreturns the exact sameActivityinstance (reference equality, i.e.==, notequals()) as previously, then the activity is not restarted, and the region is not touched. This is a deliberate optimization for those cases of regions that don't change often (e.g. headers or menus, or a master region in a master-detail setup). This is also the reason for theCachingActivityMapper(andFilteredActivityMapper, specifically designed to be used with theCachingActivityMapperin a master-detail setup)In your case, it seems like you're imposing a rule to yourself that makes it hard for you to take advantage of this optimization: you're passing the current place to your activity's constructor, for no apparent reason.