MyFaces
MyFaces is used as the JSF implementation in this application. The following details should be added in web.xml

PrimeFaces Theme
As said before, PrimeFaces library is used to enhance the UI. There is nearly no configuration required for this library. PrimeFaces provides many pre-designed theme for your web application. In our case, we use “blue-sky” theme. We just add the following setting in web.xml

1 comment:

hi . i have read your tutorial on integration of myfaces and primefaces.

I have write a small webapp with myfaces+ primefaces and i use the component.I have deployed on tomee server that came with myfaces implemntation of jsf2.But i get the error that the app not can start.I have put int oweb-inf/lib also the common-io.jar and fileuplod.jar fro mapache for upload. but from the log i get :

18-apr-2013 18.28.53 org.apache.catalina.core.StandardContext listenerStartGRAVE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListenercom.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.primefaces.context.PrimePartialViewContextFactory at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:351) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:220) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)Caused by: java.lang.InstantiationException: org.primefaces.context.PrimePartialViewContextFactory at java.lang.Class.newInstance0(Class.java:340) at java.lang.Class.newInstance(Class.java:308) at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:600) at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:468) at javax.faces.FactoryFinder.access$400(FactoryFinder.java:135) at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:792) at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:302) at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:290) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:209) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:332)

Profile

My expertise is in Java EE technology, object-oriented application development, and use of open source frameworks (e.g. Spring , Apache MyFaces). In recent years, I mainly worked in development projects of Java EE applications in Weblogic platform with Oracle database. I primarily involved in framework development and architectural design in these projects.