subha-palanivelu/xhtml icon
public
Published on 5/26/2025
XHTMLBlock

Rules

Build & Development Commands

  • action: replace transformations:
    • find: '<p:calendar' replace: '<p:datePicker' globs: "*.xhtml"
    • find: '</p:calendar>' replace: '</p:datePicker>' globs: "*.xhtml"
    • find: 'layout="grid"' replace: 'layout="flex"' globs: "*.xhtml"
    • find: '<ui:repeat' replace: '<p:repeat' globs: "*.xhtml"

Testing Guidelines

  • postProcessing:
    • description: > After the transformation, run the following steps:
      • Ensure that any deprecated components or attributes are removed.
      • Test the upgraded XHTML to ensure compatibility with PrimeFaces 13.

Code Style & Guidelines

  • description: >

    PrimeFaces 13 Upgrade

    This rule will perform the following transformations to update the XHTML for PrimeFaces 13:
    • Update namespace for PrimeFaces components.
    • Replace components with ui:* prefix to p:* (e.g., <ui:commandButton> to <p:commandButton>).
    • Replace deprecated components like <p:calendar> with <p:datePicker>.
    • Update event attributes from actionListener to action.
    • Update CSS classes and attributes for PrimeFaces 13 compatibility.

Documentation Guidelines