eclipse / lsp4jakarta

Language Server for Jakarta EE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Faces creating Facelets programmatically with new API

isaacrivriv opened this issue · 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
  • snippet
  • other, please specify: