2007年8月23日 星期四

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.

沒有留言: