Actually, the JSF <f:outputText> tag likes to put a span around the text too.
If the tag includes an id attribute, which it does by default, then the text
will be put the text inside a span tag. If you manually remove the id
attribute in the JSP editor then the span will not be included, but Netbeans
will put the id attribute back in once you make any drag and drop
modification to the page at all. While I'm sure putting a <script> tag
inside a may not technically correct, it does work (at least in IE7).
I was hoping there was some way of doing this that is technically correct.
It is looking like there isn't though.
-Jeff
Dan Labrecque wrote:
>
> The static text component wraps output using a uniquely identified span
> tag. This is typically used to set style, position, or update text
> client-side. There is an escape attribute you can use so text is not
> HTML escaped by default. However, the span is still output for both
> Netbeans 5.5.1 and 6.0. (I'm not certain how your 5.5.1 project ever
> output JavaScript using this component?) Feel free to file an RFE, but I
> recommend using JSF's <f:outputText> tag which does not output a span.
>
--
View this message in context: http://www.nabble.com/Dynamic-javascript-on-the-page-tp14743242p14744244.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.