Ajax Support

Ajax Updates

jQuery Mobile initializes mobile widgets at page load time automatically for once and widgets have to be refreshed manually if their state changes with ajax e.g. adding new items to datalist otherwise UI doesn't get enhanced for mobile. This makes jQuery Mobile almost impossible to use in ajax enabled JSF applications.

PrimeFaces Mobile provides ajax update support for all widgets in the mobile renderkit under the hood.

Consider the following case with a standard JSF commandButton with ajax and the PrimeFaces mobile counterpart.

Ajax Status

PrimeFaces Mobile provides an ajax status out of the box. For all ajax requests a loader icon is displayed at the center of the page. PFM button above demonstrates the ajax status loader. Look and feel can be customized globaly as well.