I am new to JSF 1.2,
I am trying to output some text into my javascript call like so
something(<t:outputText value="#{bean.val}"/>)
but instead of getting plain text output, this is all being wrapped in a span. How do i get rid of the span?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am not sure about
t:outputText, but anh:outputTextwithout any other attribute thanvalueshould not render any HTML element.If you’re using
id,styleClassor something like that, then it will indeed render a<span>since those attributes has to get somewhere anyway.If you’re using Facelets as view technology instead of legacy JSP, then you could also just use EL in template text like follows:
something(#{bean.val})