gwt

GWT Web Application project, with Hibernate?

徘徊边缘 提交于 2020-01-06 15:18:07
问题 I've made a Google Web Application Project in Eclipse and am now running into problems as I need to use from a server side point of view, with Hibernate with MySQL. I've just been told that Google Web Application projects can't run Hibernate connections to MySQL as they're deployed projects. What's the best way for me to migrate this project somehow so it runs on say Glassfish and just uses GWT for the client side technologies that can then use Hibernate and MySQL, rather than actually being

GWT RequestFactory throws java.lang.UnsupportedOperationException: <Proxy interface class> from ValueCodex.getTypeOrDie

佐手、 提交于 2020-01-06 14:39:18
问题 In our application we need to share domain code between GWT client and server. Because of that we are using common interfaces for GWT proxies and server-side entities. This approach was once described by @thomas-broyer here: https://stackoverflow.com/a/15852887/187241 Exception stacktrace: ERROR com.google.web.bindery.requestfactory.server.SimpleRequestProcessor - Error while processing request java.lang.UnsupportedOperationException: se.homework.hwbs.domain.shared.model.IAppointment at com

How do you remove defaul GWT style from CaptionPanel widget?

人盡茶涼 提交于 2020-01-06 09:06:54
问题 How do you remove defaul GWT style from CaptionPanel widget ? In my .ui.xml I tried pretty much everything. I tried setting stylePrimaryName and styleName to my classname. I also tried defining .gwt-CaptionPanel with no effect. My .xml looks something like this: <ui:style src="../common.css"> .test { color: red; } .gwt-CaptionPanel { } </ui:style> <g:CaptionPanel captionText="Test" stylePrimaryName="{style.test}"> </g:CaptionPanel> 回答1: CaptionPanel does not have a default style defined, so

How do you remove defaul GWT style from CaptionPanel widget?

北城以北 提交于 2020-01-06 09:05:18
问题 How do you remove defaul GWT style from CaptionPanel widget ? In my .ui.xml I tried pretty much everything. I tried setting stylePrimaryName and styleName to my classname. I also tried defining .gwt-CaptionPanel with no effect. My .xml looks something like this: <ui:style src="../common.css"> .test { color: red; } .gwt-CaptionPanel { } </ui:style> <g:CaptionPanel captionText="Test" stylePrimaryName="{style.test}"> </g:CaptionPanel> 回答1: CaptionPanel does not have a default style defined, so

How to bind a label to text in backing class?

北慕城南 提交于 2020-01-06 08:45:27
问题 How can I bind a GWT label to a string property in the backing class for the view? Login.ui.xml: Welcome <g:Label text="{textFromJavaBackingClass}" /> class Login { String userName; String getUserName() { return userName; } } How can I bind the value to String userName ? 回答1: Let's say you have a i18n class MyI18n which extends Messages Just include the following <ui:with field="i18n" type="MyI18n"/> Then Welcome <g:Label text="{i18n.textFromJavaBackingClass}" /> Note : MyI18n is actually not

servlet not working in GWT

社会主义新天地 提交于 2020-01-06 08:00:27
问题 I am trying to work with servlet in GWT. and i found Error. No file found for: /uploadfile/uploadFileServlet i want to browse a file and send it on the server side. i went through many solution provided by the experts. But i am not able to find my mistake some one plz help to solve it. Client Side package uploadfile.client; public class Uploadfile implements EntryPoint { @SuppressWarnings("deprecation") public void onModuleLoad() { // TODO Auto-generated method stub final FormPanel uploadForm

GWT: retrieve Components from FormPanel/VerticalPanel which are added dynamically

江枫思渺然 提交于 2020-01-06 07:52:27
问题 I am creating a web page using GWT 2.5.0, in this I used lots of composite component. And the web page is developed based on XML . So here we parse the XML and according to each element add componnet to a VerticalPanel and finally add it to a FormPanel and then return it to add to RootPanel. Beside the Component corresponds to XML I add a Button, call it submit button, on its click event I want to get the values of every component in that form . To clear what my idea is , below is the pseudo

CheckBox Code Doesn't working there is no compile time error

ε祈祈猫儿з 提交于 2020-01-06 07:25:31
问题 public SubMenuItemCommand(MenuObject menuItem,JsArray listOfMenu,ToothWidget toothWidget){ this.menuItem=menuItem; this.listOfMenu=listOfMenu; this.toothWidget=toothWidget; } cb1.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { System.out.println(menuItem.getImage()); boolean checked = ((CheckBox) event.getSource()).getValue(); if (checked) { System.out.println("hello3"); int left = toothWidget.getToothImage().getAbsoluteLeft(); int top = toothWidget.getVPanel()

Set colors on google piechart via dataTable JSON

﹥>﹥吖頭↗ 提交于 2020-01-06 07:17:11
问题 I am using the chartWrapper to pull in some JSON. I am wondering how I would go about settings the colours for each segment on the piechart. //draw the channel summary data $.getJSON("@Url.Action("SummaryData", new { id = Model.Id })", function(data) { var channelChartWrapper = new window.google.visualization.ChartWrapper({ chartType: "PieChart", dataTable: data, options: { title: "Title here" }, containerId: "summary-chart", }); channelChartWrapper.draw(); }); the data returned by the

Jboss service won't start

喜欢而已 提交于 2020-01-06 07:14:30
问题 I'm developing a GWT application in Eclipse on JBoss AS7. However, when I try to deploy, I get this 13:11:52,546 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.persistenceunit."ctivTools_GWT.war#Catalog": org.jboss.msc.service.StartException in service jboss.persistenceunit."ctivTools_GWT.war#Catalog": Failed to start service at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA