README

Path: README
Last Update: Wed Sep 27 14:00:12 MDT 2006

WLP On Rails

Render WebLogic Portal Portlets in Rails

Include (render) portlets from WebLogic Portal in a rails app.

This plugin adds a mixin to ActiveView::Base to allow, for example:

   <%= render :portlet=>'foo.portlet' %>

This will add the required html and javascript to include the "foo" portlet in your view. This is equivalent to Portal’s JSP tag:

   <render:portalFacet path='foo.portlet' .../>

Portlets can be rendered in-line (via ajax) or embedded (in an iframe).

See: WeblogicPortal::RenderPortlet

Proxy

To enable cross-site AJAX rendering, this plugin also includes a proxy to allow Rails to process requests to the Portal server. The controller proxies requests to Portal, and rewrites urls in the body of returned html. Cookies and other headers are also passed through.

See: WeblogicPortal::ProxyController

Configuration

Installing the plugin should copy a weblogic_portal.yml file into your project’s config directory. Configuration for the render mixin goes in there. Check that file for more details. This file is required, and must at least contain a setting for base_url.

See: WeblogicPortal::Configuration

[Validate]