2009年5月24日 星期日

JSF on Google App Engine

目前只支援JSF 1.1,

實作元件目前相容的有Myfaces,

但是Richfaces 3.1.6不相容,

幫忙投票讓GAE支援Richfaces,here

一堆東西不能用 囧rz.

2009年4月27日 星期一

HTML EDITOR - TinyMCE

最近案子要用網頁編輯器,因此來回顧多年以前玩的TinyMCE.

需求 :中文化以及可以使用標楷體

1. download Chinese language pack

2. snapshot sample

tinyMCE.init({language : "zh",
theme_advanced_fonts : "新細明體=新細明體;標楷體=標楷體;"...});

BTW , Richfaces的rich:editor元件採用的也是TinyMCE,

現在包成元件用方便多了,clean is beauty and more ajax

2009年4月15日 星期三

Use JSTL on JSF with Facelets

  1. version JSTL 1.1
  2. namespace : xmlns:c="http://java.sun.com/jstl/core"
  3. Facelets Support : c:if , c:forEach , c:set(少用)

2007年12月12日 星期三

Reverse engineering on DB2

目標 : 使用非root權限但是有個別schema權限的account 將db dumup到別的db
  • 解法1 : PowerDesigner 12
  • 解法2 : DB2提供的玩具 EXPORT TO指令
  • 解法3 : hibernate-reverse-engineering
  • 解法4 : DB2 -> sql server - > DB2
  • 解法5 : toad for db2

2007年11月27日 星期二

weblogic 9.2 with Seam 2.0.ga

  1. Source : jboss-seam-2.0.0.GA\examples\jpa\resources-weblogic92

  2. Edit : modify web.xml from version="2.5" to version="2.4"
    weblogic 9.2不支援2.5

  3. Data Sources : examples-dataSource-demoPool , weblogic use pointbase
    (1) run PointBase Console.exe
    (2) driver : com.pointbase.jdbc.jdbcUniversalDriver
    url : jdbc:pointbase:server://localhost/demo
    user/pw : examples/examples

2007年8月23日 星期四

Seam 2.0 without JSF , RHDS release

Seam2.0之後,將把"JSF限定"拿掉,目前計畫整合ZK(zkseam.demo)和Wicket.

ZK是非常優秀的Ajax Framework,可以帶給用戶非常棒的AJAX體驗,但是架構上比起JSF還是不足,這要等待日後seam對其整合的如何.

Wicket的想法很棒,徹底把元件從網頁中拿掉,讓網頁設計師輕鬆許多,省了許多溝通上的麻煩,但是把網頁的TAG放到後端重組成自己的TAG,花費了許多額外的效率,這一點還沒上線過比較大專案,所以還不確定影響到什麼地步,改天找個案子來試試看.

期待很久的Red Hat Developer Studio終於發佈了,整合了JBossIDE和ExadelIDE並且加入Seam,可以說是JBoss最強的武器吧XD,想挑戰Rails的開發速度嗎?Try it!Seam-gen will make it come true!

Configure Richfaces3.1 with Seam2.0

英文寫的不好,看不懂請包涵XD.
Required : richfaces-ui-3.1.0-rcX-bin and jboss-seam-2.0.0.BETA1
  1. lib
    (1)Delete ajax4jsf-1.1.1.jar and richfaces.jar from jboss-seam-2.0.0.BETA1\lib.
    (2)Put richfaces-api-3.1.0-rcX,richfaces-impl-3.1.0-rcX,richfaces-ui-3.1.0-rcX into jboss-seam-2.0.0.BETA1\lib.
  2. modify jboss-seam-2.0.0.BETA1\build.xml
    (1)Delete all ajax4jsf*.jar from build.xml.
    (2)Find description="extra jars for the EAR" in build.xml
    ,delete include name="el-*.jar" and insert include name="richfaces-api*.jar"
  3. web.xml
    Ajax4jsf filter not needed, Seam Filter installs it for us.
    You can reference "booking" example.
  4. view/pages.xhtml
    Let's modify booking\view\home.xhtml.
    Add xmlns:rich="http://richfaces.ajax4jsf.org/rich" in html tag.
    Try rich:panel on booking\view\home.xhtml.
    Finally, build it ,you will see beauty richfaces.