smartgwt

GWT or not for enterprise apps

独自空忆成欢 提交于 2019-12-04 08:12:55
问题 I am working on an tool to create enterprise level applications on app-engine. This needs to be cross browser (also including IE8), works on mobile, and at a later point of time also supports desktop clients through (Qt4/GTK/etc) The problem that I consistently face is this: For my web-application - should I use GWT(GoogleWebToolkit) or not? I am pretty good at using "EXT-JS", but its not a choice due to its open-source policy. There is another framework "SmartClient" which has a better

SmartGWT Datasource customization tutorial

有些话、适合烂在心里 提交于 2019-12-04 08:02:47
I'm looking for a good tutorial on how to customize a DataSource in SmartGWT (a code sample will also do for now). Some details: I have a GWT project which uses a proprietary client-server protocol for fetching data (with an extensive API based on GWT classes). The server is non-GWT based, i.e. GWT is used only for client side. I'd like to use SmartGWT's widgets with this data by creating a custom DataSource which will interact with the existing GWT infrastructure. Does anybody know of such a resource? EDIT: Charles Kendrick's answer worked for me. For a working code example, you can see this

SmartGWT RestDataSource

女生的网名这么多〃 提交于 2019-12-04 04:54:25
问题 I'm using SmartGWT/SmartClient LGPL, I can't use the Pro, due to project ties. I would like to create a RestDataSource from a jdbc connection, to be exposed from the server to the SmartGWT client. How could it be done? Any help is greatly appreciated. 回答1: Have you had a look at the source code for the RestDataSource Edit & Save example from the Showcase? It's a good starting point. If you want REST on the server I'd recommend Restlet talking to a JDBC backend. You could take the example

Smartgwt selectitem key value issue

可紊 提交于 2019-12-03 22:53:24
问题 I have a SelectItem which I fill through a Map that has this combo is within a listgridfield, so good up there, but when I select any item in the combobox instead of get the description or value of the map puts the key in the listgridfield. How I can do to make me set the value instead of key? now I tried to do with AddChangeHandler but has not worked. I got the next code: final ListGridField measureField = new ListGridField(CdmsConstants.MEASURE_ABB, CdmsConstants.CMB_MEASURE_TITULO, 100);

Making POST requests with parameters in GWT

三世轮回 提交于 2019-12-03 08:55:56
问题 I am trying to do a POST request with a set of parameters to a given URL. The problem I am having is that the POST request is made, but no parameters are passed. RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); StringBuilder sb = new StringBuilder(); for ( String k: parmsRequest.keySet() ) { String vx = URL.encodeComponent( parmsRequest.get(k)); if ( sb.length() > 0 ) { sb.append("&"); } sb.append(k).append("=").append(vx); } try { Request response = builder.sendRequest(

Making POST requests with parameters in GWT

梦想的初衷 提交于 2019-12-02 22:51:10
I am trying to do a POST request with a set of parameters to a given URL. The problem I am having is that the POST request is made, but no parameters are passed. RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); StringBuilder sb = new StringBuilder(); for ( String k: parmsRequest.keySet() ) { String vx = URL.encodeComponent( parmsRequest.get(k)); if ( sb.length() > 0 ) { sb.append("&"); } sb.append(k).append("=").append(vx); } try { Request response = builder.sendRequest( sb.toString(), new RequestCallback() { public void onError(Request request, Throwable exception) {}

GWT or not for enterprise apps

别等时光非礼了梦想. 提交于 2019-12-02 21:29:43
I am working on an tool to create enterprise level applications on app-engine. This needs to be cross browser (also including IE8), works on mobile, and at a later point of time also supports desktop clients through (Qt4/GTK/etc) The problem that I consistently face is this: For my web-application - should I use GWT(GoogleWebToolkit) or not? I am pretty good at using "EXT-JS", but its not a choice due to its open-source policy. There is another framework "SmartClient" which has a better opensource license- Its pretty mature and better than EXT-JS (based on some POCs), but its documentation

smartgwt button cannot override skin_styles.css

让人想犯罪 __ 提交于 2019-12-02 19:11:54
问题 I want to add red background and white color for titleStyle for ibutton in smartgwt. I cannot override skin_styles.css. How to override skin_styles for button in smartgwt? Simple addStyleName() or setPrimaryStyleName does not work. Have somebody tried it?setBase Style also. 回答1: It seems you have issues with skinning and style, If you want to add a style to a widget(your previous post) you can use some sort of code: String newStyle; String actualStyle= o.getStyleName(); if(actualStyle!= null)

Smartgwt RestDataSource with SpringMVC and cross-client

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 17:07:23
问题 After a lot of work, I have an existing back-end web services application that is powered by Spring-RS, Spring MVC, Spring controllers, and these controllers user Jackson within the Spring framework to convert responses to JSON. Here is part of the WEB-INF/myproject-servlet.xml <mvc:annotation-driven> <mvc:message-converters register-defaults="true"> <bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"> <property name="objectMapper"> <bean class="com

SmartGWT: hide a column in a grouped grid (which makes the group)

帅比萌擦擦* 提交于 2019-12-02 14:46:19
问题 I have a SmartGWT grid, where I want to display some data from JBoss-Server and it's grouped by one textfield that I fetch from JSON. So, but I want this textfield only in the header of each group. When I do .hideField on this field, then i'm loosing the group. grid.hideField("pool"); But when i hide it over the context-menue of the grid header, the column remains. Any idea how to do this? Roman. 回答1: There is simple and clean workaround. Just set width parameter of the filed to '0'.