Chan, Jim wrote: > I am refactoring my company's JSP website because the code uses only JSP to > control navigation. You can imagine its pretty ugly. Anyway, I decided to > use JSF and possibly move to Shale once I've gained a handle on the > framework. I successfully deployed some of the pages using MyFaces because > it has a simple integration with Tiles. > > Anyone who tried to refactor JSP to JSF will know that it takes some work to > adapt the existing html/JSP code to utilize the JSF tags. Because I'm under > time constraints, I've really only used JSF tags for controls that need to > be bound the backing beans. All other html/JSP code was wrapped with > everybody's favorite tag - <f:verbatim>. There are verbatim tags everywhere > - yikes. I am hoping I can refactor them out at some later time, but my > biggest dream is to have the JSF specification at the container level so > non-JSF text do not have to be buffered at all. > > Anyway, I wanted to know if: > > - I am taking a good approach to refactoring the existing webapp? > - Will JSF evolve to a point where <f:verbatim> tag is not needed? > > Any input would be appreciated. Thanks. > Hi Jim, to get rid of the verbatim tags use following:
http://jsftutorials.net/htmLib/ works pretty well except for div to my knowlege, but div can be added from tomahwak. facelets might be problematic though with this approach since there are probably no faclet definitions for the htmLib. The main problems you will face are following: a) be able to make a clear mvc separation, this is a problem unavoidable by moving to any mvc framework, no matter being it jsf or struts or whatever. b) the id handling, due to the auto id alteration of jsf, myfaces has the ability of forceid, that might work out for you pretty well. I would recommend not to force things, neither in struts nor in jsf, move over slowly and keep the old system intact as time permits, after 3-4 pages you will know about the timeframe and actual problems. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]