加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

用于GWT的Twitter Bootstrap不起作用

发布时间:2020-12-17 20:39:37 所属栏目:安全 来源:网络整理
导读:我正在尝试使用Twitter Bootstrap for GWT并获得与展示 here相同的漂亮和漂亮的视图,这就是我所做的: 1-从git下载模块 2-运行pom.xml中的包任务 3-在我的项目类路径中包含了创建的jar. 4-继承我project.gwt.xml文件中的模块 inherits name="com.github.nyao
我正在尝试使用Twitter Bootstrap for GWT并获得与展示 here相同的漂亮和漂亮的视图,这就是我所做的:

1-从git下载模块

2-运行pom.xml中的包任务

3-在我的项目类路径中包含了创建的jar.

4-继承我project.gwt.xml文件中的模块

<inherits name="com.github.nyao.bootstrap4gwt.Bootstrap"/>

5-将模块包含在我的根xml中

<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
             xmlns:g='urn:import:com.google.gwt.user.client.ui'
             xmlns:m='urn:import:com.clouway.exreport.client.accountcreation.view'
             xmlns:t='urn:import:com.github.nyao.bootstrap4gwt.client.ui'
        >

  <ui:style src="newRegistrationStyle.css"/>
  <g:HTMLPanel addStyleDependentNames="{style.mainPanel}">
    <div class="{style.headdistance}"/>
    <div class="{style.container}">

      <g:DecoratorPanel addStyleDependentNames="{style.decoratorPanel}">

        <g:VerticalPanel addStyleDependentNames="{style.verticalPanel}}">

          <m:AccountEditor ui:field="accountEditor"/>

          <!--<g:Button ui:field="create" text="create"/>-->
         <t:Button type="Success"   text="sing in"/>
          <g:Label ui:field="errorsLabel"/>
...

</ui:UiBinder>

但什么都没发生.我有正常的文本框和普通按钮.

我看了this教程这是非常好的,那个人把事情弄好了,他的应用程序看起来很漂亮.我看了看他的代码,但没有找到任何理由为什么我看起来仍然正常,他得到了很好的看法.提前感谢您的帮助

解决方法

而不是使用bootstrap4gwt尝试使用 gwtbootstrap,它比前者更好,并且具有更多的组件.该论坛在gwtbootstrap中也非常活跃.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读