• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

JSF tags in Ajax response

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic