小编Pet*_*ete的帖子

如何:UiBinder + GWT MVP +多个独立显示区域

我正在使用GWT MVP和UiBinder来创建一个带有DockLayoutPanel的应用程序.我希望南北码头是静态的,包含按钮和链接.我希望在中心和东部码头的两个不同区域拥有动态视图.由于这些动态区域应该彼此独立,我为每个动态显示区域设置不同的ActivityMapper和ActivityManager; 中心,东顶和东底.

如何在加载应用程序时独立初始化这3个不同的显示区域?如何在一个显示区域中从一个Activity切换到另一个Activity而不影响其他区域?

当我使用PlaceController的goTo在一个区域中从一个地方切换到另一个地方时,另一个区域的活动停止.

五月天,请帮忙,五月天!

以下是我的一些代码:

AppViewImpl.ui.xml

<g:DockLayoutPanel styleName="{style.dockPanel}" unit="PX" width="975px" height="100%">

    <!-- DOCK PANEL EAST -->
    <g:east size="220">
        <g:LayoutPanel styleName="{style.eastPanel}">
            <g:layer left="0px" width="220px" top="0px" height="105px">
                <g:SimpleLayoutPanel ui:field="topRightPanel"/>
            </g:layer>

            <g:layer left="0px" width="220px" top="110px" height="340px">
                    <g:InlineLabel styleName="{style.label}" text="ANOTHER DISPLAY AREA"/>
            </g:layer>
        </g:LayoutPanel>
    </g:east>

    <!-- DOCK PANEL NORTH -->
    <g:north size="110">
        <g:LayoutPanel styleName="{style.northPanel}">
            <g:layer left="0px" width="755px" top="0px" height="105px">
                    <g:InlineLabel styleName="{style.label}" text="NORTH PANEL"/>
            </g:layer>
        </g:LayoutPanel>
    </g:north>

    <!-- DOCK PANEL SOUTH -->
    <g:south size="20">
        <g:LayoutPanel styleName="{style.southPanel}">
            <g:layer left="0px" width="755px" top="0px" height="20px">
                    <g:InlineLabel styleName="{style.label}" …
Run Code Online (Sandbox Code Playgroud)

gwt uibinder gwt-mvp gwt-activities gwt-places

8
推荐指数
1
解决办法
3925
查看次数

GWT 错误:没有适用于 org.hibernate.validator.constraints.impl.SizeValidatorForString 类型的源代码

我正在尝试按照以下链接提供的说明为我的 GWT 应用程序设置客户端验证:

http://code.google.com/p/google-web-toolkit/wiki/BeanValidation

...并通过查看提供的验证示例:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation

我已经设置了与验证示例中完全相同的项目,但作为常规 GWT 项目 - 不使用 Maven。我的客户端和服务器类路径上都有 hibernate-validator-4.2.0.Final.jar 和 slf4j-api-1.6.1.jar 。然而; 我在运行时仍然收到以下错误:

No source code is available for type org.hibernate.validator.constraints.impl.SizeValidatorForString; did you forget to inherit a required module?
No source code is available for type org.hibernate.validator.constraints.impl.SizeValidatorForCollection; did you forget to inherit a required module?
No source code is available for type org.hibernate.validator.constraints.impl.SizeValidatorForMap; did you forget to inherit a required module?
Run Code Online (Sandbox Code Playgroud)

提到的类在 hibernate-validator-4.2.0.Final.jar 中。因此,我有点困惑。难道是Validation.gwt.xml中的 super-source 语句隐藏了 jar 中定义的类?

validation gwt hibernate-validator

3
推荐指数
1
解决办法
2468
查看次数

在Heroku上运行Dart App

我正在关注此博客,将Dart应用程序上传到Heroku并运行它.我已经到了将应用程序成功部署到Heroku的程度,但该应用程序未运行.以下是Heroku日志:

2012-12-20T18:04:57+00:00 heroku[web.1]: Starting process with command `dart TestApp.dart`
2012-12-20T18:04:57+00:00 app[web.1]: bash: dart: command not found
2012-12-20T18:04:58+00:00 heroku[web.1]: Process exited with status 127
2012-12-20T18:04:58+00:00 heroku[web.1]: State changed from starting to crashed
Run Code Online (Sandbox Code Playgroud)

以下是我的内容 Procfile

web: dart TestApp.dart
Run Code Online (Sandbox Code Playgroud)

任何人都可以指出我对这个错误的解决方案吗?

heroku dart

2
推荐指数
1
解决办法
418
查看次数

两个独立的JAR与Maven

我想使用Maven为我的项目创建两个独立的jar.

一个包含**/client包装下的所有东西,包括**/server包装下的所有东西.客户端包还应包含源.

问题1:如何设置我的pom来生产这两个独立的罐子?

问题2:是否可以使用单个maven命令创建两个?

任何帮助表示赞赏.

非常感谢你!

package pom.xml maven

1
推荐指数
1
解决办法
3964
查看次数