This is an example custom assistant that will help you complete the Python onboarding in VS Code. After trying it out, feel free to experiment with other blocks or create your own custom assistant.
## 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
-
Use Cargo to write a comprehensive suite of unit tests for this function
No Data configured
No MCP Servers configured