[jboss-user] [JBoss Seam] - Facelets: Ways to output code that shall be unparsed
JUnkie
do-not-reply at jboss.com
Thu Dec 13 03:56:34 EST 2007
If you use Facelets:
How can one output a fragment like this? The tags will cause errors as this is not well-formed.
This is code for Google-Analytics
if(typeof(urchinTracker)=='undefined')document.write('<sc'+'ript src="'+\
| 'http'+(l=document.location.protocol=='https:'?'s://ssl':'://www')+\
| '.google-analytics.com/urchin.js'+'"></sc'+'ript>')
I have put the code into a properties file and use this to output it, however I don't like this solution. Do you know a better one?
<h:outputText escape="false" value="#{...}" />
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112476#4112476
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112476
More information about the jboss-user
mailing list