lsp4jakarta icon indicating copy to clipboard operation
lsp4jakarta copied to clipboard

Faces creating Facelets programmatically with new API

Open isaacrivriv opened this issue 3 years ago • 0 comments

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
  • [x] snippet
  • [ ] other, please specify:

isaacrivriv avatar Mar 15 '23 18:03 isaacrivriv