smartgwt

Call Java from Javascript JSNI

柔情痞子 提交于 2019-12-13 06:09:05
问题 I am using SmartGWT and I wish to access com.smartgwt.client.Version from JavaScript. In Firefox's Web Console, I have tried: frames[0].$entry(Lcom_smartgwt_client_Version::getVersion())); and frames[0].$entry(@com.smartgwt.client.Version.getVersion()); and frames[0].$entry(@com.smartgwt.client.Version::getVersion()); and frames[0].$entry(@com.smartgwt.client.Version::getVersion()()); But all of them return a syntax error. SmartGWT is deployed with my WAR and I can see other SmartGWT classes

Smartgwt SELECT ALL functionality

喜你入骨 提交于 2019-12-13 04:40:47
问题 Need help regarding.selectall functionality. I have created a form. DynamicForm form = new DynamicForm(); final SelectItem category = new SelectItem("category", "Employee Category"); category.setMultiple(true); category.setValueMap("Direct","InDirect","ALL"); form.setFields(category); If i select 'ALL' all three items in picklist should also be selected.if i deselect 'ALL' all three items should be deseleted. need help 回答1: You can try out the following: boolean isAllSelected = false; //

date filtering not working in smart gwt

二次信任 提交于 2019-12-13 04:39:52
问题 i am developing a smartGWt application that needs to filter list grid content by date and by other staff, every thing is working correctly except the date filtration, this is how i am defining the date fields : registeredDate = new DataSourceDateField("registrationDate", voc.registeredDate()); registeredDate.setRequired(true); verificationDate = new DataSourceDateField("lastVerificationDate", voc.verificationDate()); verificationDate.setRequired(true); the same as every other field this is

How to apply style on StaticTextItem component of DynamicForm in SmartGWT?

我是研究僧i 提交于 2019-12-13 02:34:50
问题 I want to apply style on StaticTextItem in SmartGWT's DynamicForm item. I did not find any method like setStyleName for this component. Is there any alternate way to apply style on StaticTextItem? I have also noticed that ToolStrip Component can add only Form items, So Here I am stuck how would I apply a style particularly on StaticTextItem. My goal is just add label with style on ToolStrip. Any alternative to this appreciated!!! Thanks!!! 回答1: You can use following properties to apply styles

SmartGWT GWT client server architecture

…衆ロ難τιáo~ 提交于 2019-12-12 19:07:30
问题 We plan to use smart GWT, GWT and related frameworks for the client side rich interface and Spring MVC which returns JSON data on the server side. As part of the investigation to see if it fits our requirement, the following questions need some answers : Building a GWT application from scratch without using any frameworks will need considerable amount of effort to follow the standard MVP pattern. But this is more flexible and unit testable, though time consuming. GWT best practise suggests

$wnd.google.visualization is undefined

孤人 提交于 2019-12-12 14:23:02
问题 I'm currently building a SmartGWT-based web application (using the Portlet Layout). So I have several "Portlet", which basically extend GWT Window with different content. Now I want a Portlet to display Dygraphs. So I've created an RPC Service implementation which returns a JSON String (based on a DataTable object). Since I cannot directly serialize a DataTable object I use String json = JsonRenderer.renderDataTable(data, true, true).toString(); where "data" is of type DataTable. Now this

GWT 2.6.1 unknown compile issue

徘徊边缘 提交于 2019-12-12 09:14:07
问题 I know other people have had issues with GWT compiles, but in this case I am at a loss. I am using GWT 2.6.1 and the same version of the gwt-maven-plugin, 2.6.1 First does GWT and/or SmartGWT support JDK 1.8 yet, or just 1.7 for now? I am using jdk 1.7, but would like to try 1.8 eventually. Second, when I do a maven build within eclipse I get this error ... Yet, when I do a GWT compile from the GWT Eclipse Plugin, I right click on the project, and I tell it to GWT Compile and it does with no

How can I configure SmartGWT TreeGrid to use different types of objects?

陌路散爱 提交于 2019-12-12 06:32:36
问题 I have this usecase: I get all of my Customers. For each Cutomer, I want to get his Receipt. For each Receipt, I want to get all ShoppingItems. From the examples I can see how TreeGrid works if I had a hierarchy of objects of the same type, but I don't know how this would work with my usecase. Of course, if there's a better component to show this kind of data/connections, that would be good too :) 回答1: You can use the Tree (the model behind the TreeGrid ) in Parent mode. When you build you

SmartGWT handling file in the response body

天大地大妈咪最大 提交于 2019-12-12 05:00:53
问题 i am using smartGWT , i want to handle a file that i receive from server in the request body and download it , so can any one please provide any help ? what i need exactly is to get the file from the response body and download it. thanx. 回答1: Try this simple servlet downloading code: web.xml: <servlet> <servlet-name>downloadCSV</servlet-name> <servlet-class>com.x.y.z.server.servlet.CSVDownloadServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>downloadCSV</servlet-name> <url

SmartGWT slow images rendering

会有一股神秘感。 提交于 2019-12-12 04:44:53
问题 I have a SmartGWT 2.0 application where I have to render a few hundred small images and this is taking very, very long (>20s). It's a intranet application. Do you have any idea how I could speed up the rendering? Any idea will be appreciated. Thanks in advance. 回答1: You mentioned it's an intranet application but the network or server could still be a culprit. You can use Firebug's "Net" panel to see the network delays from fetching the images. If those are the problem, there's no fix within