Is it possible to use JSF components inside an AJAX div?
843844Sep 24 2008 — edited Sep 24 2008Is it possible to use JSF components inside an AJAX div?
Here's my setup:
(1) There is a main page with a div component <div id="mydiv"></div>
(2) There is a javascript function that uses AJAX to get <data>, finds mydiv, and calls mydiv.innerHTML = <data>.
(3) There is a button/hyperlink to call the javascript function.
All of this normally works fine if the <data> page is plan HTML or JSP. But now
(4) The <data> page uses JSF. There is use of h:outputText or h:inputText with the # operator, such as
<h:inputText value="#{myBean.property}"/>
Upon pressing the button in step (3), the web server gives the following error:
org.apache.jasper.JasperException: /myaccount/message.jsp(19,74) #{..} is not allowed in template text
So now what to do?