Building JSF Portlets

In the previous post I showed how you can take any JSF application or ADF task flow and expose them as portlets. It’s a very powerful capability, and is used mostly when you have already built your page or application, and making a portlet out of it is more of an after-thought.

Using the same JSF Portlet Bridge (JSR 301) under the covers, you can use the portlet creation wizard in JDeveloper to build JSF/ADF portlets very easily. You don’t necessarily have to deal with the JSR 168 APIs, you can directly take advantage of the power of ADF.

Steps:

  • 0:00-1:30 Building the JSF portlet skeleton using the portlet creation wizard.
  • 1:30-3:30 Creating the model for the portlet application: using ADF Business Components (BC) to access a back-end database, creating the data control
  • 3:30-5:50 Creating a stacked chart as the portlet view using ADF Data Visualization Technology (DVT)
  • 5:50-7:30 Deploying the portlet application
  • 7:30-9:46 Building a portlet consumer application: registering and consuming the producer

Enjoy!

7 Responses

  1. […] the Oracle Portal environment  and inject some new technology into your pages, you can use the JSF Portlet Bridge to build JSF/ADF portlets or “portletize” JSF/ADF applications. The ultimate promise of […]

  2. Peter,

    I really need your help. I’m trying to build a simple JSF portlet.

    I watch your screencasts and do exactly the same steps you do, but when comes the step that I need to right click the JSF page to “create portlet entry”, the option is not there. The dialog simply doesn’t have the option. Do I need to install anything in the Jdev to make this option available?

    I searched all over the internet and I didn’t find a solution for this problem.

    I’m working with the new Jdeveloper 11g (production).

    Please Answer me.

  3. Erik,

    WebCenter and SOA are not part of JDeveloper 11g (11.1.1.0.0). The Fusion Middleware in its entirety is expected be released in the first half of 2009.
    What you can do in the meantime is, you can use the Technology Preview 4 version of JDeveloper, that contains the entire stack.

    Hope this helps!
    Peter

  4. I’m trying to get to the point where I can develop a WebCenter / Portal site. I don’t know Java very well, but I’m learning fast with JDeveloper.

    I don’t know the specific tools to use to end up with a WebCenter / Portal Site.

    I think the idea is to create a portlet in Jdeveloper and then consume it with a JSF page.

    I’m using Jdev version 11g, but I’m not sure if this version is too new.

    Any tips would be greatly appreciated

  5. I’m using JDeveloper 11g TP4 and I’m getting this message:

    WARNING: WARN_NO_USERS_PATTERN
    oracle.security.idm.ObjectNotFoundException
    at oracle.security.jps.internal.idstore.xml.idm.IdmXmlIdentityStore.searchUsers(IdmXmlIdentityStore.java:381)

    Did I miss something out?

    • Aleksandar,

      Usually warnings are not too serious in developer preview releases. Does this cause issues in your application? Soon you’ll be able to test this using the production release.

      Peter

  6. Hi Peter,
    I have a small problem while portalizing a JSF application Using Create Portlet Entry option of 11g JDeveloper. The option works well for most of the applications but as soon as i use the Ajax command button in JSF (i.e ) the portlet page returns the following error
    Portlet Error: Could not get markup. The cookie or session is invalid or there is a runtime exception. I request you to kindly let me know if this component of JSF is not supported in JSR-168 portlet or if this is a configuration issue

Leave a reply to progkcp Cancel reply