In this chapter, we have explored ways to enhance a PrimeFaces component's look and feel based on the state of the underlying data apart from the theme and what this can do. We've had a look at the schedule component and its features, the problem with the currently selected date or schedule event, and how to create a CSS rule to change the background color of an HTML element, and then how to execute the JavaScript function to apply a CSS rule to an HTML element. Finally, we have learned how to execute a JavaScript function when a schedule date is selected without JavaScript by just using the AJAX and RequestContext
PrimeFaces utilities API. All the aforementioned topics were explained with a schedule example. Now that you have reached the end of this chapter, you should be comfortable using dynamic changes using JavaScript, CSS, AJAX, and RequestContext
of PrimeFaces API on PrimeFaces components.
In the next chapter, we are going to discover how PrimeFaces Mobile is used for mobile...