What problem does it solve?
HMIS projects often encounter silent AJAX update failures when using plain HTML elements or incorrect ID references within JSF. This Skill provides a concise set of rules to enforce component-based updates, proper ID resolution, and safe update patterns to ensure deterministic AJAX behavior.
Core Features & Use Cases
- Use
h:panelGroup and p:outputPanel for all AJAX targets to guarantee proper JSF lifecycle and correct DOM IDs.
- Always resolve component IDs with
:#{p:resolveFirstComponentWithId(...)} and avoid CSS/JQuery selectors in update or process attributes.
- Debug and fix common AJAX update failures during development by validating target components and ensuring the correct component hierarchy.
Quick Start
Follow these guidelines to fix AJAX updates by using JSF components for updates and resolving element IDs before references.