JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Web Framework » JSF  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
話題被移動
該話題已被移動 - browser , 2007-03-07 00:10
如果您尚不清楚該話題被移動的原因,請參考論壇規則以及本版公告或者聯系本版版主。
本主題所含的標籤
無標籤
作者 Apache Tomcat + JSF 1.2 [精華]
holicy





發文: 14
積分: 2
於 2007-03-06 20:59 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
目前Apache MyFaces還停留在JSF 1.1的版本,如果想要使用JSF 1.2,請到Project GlassFish下載最新的實作版本[1]

雖然官方網頁上的文件說明該JSF"需"在Java Application Server上執行,不過我還是在網路上發現有兩個可在Tomcat上使用JSF 1.2的方法。

1. 如果你使用的是Tomcat 5.x,請參考

 http://blog.exadel.com/?p=23

2. 如果使用Tomcat 6(推薦),請參考

 http://forum.java.sun.com/thread.jspa?threadID=787962&messageID=4487741#4487741

 這個步驟其實很簡單,即是複製jsf-api.jar、jsf-impl.jar與jstl-1.2.jar到TOMCAT_HOME\lib中即可[2]

 我試過jsf-guessNumber與jsf-cardemo兩個範例,都沒有問題!
____________________________________________________________

[1] https://javaserverfaces.dev.java.net/

[2] jstl-1.2.jar可以到

https://maven-repository.dev.java.net/repository/jstl/jars/

下載。


holicy edited on 2007-06-21 08:21
reply to postreply to post
作者 Re:Apache Tomcat + JSF 1.2 [Re:holicy]
cheneylou





發文: 4
積分: 0
於 2007-04-06 08:49 user profilesend a private message to usersend email to cheneyloureply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
按照楼主的办法配置成功,虽然几经波折。

刚开始是用tomcat5.5,下载的是1.2_04和jstl1.2。
结果一启动tomcat就报错。
后来用tomcat6,还是报错。

最后去下载jsf1.2_0,结果顺利运行。


reply to postreply to post
作者 Re:Apache Tomcat + JSF 1.2 [Re:cheneylou]
dygs





發文: 3
積分: 0
於 2007-04-23 18:35 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我怎么就不能正常显示呢?

下载后打开的文件代码:
---------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><title>Hello</title></head><body bgcolor="white">
<form id="helloForm" name="helloForm" method="post" action="/jsf-guessNumber/guess/greeting.jsp;jsessionid=633742E96DC6EA45EDF77E561F9A7746" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="helloForm" value="helloForm" />
<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="H4sIAAAAAAAAAK1XXWwURRyfu35SlPQDoSjgFdCCtntfLWALqbS05fCuNb22CiQe07u53tb9GGZnu1uJBEyURKLBqA9GjERNfIEXfVEf/IgPJiSQSKIPmhhCTIyJ+GBIUB/Umb3dvd3rLTWEfdibufnPb/7z+//+/5m9cAM06AR0HEkvwEUoSFCZFybnFlCeDp698vS7rdoOKQyAiQEAzRoBybwqC5quCEWYR5oAMZbEPKSiqghZCinKQAXOI5KSsbRtmiA0oRbQzeJnn1+MjX9xD8cx9gL+RPhqpo3CMLGqIIUKM6lZERlTqkrBfQs5sZBb0HAuvivRl3xs5+7E7lzM1I6BEyBs9FkoW2ujlKgsCQfYa0wlMlhVQpKk8qYzeYxNDYEdK0ye1CnW6TQyA3xJ3F24pAM3YME9ugLcOIG4JOZTMqMbNBlwEaXkeQdipwWxfQWIlOI41KhriEyofg96Vpg+osoyVArDOqWqAho1fU4WqQPRb0E8vAJEBmma5T8iRCVa3NT5bP6E3VZzpcX012apVKciA4BaKQNxQ9MPX3297ui3dSA8BlokFRbGY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VKFs86I77KuD2oXFVPH1p9HH6/nrxSrlcb3EJUbfdR9NKZn2/1vRq2C8V+Iwni/zMGtvPIqklb/DWpeh1elE6fH/r0mQ9vTjpFSTW2gPuDUUH9oioWXOXU0eovAXYfMKkwxnsj5Q4754I+FkacNq0tBBP7YkzBau5XpOxYWZ+Rk8yNGhlSFXO/WVDubK5xvFoJ7dFj+fDnozFvPrd791i+U2PsTSTFiIDNVUFM9OyKsyBqep7N0njEHrp9xNIiRQRK1xveTo7Hf7xSCdoDoMlGWc6kGy1gml4yG7PWVlYuM50+4mJB7LUGsecph/ZNiQ8nvPR1eOmzPyuwm/SVNC6/HOcoYHdcSSUDEYIKg5EiE1xvEcqitDQQ6Z5ARmSEaUsnS5FsvsQu3XOq+mx3T4RJSCza1hpdktBARJ2TxGM6GoxwwfYWUF4l1q2MjbA7jSQqyM+ERcF/aWmKX3sPAAA=" />
<h2>Hi. My name is Duke. I'm thinking of a number from
<span xml:lang="en_US">1</span>
to
10
. Can you guess
it?
</h2><img id="helloForm:waveImg" src="/jsf-guessNumber/wave.med.gif;jsessionid=633742E96DC6EA45EDF77E561F9A7746" alt="" /><input id="helloForm:userNo" type="text" name="helloForm:userNo" /><input id="helloForm:submit" type="submit" name="helloForm:submit" value="Submit" /><p/>
</form><p><a href="http://validator.w3.org/check?uri=referer"><img width="88" height="31" alt="Valid XHTML 1.0!" src="http://www.w3.org/Icons/valid-xhtml10"/></a></p></body></html>

(縮略圖,點擊圖片鏈接看原圖)


reply to postreply to post
作者 Re:Apache Tomcat + JSF 1.2 [Re:dygs]
holicy





發文: 14
積分: 2
於 2007-04-23 21:34 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
dygs wrote:
我怎么就不能正常显示呢?
你的問題似曾相識,請參考
http://www.javaworld.com.tw/jute/post/view?bid=42&id=184874&sty=1&tpg=2&age=0


reply to postreply to post
作者 Re:Apache Tomcat + JSF 1.2 [Re:holicy]
dygs





發文: 3
積分: 0
於 2007-04-24 09:50 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
谢谢holicy

reply to postreply to post
作者 Re:Apache Tomcat + JSF 1.2 [Re:holicy]
holicy





發文: 14
積分: 2
於 2007-07-28 12:18 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
MyFaces Core 1.2.0 Released!

在JSF 1.2中,除了Sun JSF RI外,我們終於有新的選擇了!

http://myfaces.apache.org

[2007-8-1] 補充:

經過嘗試後發現MyFaces 1.2並不能正常運作,詳細情況請參考

http://www.mail-archive.com/users@myfaces.apache.org/msg40409.html

目前只好等待MyFaces 1.2.01出現,或是使用上述討論串中的修補檔。


holicy edited on 2007-08-01 13:27
reply to postreply to post
» JWorld@TW »  Web Framework » JSF

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8