Hello again.

Nice having solved at least one problem. Let's face the next one.
It sounds to me as if you create a string in your backing bean, which represents a jsf-tag, e.g. $tag = "<h:outputText value=\"hello world\">";
Is this correct?
And now you want to insert this string into your page and get it rendered?

Airton Carrara wrote:
You're right, sorry.

I've got confused with two problems I have: one I've posted you've
answered and it's ok.

The other one, I have had not mentioned, I need to render the entire
tag stored on a string (not the string as is).

Thank you very much.

Regard,
Airton


2005/11/24, Marius Kreis <[EMAIL PROTECTED]>:

Well than I didn't get the point... and I still don't get it.
I thought you want to output your <img>-Tags to actually diplay the
images (which assemble a barcode?) at the webpage. In this case you use
escape="false". But if you want to output the tag as-is, then the
parameter escape="true" should do...

Airton Carrara wrote:

Marius,

escape="false" works inside the tag, ex:

<h:outputText escape="false"  value="<b>boldText</b>"/>
will render 'boldText' in bold, but neither '<b>' nor '</b>'.

My needed is to render all the tag (<h:outputText.../>) stored in a
var on myBean class.

Thanks.


2005/11/24, Marius Kreis <[EMAIL PROTECTED]>:


To answer your question:
<h:outputText value="#{myBean.barCode}" escape="false"/>
should work.


Airton Carrara wrote:


Hi,

how to render a string whose value is the jsf tag itself?

example:

a string barCode is assembled on myBean. Its value is something like

<img src='b.gif' width= ' 1' height=50' border='0'><img src='w.gif'
width= ' 1' height=50' border='0'> ....

I need it rendered on the page, but if I use <h:outputText
value="#{myBean.barCode}"/>, I get the string as is. Obviously, if I
write this tag direct on page, I see the bar code.

Thanks.

Regards,
Airton






Reply via email to