All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.myfaces.view.facelets.package.html Maven / Gradle / Ivy

Go to download

The private implementation classes of the Apache MyFaces Core JSF-2.3-next Implementation

There is a newer version: 4.1.0-RC2
Show newest version






Public Facelet API.  Most developers should be able to utilizing the framework using
the public classes and interfaces.

An application that wishes to use Facelets as a ViewHandler, they must specify the following in their faces-config.xml (@see com.sun.facelets.FaceletViewHandler).


<application>
  <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
</application>

Below is sample code for using Facelets at the API level with JavaServer Faces.


// get the view to render
FacesContext context = FacesContext.getCurrentInstance();
UIViewRoot viewToRender = context.getViewRoot();

// grab our FaceletFactory and create a Facelet
FaceletFactory factory = FaceletFactory.getInstance();
Facelet f = factory.getFacelet(viewToRender.getViewId());

// populate UIViewRoot
f.apply(context, viewToRender);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy