smartgwt

Spring+GWT+jackson+JSON response text does not appear to be in standard response format

孤街醉人 提交于 2019-12-11 05:33:02
问题 Hi it's in relation to below post - smartgwt listgrid RestDataSource not populating I am facing an issue while trying to build an app with smartGWT and Spring3. Using jackson to convert return object to json. Error (complete stack trace at end of the post) for json response returned from spring controller to client side: 16:52:27.094 [ERROR] [utilapp] 16:52:27.092:TMR1:WARN:RestDataSource:isc_ItemListGrid_1_0:RestDataSouce transformResponse(): JSON response text does not appear to be in

how to get html element id of smartgwt widgets?

左心房为你撑大大i 提交于 2019-12-10 18:59:42
问题 I want get html id of input field & icon field of a TextItem widget, how can i do this ??? (no getId methos is available for TextItem widget & seems that setAttribiute("id", "foo") has no effect) 回答1: since everything is on a single page, i wouldn't dare to set any IDs yourself, the probability that you create two items (by mistake) with the same id is quite high. why would you need it anyway? you may get the html element by name textItem.setName("foo"); DOM.getElementsByName("foo") 来源: https

Smartgwt with RestDataSource and SpringController

帅比萌擦擦* 提交于 2019-12-10 11:40:38
问题 I have been stuck at this for a while. I have a smartgwt widget listgrid tied to a restdatasource. I have mapped its URLs to my spring services. However I cannot figure out how to retrieve the JSON dsrequest on spring server side. Even my dispatcher servlet does not contain the params. My restdatasource is as follows: RestDataSource myDS = new RestDataSource() { @Override protected Object transformRequest(DSRequest dsRequest) { dsRequest.setContentType("application/json"); JavaScriptObject

How to sort records (with code) in a grouped ListGrid?

廉价感情. 提交于 2019-12-09 02:05:21
问题 This is the scenario: I'm working with a listgrid that needs to be grouped, and also needs to have its records ordered within each group. I've already used the ListGrid.sort() and the ListGrid.sort(String, SortDirection) methods but none of them works properly. This problem doesn't show up when the grid isn't grouped (it makes the sort perfectly); and when the sort (with the listgrid is grouped) is made by clicking the column header, works fine but I need to sort it by code (without user

SmartGWT with GWT?

旧街凉风 提交于 2019-12-09 01:24:28
问题 Greetings , I have been using GWT for few weeks and wanted a rich Table widget.I came across with SmartGWT library. Can I use SmartGWT widgets same way I develop using GWT or is there any special things I need to know ? thanks 回答1: You would not be able to just choose a widget from SmartGWT as they rely on the rest of the framework. SmartGWT is a thin wrapper using JSNI around the SmartClient library. This is a nice library, but you need to adopt it all or none. I believe this misses the

Ext GWT vs GWT-EXT

半城伤御伤魂 提交于 2019-12-08 15:27:10
问题 is there a difference between Ext GWT and GWT-Ext? Cos i was surfing Ext GWT and saw this page http://gwt-ext.com/demo/. any help guys? 回答1: ExtGWT is marketed and maintained by the same guys who developed ExtJs library. ExtGWT shares its look and feel and API structure with ExtJS. Contrary to popular perception, ExtGWT is not a wrapper around ExtJS javascript, but written ground up using GWT DOM and other low level GWT API's. It is 99% java based and uses no (or very little) JSNI to get

Smartgwt with RestDataSource and SpringController

独自空忆成欢 提交于 2019-12-07 01:59:29
I have been stuck at this for a while. I have a smartgwt widget listgrid tied to a restdatasource. I have mapped its URLs to my spring services. However I cannot figure out how to retrieve the JSON dsrequest on spring server side. Even my dispatcher servlet does not contain the params. My restdatasource is as follows: RestDataSource myDS = new RestDataSource() { @Override protected Object transformRequest(DSRequest dsRequest) { dsRequest.setContentType("application/json"); JavaScriptObject jso = dsRequest.getData(); String s1 = JSON.encode(jso); return s1; // return super.transformRequest

using wildcards in a filter for ListGrid (SmartGWT)

自古美人都是妖i 提交于 2019-12-06 16:32:34
I'm having the following ListGrid: ListGridField eml = new ListGridField(EmlSearchItem.EMAIL, EmlSearchItem.EMAIL_TITLE); emlGrid = new ListGrid(); emlGrid.setWidth("70%"); emlGrid.setHeight("60%"); emlGrid.setFields(eml); emlGrid.setAutoFetchData(true); emlGrid.setSelectionType(SelectionStyle.SINGLE); emlGrid.setAllowFilterExpressions(true); emlGrid.setShowFilterEditor(true); emlGrid.setAutoFetchTextMatchStyle(TextMatchStyle. SUBSTRING); according to the JavaDoc setting allowFilterExpressions to true should enable wildcards, like the * but I don't get any results. for instance, I'm looking

smartgwt listgrid RestDataSource not populating

半城伤御伤魂 提交于 2019-12-06 15:42:47
问题 Im new using this front end framework application... I recently started to work with smartgwt and i'm bulding a new application with a Spring MVC integration. I'm using a ListGrid with a RestDataSource (Consume the Rest service with mvc:annotation-driven for plain JSON) I can see that the servaice gets consuming properly perhaps my grid is never shown with the data in it. Can someone help me here ? Here's my ListGrid class public class ListGrid extends com.smartgwt.client.widgets.grid

SMART Gwt Code Splitting

。_饼干妹妹 提交于 2019-12-06 13:32:27
问题 We are using SmartGwt 2.5 and application is very large. I want to know is there any way to implement Code Splitting or Partial JS loading in SmartGWT. Any pointers would be really appreciated. 回答1: You can use Gwt's code splitting directly in SmartGwt. http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html 来源: https://stackoverflow.com/questions/8654544/smart-gwt-code-splitting