Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why JSF and Ajax?

Ajax JSF
0
Posted

Why JSF and Ajax?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.