Faces creating Facelets programmatically with new API
isaacrivriv opened this issue · comments
Isaac A. Rivera Rivas commented
Description:
With the inclusion of a new API for creating Facelets programmatically with Java code, it would be useful to have a way to use these APIs with a code snippet for creating these Facelets for example as seen below
@FaceletsViewId("/valid.xhtml") //Here goes you Facelet
@ApplicationScoped
public class Hello extends Facelet {
@Override
public void apply(FacesContext facesContext, UIComponent root) throws IOException {
// Here goes your Facelet code
}
}
Specification:
https://jakarta.ee/specifications/faces/4.0/jakarta-faces-4.0.html#changes-between-4-0-and-3-0 issue 1581
Type of language feature proposed:
Select all that apply
- diagnostic
- quick-fix
- snippet
- other, please specify: