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.
Dan
jsr wrote:
> Hi,
>
> I am currently working on converting my existing NetBeans VWP 5.5.1 project
> to NetBeans 6.0 w/ Woodstock 4.1.1 components. On several of my pages, I
> have javascript functions that are dynamically generated based on data from
> the database. They are usually just static text fields that put the code
> somewhere on the page. With Woodstock 4.1+ though, this does not appear to
> work. I’m guessing that the browser does allow the static text component’s
> javascript to create runnable javascript.
>
> So, is it possible to put dynamic javascript functions on the page using
> Woodstock components? As a workaround, I figured out that I could use the
> "Standard" (non-woodstock) Output Text component for the javascript. I would
> like to stick to using one set of components in the future though and not
> have mostly Woodstock with a few Standard components mixed in.
>
> If this is not possible now, can we get a value attribute added to
> Woodstock’s script component that simply puts the text between two html
> script tags?
>
> Thanks,
> Jeff
>
>