PrimeFaces UI Components in Oracle ADF

Hi,

Using some PrimeFaces UI components in combination with ADF Faces UI Components?

This weekend I have been curious about if I can use the PrimeFaces UI components such as p:textEditor or p:growl within Oracle ADF without crashing ADF Faces and viceversa.



At the beginning, I tried to use p:growl is very similar to af:message as it uses the FacesMessage framework underneath.

Obviously, as running within ADF Faces the messages were displayed with the ADF Faces Message style.

However, the PrimeFaces UI components like the ADF UI Faces Components has its own API (Java + JavaScript) which makes easier to invoke them!.

In the example in my GitHub Repository you will find a simple ADF View Controller Project which makes use of Prime Faces with Oracle ADF.

https://github.com/DanielMerchan/adf

Remember that this is not officialy supported by Oracle and it can produce issues as both Faces implementation uses JavaScript on behind which can conflict. In addition, this is just a simple test, maybe a complex scenario can break everything :).

But, at this point of my test looks that the can work together!.

How to add PrimeFaces to Oracle ADF? Easy:
  1. If using Maven Dependency or JDeveloper Library Dependency just add the PrimeFaces JAR

    <dependency>
                <groupId>org.primefaces</groupId>
                <artifactId>primefaces</artifactId>
                <version>6.2</version>
                <type>jar</type>
                <scope>compile</scope>
            </dependency>
  2. Add the PrimeFaces Namespace to your Facelets Page. Use the PrimeFaces Components in combination with the ADF Components and the PF API if needed.

    
        
            
                
                
                
                    
                
                
                        
                    
                
                    function testPFGrowl(evt) {
                        PF('growlWV').renderMessage({"summary":"summary goes here",
                                 "detail":"detail goes here",
                                 "severity":"warn"})
                    }
                
            
        
    
Note: My recommendation is not to do it, do not mix Faces implementations as you will not have support and also issues can be very complex to debug.

Regards.

Comments

  1. I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here.Same as your blog i found another one Oracle Fusion Financials.Actually I was looking for the same information on internet for Oracle Financials Cloud and came across your blog. I am impressed by the information that you have on this blog. Thanks once more for all the details.


    ReplyDelete
  2. Thanks for sharing this blog. The content is beneficial and useful. Very informative post. Visit here to learn more about Data Mining companies and Data analytics Companies.

    ReplyDelete

Post a Comment

Popular posts from this blog

OJET: Inter-Module communication in TypeScript Template

OJET: Build and Deploy in an Application Server

OJET: Select All options using only Checkboxset