gwt

Run gwt with https enabled?

你。 提交于 2020-01-30 02:38:06
问题 I'm currently running a GWT site with no security, but need to make the switch over to HTTPS. The working non-secure version runs with these arguments: -port 8888 -startupUrl ui/index.jsp com.example.EntryPoint I have read that simply adding -server :ssl will cause the site to be served with HTTPS enabled: -port 8888 -startupUrl ui/index.jsp -server :ssl com.example.EntryPoint However, with this I simply get [ERROR] Unable to load server class '' [ERROR] java.lang.ClassNotFoundException:

Learning JavaScript… Should I skip straight to the good stuff (the frameworks)?

末鹿安然 提交于 2020-01-29 03:17:14
问题 I learnt HTML/CSS a good few years back, then PHP a little later. I've recently become interesting in web development again, just started playing with frameworks like Django and RoR. I'm curious as to how much time/effort I should spend learning straight JS before looking at frameworks. I've been reading through a let of articles called Mastering AJAX by Brett McLaughlin which seems quite good, but I'm seeing a lot of stuff (such as cross browser compatibility - even for things like

generics are not supported in -source 1.3

♀尐吖头ヾ 提交于 2020-01-28 10:00:48
问题 I have a problem while maven packaging. In this code: public class LoginDialog extends Dialog { private final TextField<String> customer; ^here private final TextField<String> login1; private final TextField<String> password1; private final MainController controller= new MainController(); private String customerId; private String login; private String password; I have an error like: [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO]

file download using RequestBuilder of gwt

微笑、不失礼 提交于 2020-01-25 21:26:10
问题 I need to implement file download .I don't want give any server side file urls to download directly .I created a servlet which will open the file and write it to stream of response.Now coming to front gwt i have onResponseReceived(Request request, Response response) which will be called on receiving the response .Now how to proceed further? .My operation required is ,file in stream should be downloaded to client computer. can one help me regarding this ? 回答1: Did you try Window.open

GWT MenuItem in a submenu has zero getAbsoluteTop() getAbsoluteLeft()

谁都会走 提交于 2020-01-25 18:38:36
问题 I'm trying to find where a given menu item (which is within a drop down vertical menu) is located on the screen but getAbsoluteTop() getAbsoluteLeft() are zero even when the menu item is showing on the screen The actual Element by the way seems to be Any idea how I can find where a menu item (within a floating drop down menu) is on the screen please? Thanks! 回答1: Most likely, you ask for the coordinates before the menu item is fully rendered. Try using a Scheduler (GWT: Timer and Scheduler

How to handle right mouse click on the specific Event in SmartGWT Calendar?

巧了我就是萌 提交于 2020-01-25 12:42:36
问题 I want to create a context-menu under a right click for every Event in SmartGWT Calendar or simply handle right-click on event to display a pop-up window. calendar.addEventClickHandler(new EventClickHandler() { @Override public void onEventClick(TimetableEventClick event) { // TODO Auto-generated method stub } }); Code above don't let me to differ actions depending on left/right mouse was clicked. There is a handler I can add to calendar instance: calendar.addRightMouseDownHandler(new

How to handle right mouse click on the specific Event in SmartGWT Calendar?

帅比萌擦擦* 提交于 2020-01-25 12:41:52
问题 I want to create a context-menu under a right click for every Event in SmartGWT Calendar or simply handle right-click on event to display a pop-up window. calendar.addEventClickHandler(new EventClickHandler() { @Override public void onEventClick(TimetableEventClick event) { // TODO Auto-generated method stub } }); Code above don't let me to differ actions depending on left/right mouse was clicked. There is a handler I can add to calendar instance: calendar.addRightMouseDownHandler(new

Pass value from GWT to Javascript via JSNI

天涯浪子 提交于 2020-01-25 12:04:08
问题 I've been trying to pass a value into a Javascript method through JSNI but it keeps on failing. Is this method valid: public static native JavaScriptObject getProductById(long pid) /*-{ var productId = pid; var product = $wnd.products({id:productId}).first(); return product; }-*/; I can say that the JS method is correct, since if I put a constant value in place of productId , I get the correct output. What am I missing? 回答1: JSNI does not allow using long as input variable, see explanation

How to print some elements in gwt

主宰稳场 提交于 2020-01-25 10:49:07
问题 I want to print one panel of page in GWT. However someone said that you must use iframe because it has print method. I tried this code but it does not work: HTML html=new HTML("<iframe id="myframe"></iframe>") ;.... searchButton.setWidth("80px"); searchButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { MyNative.printIframeContent("myframe", "onlineMap"); } }); map = new SimplePanel(); map.getElement().setId("onlineMap"); map.add(mapView.getMapWidget(

How to Load GWT modules using the JQuery?

血红的双手。 提交于 2020-01-25 08:40:06
问题 Our application has many large GWT modules developed over time. Architecture is Servlets/JSP and GWT. I am simplifying here. Link1.jsp contains Link1 GWT module Link2.jsp contains Link2 Gwt module Link3.jsp contains Link3 GWT module . All the above 3 jsps are same, ie, include same header and footer. Only body is changing based on the GWT module. Now, we are trying to improve the performance while the user is clicking the above links. When the user is clicking Link1.jsp , the request is sent