title: JSF and Javascript and HTML - How to create a highly dynamic interface
body: <p>I'm new to JSF and developing web applications with Java. 
  I'm basically developing a pretty complex interface, with lots of AJAX content loaded (Pagination, posts, comments, ...). </p>
  
  <p>I'll start with a basic example, a user writes a comment. The form is sent through JSF f:ajax to the server and then I can do a render="sectionId", but the problem is, that I want to make the post not just appear, but slide down and even toggle background color. </p>
  
  <p>How can I obtain this sort of effect using JSF and Javascript?
  The designer (who knows only HTML/CSS/Javscript/Jquery) says that usually, he just does a Jquery AJAX call to a page with a string of data and then the page generates a JSON encode that he can then use to do all the magic.</p>
  
  <p>I'm not asking how you do the toggle/color in jquery, it's the communication between the JSF and Javascript. So how can I send to his javascript the newly generated HTML code, so that he can what he wants with it.</p>
  
  <p>Thanks for any help.</p>