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?



--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to