|
Configure Facelets Support
There are two things you need to do in an ICEfaces application that are specifically related to Facelets.
ICEfaces includes its own version of Facelets. You need to ensure that this library is included with your deployment. The build file included with the easyajaxpush project already does this for you.
ICEfaces needs to be configured to use a specific ViewHandler implementation when running with Facelets. This is done by specifying the D2DFaceletViewHandler in your faces-config.xml file.
Copy or type the bolded section of code into the faces-config.xml file:
<?xml version='1.0' encoding='UTF-8'?> <faces-config> <application> <view-handler> com.icesoft.faces.facelets.D2DFaceletViewHandler </view-handler> </application> <managed-bean> <description>An application-scoped counter.</description> <managed-bean-name>applicationCounter</managed-bean-name> <managed-bean-class> org.icefaces.tutorial.easyajaxpush.ApplicationCounter </managed-bean-class> <managed-bean-scope>application</managed-bean-scope> </managed-bean> <managed-bean> <description>A session-scoped counter.</description> <managed-bean-name>sessionCounter</managed-bean-name> <managed-bean-class> org.icefaces.tutorial.easyajaxpush.Counter </managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean> </faces-config>
Copyright 2005-2009. ICEsoft Technologies, Inc. |