Including primefaces in CAF

Hello All,

Can we include primefaces library into CAF page? or How we can use the primefaces in CAF page?

Regards,
Shashi Kumar

Official certification that CAF is compatible with primefaces has not been done. If that is something you are interested in, then you or your customer may want to make their interest in that area known with their own feature request in brainstorm @ https://empower.softwareag.com/Products/FeatureRequestsInBrainstorm/default.asp

With that said, if you are using OpenCAF with MWS version 9.9 or later, then it might work if you copy the primefaces jar file to the WEB-INF/lib folder of your project. Then you can try using their tags in your .xhtml page templates.

For, example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"  
    xmlns:p="http://primefaces.org/ui">  
  
    <h:head>  
  
    </h:head>  
      
    <h:body>  
        <h3>Using spinner control from primefaces library</h3>
        <p:spinner />  
        
        <h3>Using calendar control from primefaces library</h3>
        <p:calendar id="calendar" ></p:calendar>
          
    </h:body>  
</html>  
1 Like