gwt

How can I put a widget in a CellTable Cell?

末鹿安然 提交于 2019-12-20 10:28:04
问题 I am using CellTable to show my records but now the thing is I want show a select box when user clicks on a cell. One more thing is that select box is my own widget, not a predefined. Can you please suggest to me any method of doing this? 回答1: There's a post on the GWT google group that discusses the answer. Basically you create your custom widget as normal, and inside the render function you use widget.getElement().getInnterHTML(). @Override public void render(com.google.gwt.cell.client.Cell

Documentation for @UiHandler

匆匆过客 提交于 2019-12-20 10:26:35
问题 I started to look into using GWT in combination with UiBuilder. I'm a bit puzzled about how you can use the @UiHandler(..) directive to make simple event handle code as written down in the GWT documentation: @UiHandler("button") void handleClick(ClickEvent e) { Window.alert("Hello, AJAX"); } In this case the method handleClick is used. How do you know for each GWT widget what methods can be created with @UiHandler ? For some you can also create a doClose() method. But what can you use with,

String Formatter in GWT

我的未来我决定 提交于 2019-12-20 10:21:46
问题 How do I format my string in GWT? I made a method Formatter format = new Formatter(); int matches = 0; Formatter formattedString = format.format("%d numbers(s, args) in correct position", matches); return formattedString.toString(); But it complains by saying Validating newly compiled units [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/kkshetri/workspace/MasterMind/MasterMind/src/com/kunjan/MasterMind/client/MasterMind.java' [ERROR] Line 84: No source code is available for type java

GWT/Javascript client side password encryption

廉价感情. 提交于 2019-12-20 08:49:29
问题 I'm implementing authorization in my gwt app, and at the moment it's done in the following fashion: The user signs up by putting his credentials in a form, and I send them in clear text to the server. The server code hashes the received password using BCrypt and puts the hash in a database. When the user logs in, his password is sent in the clear to the server, that checks it against the stored hash. Now. The thing that's bothering me about this is the fact that I'm sending the password to

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

这一生的挚爱 提交于 2019-12-20 07:19:05
问题 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

How to debug GWT client side code on jboss

∥☆過路亽.° 提交于 2019-12-20 06:43:10
问题 I'm starting with GWT and smartgwt, and I realized that when your code works on jetty will no necessarily work on Jboss. Is there a way that I can debug exceptions or any kind of error when something on the client side fails, the jboss console says nothing. I was wondering if I can get the jetty window attached to the app when it is running on jboss. I'm using Netbeans, jboss 5.1 UPDATE: Thanks for your help, I've been using com.google.gwt.logging.Logging and it works pretty nice, but I was

JQuery and GWT History support get mixed up

纵饮孤独 提交于 2019-12-20 06:32:36
问题 I'm dynamically appending GWT scripts using JQuery and then tracking the history using JQuery history. Problem : My GWT modules generate the History tokens because all of my GWT modules are MVP modules. And onClick() s of MenuItem s is dynamically loading the GWT module, along withThis I'm adding the history for the MenuItems using JQuery. But my GWT modules also use History . Now the problem is that If I repetitively click on the MenuItem which loads GWT MVP modules , someHow my browser is

determine if the device on which browser is running in gwt bootstrap

≡放荡痞女 提交于 2019-12-20 06:27:53
问题 Is their any way in gwt or gwt bootstrap to find the device on which the web app is running. Like if the device is iphone,tablet,desktop.ipad etc.,Please help. 回答1: You don't need bootstrap at all to know which browser your client is running on. Just call... Navigator.getUserAgent() ...to get the user-agent of the browser. A list of all user-ager avaiable is provided here: http://www.useragentstring.com/pages/All/ For instance, check for "ipad" match in user-agent String. 回答2: Setup GWT

java.lang.NoClassDefFoundError: java.rmi.server.UID is a restricted class

感情迁移 提交于 2019-12-20 05:36:09
问题 I developing a web application using GWT where i am trying to upload a file . My servlet is working fine. but when i use DiskFileItemFactory() it gives me error. if some one can correct my code or tell what is missing in code. protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/plain"); FileItem uploadItem = getFileItem(request); if (uploadItem == null) { response.getWriter().write("NO-SCRIPT-DATA

Disabling Firefox and Chrome spell checking in iframe-based text editors

ぃ、小莉子 提交于 2019-12-20 05:23:39
问题 There is a lot of info around about how to disable spell checking in html textarea element by using spellcheck='false' . However to have text area with more advanced capabilities, one must use iframe with designMode = "on" (see e.g. this page, this is a way that RichTextArea is implemented in GWT) and I couldn't find a single post on that topic. It turns out that Firefox detects such advanced text areas and enables its spell checking in them. You can see it live by visiting this page from