Tag: gwt

java.util.LinkedList.Node 无法分配给GWT Serializable?

我尝试编译GWT应用程序时遇到很多错误。 他们之中有一些是 [ERROR] com.google.gwt.xml.client.impl.AttrImpl is not default instantiable (it must have a zero-argument constructor or no constructors at all) and has no custom serializer. [ERROR] com.google.gwt.xml.client.impl.CDATASectionImpl is not default instantiable (it must have a zero-argument constructor or no constructors at all) and has no custom serializer. [ERROR] com.google.gwt.xml.client.impl.CommentImpl is not default instantiable (it must have […]

将libgdx项目导出为HTML – 您是否忘记inheritance所需的模块?

我尝试用HTML导出我的libgdx游戏。 我已经在Android和桌面上导出它,它运行良好。 但是当我执行./gradlew html:dist ,我有很多像这样的错误: [ERROR] Line 75: No source code is available for type net.spookygames.gdx.gameservices.playtomic.PlaytomicServicesHandler; did you forget to inherit a required module? net.spookygames.gdx.gameservices是一个包在核心文件夹中的主包旁边: 我在文档和另一个问题上看到我需要使用reflection,将此行放在html文件夹中的GdxDefinition.gwt.xml中: 但它没有改变任何东西..我还需要做别的吗? 谢谢 编辑:这是堆栈跟踪: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:html:compileGwt’. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:66) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203) […]

error没有定义类型的限定bean:期望的单个匹配bean但找到2

MySQL,postgresql我想把相同的数据放在同一个名字表中。 两个数据库都有相同的表。 错误 WARN 2017-07-04 14:53:03 oscsGenericApplicationContext – Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘tempMasterServiceImpl’: Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [javax.persistence.EntityManagerFactory] is defined: expected single matching bean but found 2: entityManagerFactoryBean,entityManagerFactoryBean2 INFO 2017-07-04 14:53:03 osojLocalContainerEntityManagerFactoryBean – Closing […]

用户不活动2分钟获取信息“此请求导致为您的应用程序启动新进程”

我使用java和GWT在GAE上部署了我的应用程序。 当我使用我的应用程序ID sample.sampleappId.appspot.com登录我的应用程序时。 在我的应用程序中有很多forms,当我填写表格,如客户注册,然后如果我填写一半的表格,我停止填写表格,并在2,3分钟后,我继续保持填写表格然后我点击保存按钮然后在记录器我我得到的信息就像 “此请求导致为您的应用程序启动一个新进程,从而导致您的应用程序代码首次加载。因此,此请求可能需要更长的时间并且使用的CPU比典型的应用程序请求更多。” 我面对这么多时间。 为什么GAE抛出这个信息。 我的appengine-web.xml: – sampleappId 25 true F4_1G 任何解决方案 任何帮助?

自定义gxt Cell可能需要Widget

我需要一个可以放置Widget的Column。 我有这个: import com.google.gwt.cell.client.AbstractCell; import com.google.gwt.safehtml.shared.SafeHtmlBuilder; import com.google.gwt.user.client.ui.Widget; public class WidgetGridCell extends AbstractCell { Widget widget; public WidgetGridCell(Widget widget) { this.widget = widget; } @Override public void render(Context paramContext, Widget param, SafeHtmlBuilder pb) { } } 但我不知道如何在HTML中包含小部件 PS或不是Widget,只有GWT Button适合我。

如何平滑地缩放canvas?

如何为canvas平滑地创建缩放动画? GWT提供了一个onMouseWheel(MouseWheelEvent evt)方法和一个evt.getDeltaY()来获取滚轮的数量。 这里的问题是,每个轮子运动都执行这个方法,如果我在方法本身中调用canvas重绘,事情会变得非常迟钝。 所以我想到以某种方式为缩放制作动画。 但是怎么样? 我想过创建一个Timer ,但没有真正的想法,因为只有mousewheelevent作为起点,但没有终点,用户完成了使用滚轮进行缩放…

