Contents for Establishing Interportlet Communications
Overview of Interportlet Communications
The WebLogic Portal IPC Model
Event Handlers
Portal Event Actions
Custom Events
Event Actions
How IPC is Implemented
Setting Up the Examples
Parts of a Portal Application
Step 1: Create the Domain
Step 2: Create the Enterprise Application
Step 3: Create the Portal Web Application (Project)
Summary
Next Steps
A Simple Example of Establishing IPC
Before You Begin
Step 1: Create the Portlets
Create the JSP FIles and Portlets
Create the Backing File
Attach the Backing File
Add the Event Handler to bPortlet
Step 2: Test the Application
Summary
Establishing IPC by Using Custom and Page Flow Events
What is a Custom Event?
What is a Page Flow Event?
Establishing Interportlet Communications by Using Custom and Page Flow Event Handlers: An Example
How this Example Achieves IPC
Before You Begin
Note on Entering Text in Dialog Boxes
Step 1: Create the File Structure
Summary
Step 2: Create the Backing Files
Summary
Step 3: Create the Customer Lookup Results Portlet
Create the Page Flow (FindCustomerController.jpf)
Create findCustomer.jsp
Create result.jsp
Create the Customer Lookup Portlet
Attach the Backing File
Create the Event Handlers
Step 4: Create the Orders Lookup Portlet
Create the Page Flow (FindOrderController.jpf)
Create findOrderForm.jsp
Create orderResults.jsp
Create the Portlet File
Attach the Backing File
Create the Event Handlers
Summary
Step 5: Create the Customer Lookup Portlet
Create the Page Flow (FindCustomerController.jpf)
Update index.jsp
Create result.jsp
Create the Portlet File
Attach the Backing File
Create the Event Handler
Summary
Step 6: Create and Populate the Portal File
Create the Portal File
Add Portlets to the Portal
Step 7: Test the Portal
Understanding Backing Files
What are Backing Files?
Which Controls Support Backing Files?
How Backing Files are Executed
Other Execution Notes
Thread Safety with Backing Files
Creating a Backing File
Adding a Backing File to a Portlet
Adding the Backing File by Using WebLogic Workshop
Adding the Backing File Directly to the .portlet Code