You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Kevin <kg...@protech.newsouth.net> on 2006/04/18 18:44:15 UTC
Syntax Question
If I attempt to use <jsp:root> for my app that uses tiles I get the
following error when I attempt to load a any page with a form in it:
Location: http://localhost:8989/myfaces-4-18/pages/login.faces
Line Number 249, Column 27:
</body>
</html>
<form id="linkDummyForm" name="linkDummyForm" style="display:inline"
The problem is obviously the form being generated after the <html/>
element. Is there any way to prevent this? until then I will just not
use <jsp:root>.
Sorry if this is a very basic question, I am a little new to JSF.
Re: Syntax Question
Posted by Werner Punz <we...@gmx.at>.
Kevin schrieb:
> If I attempt to use <jsp:root> for my app that uses tiles I get the
> following error when I attempt to load a any page with a form in it:
>
>
> Location: http://localhost:8989/myfaces-4-18/pages/login.faces
> Line Number 249, Column 27:
>
> </body>
> </html>
> <form id="linkDummyForm" name="linkDummyForm" style="display:inline"
>
>
>
> The problem is obviously the form being generated after the <html/>
> element. Is there any way to prevent this? until then I will just not
> use <jsp:root>.
>
> Sorry if this is a very basic question, I am a little new to JSF.
>
Seems like a mixup of tiles you have here, afair tiles you should not
use full blown html markup in subtiles, you only should page parts.
And also make sure that the subtiles are in the correct position in your
template.
for instance if you do in times a full layout put the html definitions
in there, add a body tile with only the body content etc...
What you try to achieve is to have page parts with full html markup as
it seems, you only can do that with facelets, to my knowledge.