gwtp

How to detect if a View is fully rendered?

浪尽此生 提交于 2019-12-11 09:49:30
问题 I have a couple of GWT widgets which are displayed in a view. The view contains content like this: FlowPanel mainPanel = new FlowPanel(); RootPanel.get().add(mainPanel); Label label = new Label("test"); mainPanel.add(label); FlowPanel otherPanel = new FlowPanel(); mainPanel.add(otherPanel); The mainPanel gets its final height after the view has been fully rendered. I need to get the value of height from the mainPanel after the render process is completed. Here is what I do so far: new Timer()

Intermitant serialization exception with GWT Dev mode and external server

蹲街弑〆低调 提交于 2019-12-11 02:04:29
问题 I have a GWT app which runs pretty much flawlessly in Dev mode with GWT's embedded jetty server. However, I need to move over to using an external jetty server (For various reasons). I followed the GWT documentation Compile & Debug for external server setup exactly. My app runs, however 2/3 of the time on load I get a serialization exception similar to this (On the server side): com.google.gwt.user.client.rpc.SerializationException: Type 'my.package.impl.ContentTypeImpl' was not assignable to

How to use EventBus for non-Presenter class in GWTP?

邮差的信 提交于 2019-12-10 11:45:17
问题 I am using GWTP platform & eClipse to build webapp. In Eclipse, when creating a Presenter, it will create 3 files (ex: SearchPresenter.java, SearchView.java, & SearchView.ui.xml): public class SearchView extends ViewImpl implements SearchPresenter.MyView public class SearchPresenter extends Presenter<SearchPresenter.MyView, SearchPresenter.MyProxy>{ .... private EventBus eventBus; @Inject public SearchPresenter(final EventBus eventBus, final MyView view) { super(eventBus, view); this.eventBus

“duplicate class” on boilerplate generation (GWTP) with maven

女生的网名这么多〃 提交于 2019-12-09 01:26:39
问题 After using the boilerplate mechanisms of GWTP I get the error that the classes (which where generated) are already existing. The folder target/generated-sources contains "annotations" and "apt" but no "gwt". Both folders "annotations" and "apt" have the same content. my pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven

When click on an item in a tree, it makes the vertical scroll bar jump up

两盒软妹~` 提交于 2019-12-08 11:29:37
问题 Look at this simple code Tree testTree=new Tree(); TreeItem testTreeItem=new TreeItem("test"); TreeItem testTreeItem2=new TreeItem("test2"); more TreeItem.... testTree.addItem(testTreeItem1); testTree.addItem(testTreeItem2); ........ Now, resize your browser so that you can see the vertical scroll bar on the right hand-side. Now click on a tree item at the very bottom ex testTreeItem10 , you will see the the vertical scroll bar jump up instead of staying in the current position. This error

How to fix the Column Ordering issue when Insert and Remove columns in GWT?

假装没事ソ 提交于 2019-12-08 11:06:48
问题 I have a cellTable that has many columns like the followings: OrderID - OrderDate - OrderTime - Name ..... 1 - 2012-01-05 - 11:12:12 - Tom...... Each column will have a checkBox for Hide/Unhide column: [x] orderID (CheckBox) [x] orderDate (CheckBox) [x] orderTime (CheckBox) ...... Requirement: I want that when users uncheck the CheckBox the corresponding column will disappear & when they check the CheckBox, the column will appear in the CORRECT ORDER as at the beginning. This is the code:

Instantiate a PresenterWidget (GWTP) manually

只谈情不闲聊 提交于 2019-12-02 00:55:36
i am new to GWT, GWTP. I have a PresenterWidget which gets instantiated multiple times and gets added to a slot. I want to define the amount of instances programmatically. I only know that I make a new Instance of the Widget by Injecting it. @Inject MyWidgetPresenter first; @Inject MyWidgetPresenter second; // ... Can I instantiate it with new? how do instantiate the view? I tried to use a composite because it seemed to be the smartest solution, because it doesnt contain much logic anyway. But I cant add a composite to a slot. Thanks in advance André You can get the ClientGinjector reference

Instantiate a PresenterWidget (GWTP) manually

眉间皱痕 提交于 2019-12-01 22:06:46
问题 i am new to GWT, GWTP. I have a PresenterWidget which gets instantiated multiple times and gets added to a slot. I want to define the amount of instances programmatically. I only know that I make a new Instance of the Widget by Injecting it. @Inject MyWidgetPresenter first; @Inject MyWidgetPresenter second; // ... Can I instantiate it with new? how do instantiate the view? I tried to use a composite because it seemed to be the smartest solution, because it doesnt contain much logic anyway.

“duplicate class” on boilerplate generation (GWTP) with maven

流过昼夜 提交于 2019-12-01 01:04:42
After using the boilerplate mechanisms of GWTP I get the error that the classes (which where generated) are already existing. The folder target/generated-sources contains "annotations" and "apt" but no "gwt". Both folders "annotations" and "apt" have the same content. my pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>de.s.pp</groupId> <artifactId

GWT-Platform login + session management

烂漫一生 提交于 2019-11-28 11:38:01
I am new to gwt and I am creating a login page using gwt and I need help with session managment. All answers already given here, explains how to manage sessions on server side, I need to use session on client side (browser's session) exactly like with JSP files: session.setAttribute("UserName", username); Can any one provide a clear full example of how to implement this (Remember I am new to gwt). I looked at this tutorial: http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ And this doesn't help me because it doesn't explain how to use the browser's session. Thank you.