gwt2

speeding up refresh for GWT projects

 ̄綄美尐妖づ 提交于 2019-12-04 04:57:51
I'm developing a project, using GWT.FireFox Browser and Eclipse IDE. when the project is running and i refresh my browser for client package changes, it takes too long. maybe 6 to 10 seconds. maybe cause be project became big. how can i speed-up the refresh process on the browser ? This post might help you. EDIT: Link now working again. Unfortunately there's not a lot you can do to speed up Development Mode refresh time, 6-10 seconds isn't a terrible amount of time comparatively (especially vs. not using Dev Mode and doing a full recompile each time). If you haven't tried code splitting yet,

How to hide column in Cell table GWT?

霸气de小男生 提交于 2019-12-04 02:40:02
I am using Cell Table in GWT.In that cell table I am adding these columns. TextColumn<Document> idColumn = new TextColumn<Document>() { @Override public String getValue(Document object) { return Long.toString(object.getId()); } }; TextColumn<Document> refColumn = new TextColumn<Document>() { @Override public String getValue(Document object) { return object.getReferenceNumber(); } }; /* * DateCell dateCell = new DateCell(); Column<Contact, Date> dateColumn * = new Column<Contact, Date>(dateCell) { * * @Override public Date getValue(Contact object) { return * object.birthday; } }; */ TextColumn

Why does GWT 2.7 discontinue the GWT Designer?

老子叫甜甜 提交于 2019-12-04 01:42:47
问题 As per GWT 2.7.0 (RC1) Release Note, GWT Designer is deprecated. I use the tool for some complex UI design in my project. Just don't know why this happens and what are alternatives without it. 回答1: The GWT Designer is no longer the focus of the GWT Steering Committee (Members include Google, Vaadin, Sencha etc ) As stated the code is open sourced and if anybody is interested they can take ownership of it to revive it. Going back in history Google bought the company that built the designer and

In GWT 2.0 CssResource, how I can turn off obfuscation for all my css classes?

心已入冬 提交于 2019-12-03 10:47:01
I have a CssResource where I want to have some of the css classes "mapped" to methods: @ClassName("top-table") String topTable(); But I want to turn off the obfuscation GWT does (while developing at least, for better debugging in firebug, etc). Is there an easy way to achieve this? I know I can use @external in my css file but then I have to define all my css classes like @external .c1, .c2, .c3, etc... Something like @external .* would solve my problem but that doesn't seem to be available at least in gwt 2.0.x My current solution is to use: <set-configuration-property name="CssResource.style

How to do single row expansion with CellTable?

独自空忆成欢 提交于 2019-12-03 07:44:13
I'm trying to use the new GWT CellTable widget but my table needs to support one row expansion, i.e. there is a zippy on the left of a row and when it's clicked, the row should expand to provide more detail information and this row should span across all columns. Is it possible to achieve this with the CellTable? How do I add a row that spans all columns between other rows dynamically? Any help will be appreciated! GWT 2.5 will add a CellTableBuilder with the exact goal of allowing this kind of things. You can find a live example at http://showcase2.jlabanca-testing.appspot.com/#

GWT Requestfactory performance suggestions

纵饮孤独 提交于 2019-12-03 07:08:16
I am observing really bad performance when using GWT requestfactory. For example, a request that takes my service layer 2 seconds to fullfil is taking GWT 20 seconds to serialize. My service is returning ~100 what will be EntityProxies. Each of these objects has what will become 4 ValueProxies and 2 more EntityProxies (100 root level EntityProxies, 400 ValueProxies and 200 additional EntityProxies). However, I see the same 10x performance degradation on much smaller datasets. Example of log snippet: D 2012-10-18 22:42:39.546 ServiceLayerDecorator invoke: Inoking service layer took 2265 ms D

RequestFactory doesn't populate all fields of my entity proxy

最后都变了- 提交于 2019-12-02 13:03:28
问题 Could you please tell me how I can make RequestFactory populate fields of my entity proxy that are entity proxies too ? Here is parent proxy @ProxyFor(value = Organization.class, locator = PojoLocator.class) public interface OrganizationProxy extends EntityProxy { public String getName(); public void setName(String name); public String getAddress(); public void setAddress(String address); public PersonProxy getContactPerson(); public void setContactPerson(PersonProxy contactPerson); } as you

set the values in Listgrid (smartGWT)

雨燕双飞 提交于 2019-12-02 09:33:06
I am trying to use smart Gwt, Listgrid. I am using both com.google.gwt.user.client.ui and smart gwt. I have value in a ListGridRecords[] records. I am unable to set the values in table. this piece of code is in composite. public TableDocument(Action action) { initWidget(getTablePanel()); } private HorizontalPanel getTablePanel() { if (tablePanel == null) { tablePanel = new HorizontalPanel(); tablePanel.setSize("144px", "75px"); addtable(); } public void addtable() { // TODO Auto-generated method stub if(isDocumentPresent()==false){ tablePanel.add(getNoDocumentLabel()); }else{ tablePanel.remove

Want to Implement 'Mark as Read' feature in GWT Cell List

断了今生、忘了曾经 提交于 2019-12-02 09:15:54
I want to implement this example of celllist with one modification. I want to make each row to a grey color once its clicked by someone. It should persist there, and not change as the user clicks on another row. It's okay if its gone once a new server call is made. I'm doing this to mark it as a 'read message' for the user. Any clues? I overrided (updated) the css style of cellList as below but when I inspect I dont see the 'myCss' style being applied . CellListStyles.css @external .dataView-cellListWidget; @external .dataView-cellListEvenItem; @external .dataView-cellListOddItem; @external

Send a file from server to client in GWT

五迷三道 提交于 2019-12-01 09:25:53
问题 I am using GWT. I have to download a file file from server to client . Document is in the external repository. Client sends the id of the document through a Servlet. On server side : Using this ID document is retrieved: Document document = (Document)session.getObject(docId); ContentStream contentStream = document.getContentStream(); ByteArrayInputStream inputStream = (ByteArrayInputStream) contentStream.getStream(); int c; while ((c = inputStream.read()) != -1) { System.out.print((char) c); }