Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is it possible to use JSF components inside an AJAX div?

843844Sep 24 2008 — edited Sep 24 2008
Is 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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2008
Added on Sep 24 2008
1 comment
122 views