<?xml version="1.0" encoding="UTF-8"?> <faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd" version="2.2"> <application> <message-bundle>messages</message-bundle> <!-- Use the Trinidad RenderKit --> <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id> </application> <!-- ==================================================================== --> <!-- Sample context --> <!-- ==================================================================== --> <managed-bean> <managed-bean-name>sampleContext</managed-bean-name> <managed-bean-class>SampleContext</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean> <!-- ==================================================================== --> <!-- Contextual menu factory --> <!-- ==================================================================== --> <managed-bean> <description>The contextual menu factory</description> <managed-bean-name>popupMenuFactory</managed-bean-name> <managed-bean-class>popup.PopupMenuFactory</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean> </faces-config>