Why JSF and Ajax?
Ajax and JSF would on the surface seem to be two technologies that would be difficult to marry. Ajax processing is predominantly client-side, while JSF processing is predominantly server-side. Ajax is mostly JavaScript and JSF is Java. While very different, the two technologies can combine to create a powerful set of reusable user interface tools for developers. Let’s look at an example. A developer is using JSF to create a form element that requires some specific input. This form element is just a simple input text field, but when the user tabs out of the field, an Ajax validation routine is triggered from the onblur event to test the validity of the typed data. The developer has to use this input field in many places in the application and has to embed the same JavaScript into the component on page every time it is used. Now what if all that code could be embedded into the component instead of the page? The page developer could continue to drop components onto the page and everything