gwt

http proxy on my GWT server-side code

让人想犯罪 __ 提交于 2020-01-03 03:41:09
问题 I have an REST server as backend, it provides a set of services, also, it uses basic authentication method for access. Now I need to create an GWT frontend,so, I need to perform http calls to the REST backend from the GWT frontend After some research I found the HttpBuilder to handle http requests to the backend, but it seem to be a pain when trying to perform cross-site requests, and also it comes with some restricions related with Safari browser. Then I found this https://developers.google

How to inject a “runtime” dependency like a logged in user which is not available at application boot time?

大兔子大兔子 提交于 2020-01-02 22:18:13
问题 I'm just not getting this: I use Gin in my java GWT app to do DI. The login screen is integrated into the full application window. After the user has logged in I want to inject the user object into other classes like GUI Presenters which I create, so I have some sort of runtime dependency I believe. How do i do that? One solution I can think of is sth like: class Presenter { @Inject Presenter(LoggedInUserFactory userFactory) { User user = userFactory.getLoggedInUser(); } } class

How enable production mode in GWT 2.7 application

亡梦爱人 提交于 2020-01-02 18:07:21
问题 I would like to deploy my GWT 2.7 application on my server through gwt-maven-plugin and jenkins. But, after compile process, when I launch my application, I've this error message : Couldn't load APPLICATION_NAME from Super Dev Mode server at http://MY_IP:9876. Please make sure this server is ready. Indeed, the super dev mode is enabled by default since 2.7. So, how disable it to use production mode ? 回答1: Ok thank you very much for your comment. Indeed, my problem concerned the *.nocache.js

How enable production mode in GWT 2.7 application

喜夏-厌秋 提交于 2020-01-02 18:05:31
问题 I would like to deploy my GWT 2.7 application on my server through gwt-maven-plugin and jenkins. But, after compile process, when I launch my application, I've this error message : Couldn't load APPLICATION_NAME from Super Dev Mode server at http://MY_IP:9876. Please make sure this server is ready. Indeed, the super dev mode is enabled by default since 2.7. So, how disable it to use production mode ? 回答1: Ok thank you very much for your comment. Indeed, my problem concerned the *.nocache.js

GWT Cannot Serialize My Object from Hibernate

£可爱£侵袭症+ 提交于 2020-01-02 15:55:08
问题 Here is the error I am receiving. I've looked everywhere for answers and I cannot figure out why anyone else isn't running into the same issue. The error happens when I'm retrieving a Proposal object from Hibernate which has a many-to-one constraint with User_Info on two properties, author and advisor. If needed I can provide the classes and hibernate configs. Just a note, I do implement isSerializeable and have empty constructors...I really appreciate any advice or help... Starting Jetty on

How to always use the same PersistenceManager within the same RPC request on Google App Engine

笑着哭i 提交于 2020-01-02 12:09:57
问题 Is there a way to ensure the same PersistenceManager instance is used throughout the different code parts executed in the context of the same RPC request? Having to manually handle out the persistence manager instance from function to function is quite a pain: for example: private void updateItem(ItemModel listItem) throws UserNotLoggedInException { PersistenceManager pm = PMF.get().getPersistenceManager(); if (isItemIsNew(pm, listItem)) { workOnItem(pm, listItem); } workSomeMoreOnItem(pm,

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"

gwt ajax ssl login

隐身守侯 提交于 2020-01-02 11:19:07
问题 i have GWT AJAX code but server side is PHP not JAVA. Now i need to login to server side PHP server. but i need to connect with SSL. possiblity of solution i am thinking: change the http to https:// PHP server side LAMP or XAMPP must have ssl support. are they correct? if there are some missing configuration then can anybody inform me? 回答1: The main problem here is the Same Origin Policy - meaning you either have your whole page use https or not. In the latter case, you can write an external

Mouse movement for session timeout in GWT

北慕城南 提交于 2020-01-02 11:03:43
问题 I'm working on GWT. In my application I want to add a session time out after 2 minutes when no action is performed (including mouse events). I wrote a class in which I used a GWT session object. public static boolean ValidSession(HttpSession session) { boolean aResult = true; logger.debug("Start of ValidSession"); try { if(session!=null ) { String strUserInf=""; strUserInf=(String)session.getAttribute("userInf"); logger.debug("User Inf in session is: " + strUserInf); if(strUserInf==null ||