*
The moose likes JSF and the fly likes JSF tags in Ajax response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF tags in Ajax response" Watch "JSF tags in Ajax response" New topic
Author

JSF tags in Ajax response

A. Dusi
Ranch Hand

Joined: Sep 27, 2004
Posts: 114
I am using JSF MyFaces and Tomahawk.
I have a JSP page with 2 divs.
First div has an input text field and a button. On click of the button, an ajax call is made to a servlet using the value in the input text field.
This call will return a reponse text "<jsp:include page="inc.jsp"/>.
On onreadystatechange, I am populating the innerHtml of second div with this response text.
But it does not show up!
I have tried sending some simple JSF tags but no luck.
Is there anything obvious that I am missing here or it is just not possible to return JSF tags in the reponse?
I have response.setContentType("text/html");

Thanks for your responses.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JSF tags in Ajax response
 
Similar Threads
How to use Inbuilt Pagination Suppourt of DOJO Framework while displaying Data in JSP
TabIndex problem using JSF and Ajax4jsf for ajax request
Dynamic rendering of html content on jsf
Ajax & Myfaces problem - pages reloads with commandButton.
TabIndex problem using JSF and Ajax4jsf for ajax request