Building a Live Twitter Portlet in 5 minutes

John Brunswick from Oracle demonstrates how easy it is to build a Twitter portlet and consume it in Oracle WebCenter without writing a single line of code.

In this easy to follow youtube video John walks us through the steps end-to-end, covering in detail how to:

  • Consume an XML feed in Oracle JDeveloper
  • Generate the XSD using JDeveloper
  • Create an ADF URL data control
  • Visualize the Twitter data as a table on a new JSF page
  • Expose the JSF page as a standards-based portlet (JSR 168/WSRP 2.0)
  • Register the WSRP 2.0 portlet producer with WebCenter
  • Drop the Twitter portlet onto a WebCenter page using Oracle Composer

Patch Set 2 for WebCenter Developers

With new versions and updates of the JDev/ADF and WebCenter stack, I get the question very often: how can I patch my development environment to get to the latest and greatest version?

The answer has been consistent: we don’t patch JDeveloper in-place. You need to download the latest version of JDeveloper (be sure to select the Studio Edition). To get the latest version of the WebCenter extension, all you need to do is Help > Check for Updates. You find the SOA and WebCenter extensions are under a dedicated Fusion Middleware section.

What happens with apps built with previous versions of the IDE? All you need to do is open them in the latest version of JDev, and your apps will be automatically migrated.

