开发者

JSF 1.2 migration to Facelets

My all application is written with jsf 1.2 I want to use from this moment on facelets where xhtml files are .

So I have some main questions:

1.I want to

  • face one:upgrade to jsf 1.2 with servlets
  • face two:from there to upgrade to 2.0

would this two changes break my application ?

2.how to do this ? can some one explain to me ? I have been trying all day long to do it i had :

  • changed a file to xhtml amd changed his taglibs to xmlns such as : <%@ taglib prefix="a4j" uri="http://richfaces.org/a4j" %> will be converted to : xmlns:a4j="http://richfaces.org/a4j"

  • adding

    <view-handler>
        com.sun.facelets.FaceletViewHandler
     </view-handler> 
    

    inside application in the faces config


  • changing file name from xxx.jsp to xxx.xhtml

  • adding <context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name> <param-value>.xhtml</param-value> </context-param>

to web xml

  • inserting

    f:view tag above all

the problem i am facing now

when *.jsf page is called the server says no page like this exists in the system... when *.xhtml is called the page itself is blank and the server asks me to download it meaning a pop up with open and save 开发者_StackOverflow社区options popes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