gwt中的会话管理

我正在研究GWT-ext应用程序。 在这个应用程序中,我管理客户端会话。 为此我写下面的代码: 要管理会话:import com.google.gwt.user.client.Timer; public class ClientTimers { private static final Timer SESSION_MAY_HAVE_EXPIRED_TIMER = new Timer() { @Override public void run() { // Warn the user, that the session may have expired. // You could then show a login dialog, etc… } }; public static void renewSessionTimer() { // First cancel the previous timer […]

使用GWT在DisclosurePanel内调整ResizeLayoutPanel

我在DisclosurePanel中使用ResizeLayoutPanel时遇到问题。 我有一个Datagrid到ResizePanel内的ResizeLayoutPanel和ResizeLayaoutPanel。 问题是加载数据时,如果DisclosurePanel关闭,当用户打开disclosurePanel时,它会发现表空。 如果用户在DisclosurePanel打开时执行此操作,则可以正常工作。 知道如何解决这个问题? 这是代码: ResizeLayoutPanel resizeLayoutPanel = new ResizeLayoutPanel(); resizeLayoutPanel.setWidth(“100%”); resizeLayoutPanel.setStyleName(“gwt-resizeLayoutPanel-Example”); /****CREATE COLUMNS [BEGIN] ***************************************************************************/ // Create column. TextColumn column = new TextColumn() { @Override public String getValue(Object object) { return “Test”; } }; /******CREATE COLUMNS [END] ***************************************************************************/ cellTable = new DataGrid(); cellTable.addColumn(column, “Example”); cellTable.setKeyboardSelectionPolicy(HasKeyboardSelectionPolicy.KeyboardSelectionPolicy.BOUND_TO_SELECTION); cellTable.setWidth(“100%”); cellTable.setEmptyTableWidget(new Label(“Example table”)); resizeLayoutPanel.add(cellTable); //Link dataProvider with […]

使用hibernate和gilead for gwt添加到实体类中保存的列表时的LazyInitializationException

是的,所以我正在使用hibernate gilead和gwt将我的数据保存在网站的用户和文件中。 我的用户有一个文件位置列表。 我正在使用注释将我的类映射到数据库。 当我尝试将文件位置添加到用户类中保存的列表时,我得到一个org.hibernate.LazyInitializationException 。 这是一个从我正在使用的外部文件上传servlet类重写的方法。 当文件上传时,它调用此方法。 user1从其他地方的数据库加载。 user1.getFileLocations().add(fileLocation);发生exceptionuser1.getFileLocations().add(fileLocation); 。 我根本不明白它。 任何帮助都会很棒。 错误的堆栈跟踪如下 public String executeAction(HttpServletRequest request, List sessionFiles) throws UploadActionException { for (FileItem item : sessionFiles) { if (false == item.isFormField()) { try { YFUser user1 = (YFUser)getSession().getAttribute(SESSION_USER); // This is the location where a file will be stored String fileLocationString = “/Users/Stefano/Desktop/UploadedFiles/” […]

SmartGWT对话框标题未正确设置

我有一个扩展SmartGWT对话框的自定义对话框。 我的问题是对话框的标题和关闭按钮不会显示在对话框的标题中,而是显示在所有其他元素下的对话框内容中。 这是一个screeshot: 粗体测试和x按钮应该在对话框的标题中。 我的代码基本上是: public class MyDialog extends Dialog { public MyDialog() { super(); this.setTitle(“test”); this.setShowTitle(true); this.setShowCloseButton(true); this.setShowMaximizeButton(false); this.setShowMaximizeButton(false); this.setShowStatusBar(false); this.setShowShadow(true); this.setWidth(“500px”); this.setHeight(“300px”); } @Override protected void onInit() { Label lab = new Label(“test”); this.addMember(lab); } } 这是SmartGWT中的错误还是我错过了什么? 如何正确放置标题? 谢谢你的帮助!