If you want details on the JSF/JSP issues, see this article:
http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html As for converting to facelets, facelets excels at templating. On 9/11/06, David Delbecq <[EMAIL PROTECTED]> wrote:
Thank you. It's strange, lots of docs i saw on the net about JSF do such things as <tag><JSF component/></tag> without problem, it looks very curious to me :/ Or maybe i read mistakenly :( I'll take a look at facelets, but not sure it will be easy to convert all our jsp to facelets as it uses a templating system. :) Martin Marinschek a écrit : > Hi David, > > it's inherent to the JSP and JSF 1.1. interaction that this happens - > you could call it a bug by design. > > things you can do, easiest first: > > - use f:verbatim-tags around your HTML-Code you embed in JSF-tags > (simple but ugly) > - use the MyFaces htmlTag tag to emit some of the HTML-Tags > - use the htmlTag-Library to emit HTML-tags > - switch over to Facelets for view-definitions(relatively simple and > very recommendable) > - switch over to JSF 1.2 (well, if you want to use Tomcat 5.5, you'd > still have to use facelets) > > regards, > > Martin > > On 9/11/06, David Delbecq <[EMAIL PROTECTED]> wrote: >> Hello, >> >> I thought, in JSP, when i write >> <h:form id="blabla"> >> <div><h:outputText value="test"/></div> >> </h:form> >> >> I would get something like this >> >> <FORM> >> ... >> <div> .... test ... </div> >> ... >> </FORM> >> that is, the content of outputText "test" is placed at same position of >> corresponding tag. >> >> However, running such a JSP, is get the following output >> >> <FORM> >> ...test... >> <div></div> >> ... >> </FORM> >> >> That is, the outputText is rendered immediatly inside the h:form, and >> not where is was designed in the JSP, is there a reason for this? Am i >> forbidden to use html tags inside an h:form?? Is that a bug? >> > >

