gxt

GXT 3 grid scrolling issue

痞子三分冷 提交于 2020-01-05 08:42:35
问题 I'm using GXT 3.0.0b. I have a Grid on ContentPanel. When I set ContentPanel width explicitly there is no problem with scrolling. But when I put grid in VerticalLayoutContainer the vertical scrollbar of the grid disappears and scrolling is possible only with mouse wheel. Does anybody know how to solve this problem? 回答1: Finally I've managed to solved this problem. The answer was rather elegant: when I added grid to VerticalLayoutContainer I should specify VerticalLayoutData parameter. Example

Convert html+css+js to PDF

这一生的挚爱 提交于 2020-01-05 02:44:06
问题 I want to create something like this (code is here): in pdf format. I'm using google charts and regarding to this forum converting chart to pdf is impossible. I've already tryied iText+XMLWorker, but there is some problem with css and any js supporting at all, I think. So, the questions are: How can I convert html+css+js to .pdf file? Or, may be, the issue have other variants? 回答1: As promised in the comment, I've asked Raf. This was his answer: One way to use XML Worker for HTML+CSS+JS is to

How can I embed a webpage in a GWT/GXT webapp?

人盡茶涼 提交于 2020-01-02 11:59:46
问题 I am working to recreate (conceptually) a prototype I've written in Cappuccino in GWT/GXT. Cappuccino made it trivial to display an external webpage as part of the application by using a WebView. However, I cannot find any way to do this with GWT/GXT. There is a HtmlContainer widget, but this seems to be intended for something else. Any suggestions on how to do this? 回答1: You can set the url of a ContentPanel e.g. ContentPanel panel = new ContentPanel(); panel.setUrl("http://www.url.com/page"

How can I embed a webpage in a GWT/GXT webapp?

拟墨画扇 提交于 2020-01-02 11:59:06
问题 I am working to recreate (conceptually) a prototype I've written in Cappuccino in GWT/GXT. Cappuccino made it trivial to display an external webpage as part of the application by using a WebView. However, I cannot find any way to do this with GWT/GXT. There is a HtmlContainer widget, but this seems to be intended for something else. Any suggestions on how to do this? 回答1: You can set the url of a ContentPanel e.g. ContentPanel panel = new ContentPanel(); panel.setUrl("http://www.url.com/page"

Focus is not coming out from the TextField on mouse click in GXT EditorGrid in Chrome Browser

╄→гoц情女王★ 提交于 2019-12-31 03:06:28
问题 I created an EditorGrid using GXT 2.2.3.In that grid,one column is with the TextField as Editor.My code is as below: ColumnConfig checkinTimecolumn=new ColumnConfig(); checkinTimecolumn.setId("checkinTime"); checkinTimecolumn.setHeader("Check In Time"); checkinTimecolumn.setWidth(80); checkinTimecolumn.setMenuDisabled(true); checkinTimecolumn.setSortable(false); checkinTimecolumn.setStyle("width:100%;"); checkinTimecolumn.setStyle("padding-right:3px;"); final TextField<String> checkintime =

Connecting LDAP server from java application

感情迁移 提交于 2019-12-30 01:34:31
问题 I am building an application based on GXT (J2EE). Now the problem is that I have to connect the application to a LDAP server. Can you tell me how to connect a LDAP server from our java application and what Library or API I will have to use for that? 回答1: To connect to LDAP, check out the following packages/classes: javax.naming.directory.* javax.naming.ladp.* com.sun.jndi.ldap.LdapCtxFactory com.sun.jndi.ldap.ControlFactory Example code: //build a hashtable containing all the necessary

google appengine not supporting FileOutputStream

ぐ巨炮叔叔 提交于 2019-12-28 04:26:32
问题 I am trying to write to a file in Google appengine but it giving a error message java.io.FileOutputStream is not supported by Google App Engine's Java runtime environment even though I imported import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; 回答1: Well it's not a java compiler error. This class is a restricted API in Google App Engine you are not allowed to use it. Read about the GAE Java Runtime Environment and restrictions

How to prevent a browser from storing password

与世无争的帅哥 提交于 2019-12-28 00:16:12
问题 I need to stop browsers from storing the username & password values, because I'm working on a web application which contains more secure data. My client asked me to do this. I tried the autocomplete="off" attribute in the HTML form & password fields. But it is not working in the latest browsers like Chrome 55, Firefox 38+, IE 11...etc. What is the best solution for this? 回答1: Thank you for giving a reply to me. I followed the below link Disable browser 'Save Password' functionality I resolved

Row within a Row with Ext GWT Grid

白昼怎懂夜的黑 提交于 2019-12-25 05:25:25
问题 Is is possible to have a RowExpander that is not HTML but rather another Row? That is, a row have a expand [+] icon then when expanded, sub rows appear like a "child-row""? For example I have a List<ModelData> like this: ModelData column1 = new BaseModelData(); column1.set("Date", "11-11-11"); column1.set("Time", "11:11:11"); column1.set("Code", "abcdef"); column1.set("Status", "OK"); ModelData column2 = new BaseModelData(); column2.set("Date", "11-11-11"); column2.set("Time", "12:11:11");

Not able to run Gxt 3.1.1 application after upgrading from 3.0.0

心已入冬 提交于 2019-12-24 17:53:43
问题 I have tried upgrading my projects GWT and Gxt from 2.5.1,3.0.0 to 2.7,3.1.1 . I was able to build the project successfully with some workarounds but am not able to run it. Error I am getting is : Loading inherited module 'com.ApplicationShellModule' Loading inherited module 'com.sencha.gxt.ui.GXT' Loading inherited module 'com.sencha.gxt.data.Data' Loading inherited module 'com.sencha.gxt.core.Core' [ERROR] Line 96: Value 'ie6' in not a valid value for property 'user.agent' I am trying to