Here is the list of the 11g R1 patch set 2 ( new features and bug fixes in JDeveloper and ADF.

New Sample for Download: Polling

Martin Deh from the Oracle Fusion Middleware “A-Team” published ( OTN account needed) a very compelling Polling sample.

The sample contains two task flows: a “client” (poll taker) and an “admin” console.  Currently the task flows implement the following features:

  1. Ability to define and modify Poll Questions and Poll Choices
  2. Ability to provide a fixed number of responses (no less than 1 and no more than 10)
  3. Ability to select multiple responses or single response behavior
  4. Poll can only be taken by each user one time (multiple submissions is not in scope)
  5. Ability to select time range for when the poll would be active
  6. Ability for the administrator to decide to display a chart of results after user submits poll
  7. Ability for admin to choose Pie Chart or Bar Chart

The above sample provides a great starting point to implement custom polling functionality.

Note: Including polling functionality in future releases of Oracle WebCenter is on the road map.

Poll Question

Poll Question

Polling Results

Polling Results

Poll Administration

WebCenter Development Environment – Minimum and Recommended Requirements

The other day a question was posted on the Oracle WebCenter Suite Group on LinkedIn about the minimum and recommended requirements for the WebCenter development environment.

Before considering what the actual hardware requirements are, it makes sense to quickly glance through what we mean by the development environment, what needs to be installed, and what are the things you can do. In addition, you should also consider what back-end servers are needed and whether those are required or optional.

To make it easier, here is a slide that gives a high-level overview of the WebCenter development environment (click on it to enlarge it).

First, you have to install JDeveloper with the WebCenter Extension (through Help > Check for Updates). This will allow you to do a lot of things, including:

  • build customizable applications with Composer
  • build, deploy, and test JSR 168 portlets
  • consume WSRP 1.0 and WSRP 2.0 portlets
  • integrate content from your file system (for development and testing purposes)
  • test search

In addition, most enterprises have an IMAP or MS Exchange Email server hosted, that you can connect to and integrate into your applications.

If you need social computing services, such as discussions, wikis, blogs, you need to install the back-end servers for these services. If you would like to leverage people connection, tagging, linking, you will need a DB.

Now, to get to the original question: what is the minimum/ideal requirement to run all this: if all you need to run is JDeveloper with the WebCenter extension, 2GB RAM should be sufficient. If you want to fire up an XE database on your laptop, and want to run multiple browsers with email and MS Office on it, you should have 4GB RAM (and ideally an O/S that can see all of it). As for hard disk: JDeveloper requires somewhat more than 1GB, and the WebCenter Extension is in the 200MB range. So you can count with 2GB as the absolute minimum.

Last but not least, a monitor with good resolution, possibly an external monitor (or two) doesn’t hurt either.

Two-day WebCenter Training

Be among the first ones who attend the brand new 2-day WebCenter Training, titled: Oracle WebCenter 11g: Introduction to Custom Applications. This is a so-called Live Virtual Class (LVC), that is: you have a live instructor teaching the class, but there’s no travel required; you can attend the class remotely. Here you can enroll.

About the class

This course introduces you to Oracle WebCenter’s components and teaches you how to add these components to any application to create content-rich, collaborative, customizable applications. In this course you start with an ADF application, then enhance it with features from WebCenter Framework, Composer, and Services. Using Oracle JDeveloper with the embedded WebCenter Framework extension, you learn how to add portlets, documents, discussion forums, tags, links, and search to the existing application. You also learn how to enable users to compose and edit WebCenter application pages at run time. Solving the practices results in a small, concise, feature-rich WebCenter application.

Learn to:

  • Use predefined WebCenter task flows to add documents, discussions, tags, links and searching to custom application
  • Wire traditional ADF components, WebCenter task flows and portlets to display correlated information
  • Use the JCR data control to access documents stored in a content repository
  • Build and manage customizable and personalizable application pages
  • Consume standard-based portlets in a WebCenter application
  • Describe the main functionality of WebCenter Spaces

LVC is a fairly new training format for Oracle University, here is a brief overview of it:

Oracle University’s Live Virtual Class is comparable to our traditional in – class training without the need for expensive travel. With the latest in collaborative technology, top instructors, cutting-edge curriculum, and hands-on labs, we offer an exciting combination of traditional content and interactive learning.
live virtual class
  • Same expert instructors as our classroom training
  • Same content – enhanced for online delivery
  • Save time and money by avoiding expensive travel
  • Efficient training for coworkers across multiple locations
  • Classes available both day and night
  • Train at home, office, or anywhere you have an Internet connection
  • Lab access for full duration of class
  • 100% Student Satisfaction Program

Oracle WebCenter 11g Handbook Available

The WebCenter 11g Handbook: Build Rich, Customizable Enterprise 2.0 Applications is now available in online stores and possibly in your nearest book store too.

If you are evaluating the WebCenter Framework, Social Computing Services, or are simply curious what WebCenter is all about – flipping through the book is a pretty time and cost effective way of getting the big picture. If you are using WebCenter, there are a lot of samples that walk you through the capabilities.

Here is some extra information that may help you decide if this is the right book for you. The high level table of contents is at the bottom of the post, and here is the detailed TOC. This is a podcast (mp3), published by McGraw Hill about the book. And here is a sample chapter from a snap shot taken shortly before the book went to print, so it’s very close to the actual one in the book: Chapter 11 – Runtime Customization.

Table of contents

Part I: Introduction to Oracle WebCenter and the Application Development Framework
Chapter 1. Business Application Development: The Journey to WebCenter
Chapter 2. The WebCenter Development Environment
Chapter 3. Oracle Application Development Framework
Part II: Building WebCenter Applications
Chapter 4. Building Your First WebCenter Page
Chapter 5. Consuming and Building Portlets
Chapter 6. Inter-component Communication
Chapter 7. Integrating Content Systems
Chapter 8. Overview of WebCenter Web 2.0 Services
Chapter 9. Social Web 2.0 Services–New Concepts in the Application Landscape
Chapter 10. Setting Up Your Development Environment for Success
Part III: Tailoring Your Applications
Chapter 11. Run-Time Customization
Chapter 12. Resource Catalog
Chapter 13. Skinning Your WebCenter Applications
Chapter 14. Metadata Services Framework
Chapter 15. Extending Oracle Composer
Chapter 16. MDS Under the Hood of WebCenter
Part IV: Administering Your Applications
Chapter 17. Installing and Managing WebCenter
Chapter 18. Security
Chapter 19. Deployment
Part V: Oracle Applications Integration
Chapter 20. Extending Oracle Applications with WebCenter
Chapter 21. Looking to the Future with WebCenter and Fusion Applications

JDeveloper 11g R1 Patch Set 1: Hundreds of New Features

Most of the WebCenter new features in PS1 are pretty fundamental, complex big ticket items. On the JDeveloper/ADF side, however, there are literally hundreds of new features.

Here are the ones on top of my list:

Simplified and improved creation and management of contextual events (contextual events are used for inter-component communication):

  • Create an ADF contextual event from a faces button, managed bean or JavaScript as well as from any ADF value binding, action binding or navigator binding.
  • Edit contextual events using the new contextual events tab in the bindings editor.
  • Declaratively specify raise conditions for an event.
  • Pass a binding value, data control method return, managed bean method return value, string literal or other expression as an event payload.
  • Choose to subscribe to an event only if it’s raised by a particular component.
  • Declaratively specify handle conditions for an event.

ContextualEventsImproved Design time experience: JSF visual editor and design time EL execution:

  • Improved feedback on drop zones
  • Clearer presentation of the name of the object under cursor
  • Significant performance improvements
  • Improved ability to work with components that can be collapsed (ShowDetailItem)
  • EL that is resolvable at design time now renders in the visual editor. New options for handling EL that cannot be resolved at design time include: hide the EL completely, show dummy data, show the EL (either in full or abbreviated form).

VisualEditorJSON Support: New support for editing JSON files, including creating new JSON files, syntax highlighting, structure pane, brace matching, and code folding.

New Carousel and Improved Hierarchy Viewer components

CarouselHere you find a (more) complete list of new features.