This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
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");