Ajax4JSF is a framework which inserts AJAX function to JSF. It is easy to transform orginal JSF code to Ajax-able. Ajax4JSF just changed the way of http message.
It’s document is here. It has a simple example. Look at blow code: <?xml:namespace prefix = a4j />
<?xml:namespace prefix = h />
the reRender property points out whose data in JSF component tree should be return from server. After JSF engine renders that component, Ajax4JSF then sends response. So this approach didn’t do harsh to JSF. We can code in JSF bean:
<br />private HtmlOutputText rep2 = new HtmlOutputText(); <br />...... <br />String style="border-color: rgb(204, 0, 255); backgroun....."; <br />this.rep2.setStyle(style); <br />