用于GWT的Twitter Bootstrap无法正常工作(Twitter Bootstrap for GWT is not working)

编程入门 行业动态 更新时间:2024-10-18 02:36:17
用于GWT的Twitter Bootstrap无法正常工作(Twitter Bootstrap for GWT is not working)

我正在尝试使用Twitter Bootstrap for GWT并获得与此处展示相同的漂亮和漂亮的视图,这里是我做的:

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>

但没有发生。 我有正常的文本框和正常的按钮。

我看了一下这个非常好的教程,那个人把事情搞定了,他的应用程序看起来很漂亮。 我看了他的代码,但没有找到任何理由,为什么我的表情我仍然正常,他有良好的观点。 感谢提前帮助

I am trying to use Twitter Bootstrap for GWT and get the same nice and pretty view like the showcase here and here is what I did:

1- downloaded the module from git

2- run package task in the pom.xml

3- included the created jar in my projects classpath.

4- inherited the module in my project.gwt.xml file with

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

5- included the module in my root 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>

But nothing happened. I got normal text box and normal button.

I took a look at this tutorial which is very good and the guy got the things right, his application has very nice look. I took a look at his code but didn't find any reason why my look i still normal and he got the nice view. thanks for help in advance

最满意答案

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

Instead of using bootstrap4gwt try using gwtbootstrap which is far better and has much more components compared to the former. The forum is also very active in gwtbootstrap.

更多推荐

本文发布于:2023-08-05 22:35:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1440970.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法正常   工作   Twitter   GWT   working

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!