Re: [問題] 請問有人在玩GWT-BootStrap的嗎
※ 引述《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://www.ptt.cc/bbs/java/M.1397110606.A.281.html
→
04/10 14:20, , 1F
04/10 14:20, 1F
→
04/10 14:20, , 2F
04/10 14:20, 2F
→
04/11 00:48, , 3F
04/11 00:48, 3F
已更新錯誤
補上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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 4 篇):