GWTP | complete model-view-presenter framework | SDK library

 by   ArcBees Java Version: 1.6 License: Non-SPDX

kandi X-RAY | GWTP Summary

kandi X-RAY | GWTP Summary

GWTP is a Java library typically used in Utilities, SDK applications. GWTP has no bugs, it has no vulnerabilities, it has build file available and it has low support. However GWTP has a Non-SPDX License. You can download it from GitHub, Maven.

goo-teepee A complete model-view-presenter framework to simplify your next GWT project.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              GWTP has a low active ecosystem.
              It has 329 star(s) with 127 fork(s). There are 60 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 57 open issues and 334 have been closed. On average issues are closed in 187 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of GWTP is 1.6

            kandi-Quality Quality

              GWTP has 0 bugs and 0 code smells.

            kandi-Security Security

              GWTP has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              GWTP code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              GWTP has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              GWTP releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.

            Top functions reviewed by kandi - BETA

            kandi has reviewed GWTP and discovered the below as its top functions. This is intended to give you an instant insight into GWTP implemented functionality, and help decide if they suit your requirements.
            • Process the given event
            • Generate the associated type method
            • Generate the dispatch method
            • Generate the fire event static method
            • Handle a GET request
            • Renders a single page
            • Checks if a page needs to be fetched
            • This is the main method that filters out requests
            • Rewrites the escaped query string
            • Returns the name of the annotated method
            • Binds the request
            • Handles the presenter from the request
            • Binds the services
            • Bind class
            • Add content to slot
            • Returns the name of the type of the event
            • Converts an unescaped history token into a place request hierarchy
            • Executes the given action
            • Undo the action
            • Process DTO
            • Creates a new cookie from the given string
            • Executes an action on an action
            • Create a cookie from its value
            • Creates a new ProxyDetails object
            • Bind the controller
            • Execute action
            Get all kandi verified functions for this library.

            GWTP Key Features

            No Key Features are available at this moment for GWTP.

            GWTP Examples and Code Snippets

            No Code Snippets are available at this moment for GWTP.

            Community Discussions

            QUESTION

            GWT Validation-Api GA
            Asked 2019-May-22 at 05:21

            My build.gradle

            ...

            ANSWER

            Answered 2017-Dec-12 at 18:06

            You didn't post your gradle.properties with the dependency versions nor did you post the output of gradle dependencies so hard to say definitely as that dependency can be pulled in from multiple sources.

            But one way is forcing it via the resolution strategy like this:

            Source https://stackoverflow.com/questions/47697381

            QUESTION

            GWT Timer UnsatisfiedLinkError when testing with Jukito
            Asked 2019-Mar-07 at 17:25

            I'm using Jukito to test a GWTP Presenter and in one of those that has a timer as a field for a repeating task I'm having this exception thrown.

            I'm running GWT 2.8.2, GWTP 1.6, JUnit 4 and Jukito 1.5

            The test looks like this:

            ...

            ANSWER

            Answered 2019-Mar-07 at 17:25

            Avoid using Timer and use com.google.gwt.core.client.Scheduler instead. Then you can bind an actual scheduler in prod code, and the StubScheduler in tests.

            You can make Timer works using gwtmockito, but I as you are already using injection, you really should hide any native or GWT.create call behind abstractions, and use alternative implementation for tests.

            Source https://stackoverflow.com/questions/55041645

            QUESTION

            GWTP Presenter and View retaining old values
            Asked 2018-Dec-17 at 18:06

            I am using GWTP and all my presenters extend Presenter class. If I navigate from A to B and then back to A, then instead of the new values, the old values in the form A are still displayed as if it was displaying a copy of the old values.

            How can I make the app create new instances of Presenters to avoiding displaying old values?

            ...

            ANSWER

            Answered 2018-Dec-17 at 18:06

            Presenter and Views are usually expensive to instantiate, so GWTP recommend to use both as a singleton, the view is unnecessary bc the presenter will keep the instance so it behaves like an inner-singleton. In that case, your current case, just reset the presenter state on one of the life cycle phases "prepareFromRequest", "onReveal" or "onReset" depending on how your view works.

            Note that doing this is much easier than it looks, if your view is not in sync with your presenter, which should be your case, just move the code from the less-frequently-updated life-cycle (ex. construction or onBind) to a more-frequently-updated (ex. onReveal or onReset) then, whenever you navigate your presenter and the view is showed, this will be correctly updated and the singleton problem will get irrelevant.

            If you really want to create a non-singleton presenter you can do the binding manually instead of using AbstractPresenterModule#bindPresenter. This might be a bit dangerous if you try to reference the presenter in multiple places, and also the presenter will be the same during resets, but I think it will be a new instance on each reveal.

            Source https://stackoverflow.com/questions/53812726

            QUESTION

            Multiple entry points in GWTP
            Asked 2018-Nov-11 at 17:57

            GWTP uses Formfactors to support multiple targets like;

            • Desktop
            • Web Mobile
            • Tablet

            Next to multiple targets, i want to support multiple Desktop versions of my project by means of different domains or addresses.

            This means multiple entry points connected to different URL's

            • desktop.project.nl
            • dashboard.project.nl

            Or

            • project.nl/desktop
            • project.nl/dashboard

            How do i configure multiple entry points to different URL's (or addresses) in GWTP?

            ...

            ANSWER

            Answered 2018-Nov-11 at 17:57

            During a nice chat at https://gitter.im/gwtproject/gwt# some really nice ideas where suggested;

            The basic idea is to just check the URL and then start a different root panel (desktop or dashboard). One step further this different desktop/dashboard implementations can be achieved with multiple modules (with different URL's) in the project (like the tbroyer archetype) enabling the possibility to use modules with shared functionality.

            Another approach would be to decide which permutation to provide after checking the URL. This would just be a variation on the current GWTP formfactors implementation;

            https://github.com/ArcBees/GWTP/blob/master/gwtp-core/gwtp-mvp-client/src/main/resources/com/gwtplatform/mvp/FormFactor.gwt.xml

            Shows how GWTP defines their property to control different formfactors the class in the "property-provider" tag will generate the JS that actually selects a value (i.e. how does the .nocache.js know which device it is running on).

            https://github.com/ArcBees/GWTP/blob/master/gwtp-core/gwtp-mvp-client/src/main/resources/com/gwtplatform/mvp/rebind/linker/formFactor.js

            Is the guts of it, supporting both a "if it matches these browsers, we are mobile" sort of thing, plus also the ability to override it from the URL and specify which should be used, for debugging and such (or "request desktop site")

            Colin Alworth

            Instead of using logic to figure out which kind of browser is running, just check window.location.hostname etc. to see if it contains desktop vs dashboard

            Source https://stackoverflow.com/questions/47237058

            QUESTION

            non-singleton PresenterWidgets/Views in GWTP project
            Asked 2018-Apr-11 at 20:55

            I'm using GWT with the GWTP framework in my projects. Until now all presenters/views where of type singleton (one dedicated window for each implementation type). Now i have a special (document) window where i want to create a new presenter/view (window) for each document the user wants to open.

            GWTP class com.gwtplatform.mvp.client.gin.AbstractPresenterModule contains methods for binding non-singleton PresenterWidgets/Views, for example with a PresenterWidget factory;

            But i cannot find any documentation or examples about this GWTP PresenterWidget factory usages. How do i implement this PresenterWidget factories?

            ...

            ANSWER

            Answered 2018-Apr-11 at 20:55

            There's a difference between using com.gwtplatform.mvp.client.PresenterWidget and com.gwtplatform.mvp.client.Presenter when implementing your own presenter classes.

            When using Presenter (with a PresenterProxy), GWTP handles the presenter as singleton.

            Source https://stackoverflow.com/questions/49257769

            QUESTION

            PresenterWidget removeFromSlot fails
            Asked 2017-Dec-08 at 10:56

            When trying to remove presenterWidget from slot, comparison in class PresenterWidget method rawRemoveFromSlot() fails and getView().removeFromSlot() is not being called.

            Exmaple:

            ...

            ANSWER

            Answered 2017-Dec-08 at 10:56

            Problem is that to determine if slot and child.slot is equal, GWTP implementation uses direct comparison, meaning object references must be equal. In the GWT 2.7 and GWTP 1.4 you could send String as slot, like removeFromSlot("SOME_SLOT", widget) and this would work, since mthod was removeFromSlot(Object object, PresenterWidget w).

            With new version, this method was deprecated and one would have to pass Slot object to method instead...and since I don't have these Slot objects saved and instead have them created on runtime by widget id, removeFromSlot() slot comparison fails.

            Solution would be to save Slot references when widget is created with method setInslot() or maybe there already is way to retrieve widget slot...

            In general using == to compare objects is not advisable. It would be so easy to fix my problem if equals() was used instead.

            Source https://stackoverflow.com/questions/47711307

            QUESTION

            GWT (2.7.0 -> 2.8.2) Incorrectly typed data found for annotation
            Asked 2017-Oct-31 at 10:27

            I am trying to migrate from GWT 2.7.0 to GWT 2.8.2 version. Unfortunately, I ran into some problems. I keep getting AnnotationTypeMismatchException.

            Relevant pom parts:

            ...

            ANSWER

            Answered 2017-Oct-31 at 10:27

            Some RPC classes were using incorrect import, which worked with GWTP 1.4, but did not work with GWTP 1.6.

            changed

            Source https://stackoverflow.com/questions/47019136

            QUESTION

            GWTP security mechanism clarification
            Asked 2017-Aug-03 at 05:59

            Can someone explain in simple terms what "security" means in GWTP? (https://dev.arcbees.com/gwtp/core/security/ does not give a conceptual explanation, just pieces of code).

            Roughly speaking, security is usually implemented by sending the browser a cookie after the user login. This cookie is sent then to the server with each browser request, and so the server knows, upon inspecting the cookie, that the request comes from an authenticated user.

            But there are no cookies in GWTP, everything is client side apart from AJAX requests. So what does "security" (gatekeepers etc) mean in GWT?

            ...

            ANSWER

            Answered 2017-Aug-03 at 05:59

            The "cookie part" of the security mechanism that you describe is not something that GWTP concerns itself with; that is part of what the programmer needs to do.

            The article that you linked describes ONLY how you can say "when someone tries to access this particular Presenter/Widget, ask this particular class (a Gatekeeper) if it is allowed". That's it. It is your responsibility to bring client-side whatever info you need about your users, such as roles, etc.

            And yes, documentation is pretty scarce. However, I've just finished implementing this Gatekeeper stuff in our apps, and I've found the example here very useful.

            Source https://stackoverflow.com/questions/45475858

            QUESTION

            GWT Google Material Design out of memory
            Asked 2017-Jun-02 at 17:40

            I created a wesbite with GWT 2.8.1 and try to use GMT. I followed Getting Started from the GMT demo website but without using the archetype. This is my pom:

            ...

            ANSWER

            Answered 2017-Jun-02 at 17:40

            Found a solution but not the reason.

            As I meantioned in the comments of the question, I used the quickstart archetype. I did not changed anything in my pom but in the .gwt.xml:

            Source https://stackoverflow.com/questions/44177682

            QUESTION

            Strange behavior of javascript RegExp in Firefox
            Asked 2017-May-08 at 12:56

            I need your advice on a strange problem I encountered in my GWTP application.

            The setup is like this: my application (GWTP front, Spring + Tomcat backend) and I'm doing all the tests on a SuperDevMode setup. The application has many modules (dealing with different businesses) and I have just added a new module recently.

            We have a header with a menu where the user can select a specific value and that value will be added to the URL, and we'll then reload the page.

            For example:

            • Current URL is localhost:8888?devId=2&locale=en#somePlaceToken
            • After selecting a value in the dropdown menu (e.g. test1), URL is localhost:8888?devId=2&locale=en&testVal=test1#somePlaceToken

            This is done the following way (this has been working this way for a long time for other modules):

            In Presenter:

            ...

            ANSWER

            Answered 2017-May-08 at 12:56

            See RegExp.$1-$9, the RegExp.$1 property is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

            What you should do is assign a new value to a new var, then, after replacing, check if old string is equal to a new string, and if not, the replacement was performed, else, it was not.

            Use something like

            Source https://stackoverflow.com/questions/43847801

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install GWTP

            You can download it from GitHub, Maven.
            You can use GWTP like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the GWTP component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            Get high quality support through ArcBees.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/ArcBees/GWTP.git

          • CLI

            gh repo clone ArcBees/GWTP

          • sshUrl

            git@github.com:ArcBees/GWTP.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular SDK Libraries

            WeiXinMPSDK

            by JeffreySu

            operator-sdk

            by operator-framework

            mobile

            by golang

            Try Top Libraries by ArcBees

            Jukito

            by ArcBeesJava

            gwtchosen

            by ArcBeesJava

            gwtquery

            by ArcBeesJava

            GWTP-Samples

            by ArcBeesJava

            teamcity-plugins

            by ArcBeesJava