作者BignoZe (BignoZe)
看板java
标题Re: [问题] 请问有人在玩GWT-BootStrap的吗
时间Thu Apr 10 14:16:42 2014
※ 引述《PsMonkey (痞子军团团长)》之铭言:
: ※ 引述《BignoZe (BignoZe)》之铭言:
: : 请问有人有研究吗
: 没有,所以下面纯粹(会负责的)嘴炮
哈 谢谢版主热情回覆
: 喔对,我是看 gwtbootstrap,不是看 gwtbootstrap3
: pom 档肉眼看起来...
: 阿等等,明明有这个
: http://gwtbootstrap.github.io/gwt-bootstrap/dependencies.html
: 如果我没有解读错,除非你要「开发 / 测试」gwt-bootstrap
: 不然... 没什麽相依性可言
: 「看起来」你直接把 source code 倒进 project 里头也能动
我尝试以下列步骤使用gwt-bootstrap
1. Add the GWT-bootstrap jar to your project build path
2. In the gwt.xml config file add a reference to the gwt-bootstrap library.
<inherits name ="com.github.gwtbootstrap.Bootstrap"/>
3. add the following namespace to the <ui:UiBinder>
xmlns:b="urn:import:com.github.gwtbootstrap.client.ui"
设定完之後在uiBinder输入
<b:heading size="2">Hello World</b:heading>
这边的错误讯息是找不到heading这个class
犯了两个错误
1. 开头没有大写
2. 没有把source code放进专案
把source code倒进专案以後,gwt-bootstrap就可以用了 囧rz
: : 或是有什麽比较适合gwt的美化排版撇步恳请赐教
: 个人观点来说 UI 美化,到最後都是恶梦
: 你用野生的 bootstrap 还是跟 GWT 合体的 gwt-bootstrap
请问有野生的bootstrap例子可以观摩吗
对於这个做法没什麽头绪
我找了一阵子看到的方法是:先将元件的css移除再加上bootstrap的css
这是原讨论串
http://ppt.cc/voSQ
: 或着说哪一个 front-end 的 framework 可能... 嗯......
: 如果只是单纯 layout 问题,也许你可以试试看 SmartGWT 或是 GXT
SmartGWT看起来非常棒!
比原生的有趣很多 谢谢版主提供资讯^^
: core-GWT widget 只有 onLoad() 一个阶段可以控制
: 造成很多时候 size 很难控制好
: (resize 的机制还没细究 [遮脸])
: 之前 survey 的印象,那两个 lib 都有提供比较强的 layout component
: (记错就算了...... [逃])
: 当然整合起来是否顺利,这就... 不确定
: btw... GWT 自己也提供了某些 SASS/Less 功能
: http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#CssResource
: 自己是还没有实战过,万一各方大德有心得,也请多多提供 Orz
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.129.50.200
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/java/M.1397110606.A.281.html
1F:→ PsMonkey:==" 没有错误讯息是要我动用版规对吧... Zzzz 04/10 14:20
2F:→ PsMonkey:SmartGWT 跟 GXT 是基本款阿,怎麽可以不知道就开始写XD 04/10 14:20
3F:→ BignoZe:抱歉抱歉 明天我会把我遇到的错误补上 04/11 00:48
已更新错误
补上eclipse 的maven plugin { m2e }安装完成後
import gwt-bootstrap as maven project
按下maven build时出现的错误
需安装的套件於以下网页可以找到
http://ppt.cc/S6jN
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.137 s
[INFO] Finished at: 2014-04-11T15:55:37+08:00
[INFO] Final Memory: 5M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test,
prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
猜测在build时还需要下一些指令,才能使用。
※ 编辑: BignoZe (140.129.50.200), 04/11/2014 16:14:15