#{…} is not allowed in template text
<a4j:ajax event="click" render="tempval" listener="#{question.setParameters}" /> When we are using this code, the server throws an exception with the message #{...} is not allowed in template text How is this caused and how can I solve it? BalusC You will get this error when you're using JSP as view technology and you're using #{...} in template text such as (the <p> is just examplary, it can be any plain HTML element): <p>#{bean.property}</p> It's namely not supported in JSP, but it is supported in its successor Facelets. In JSP, you would need to explicitly use <h:outputText> : <p><h