Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 909

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
ColdFusion Portlets
17
In the Page Layout section, click Add for the center region or left region to add the portlet container in the required area.
Go back to the Portal Objects > Portals page and select Make Default option to set the new portal as default.
18
Click the Portal option on the upper-right corner to view the new portal page containing the portlet.
19
Portal displaying CFHelloPortlet
Access remote ColdFusion portlets (WSRP)
To access remote ColdFusion portlets and expose them as web services using the Web Service Response Protocol
(WSRP), configure the following:
• WSRP Producer: The Web Service Response Protocol (WSRP) is used to create the producer of the WSDL. A
WSRP producer can be any ColdFusion standalone, multiserver, or J2EE instance.
• WSRP Consumer: Portlets are exposed as web services, which are then consumed by the portal server (JBoss).
Configure the WSRP producer
Create the ColdFusion HelloPortlet.cfc as described in step 1 of
1
2
Save the
HelloPortlet.cfc
<ColdFusion_webroot>/portlets/hello/
Define
3
HelloPortlet.cfc
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
version="1.0">
<portlet>
<description xml:lang="en">This Portlet is a Hello World CF Portlet</description>
<portlet-name>HelloPortlet</portlet-name>
<display-name xml:lang="en">Hello Portlet</display-name>
<portlet-class>portlets.hello.HelloPortlet</portlet-class>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-mode>HELP</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<portlet-info>
<title>Hello ColdFusion Portlet</title>
<short-title>CF Hello</short-title>
<keywords>hello, portlet</keywords>
</portlet-info>
</portlet>
</portlet-app>
After updating cf-wsrp-portlet.xml, restart your ColdFusion instance.
file in the following directory:
in the
cf-wsrp-portlet.xml
Last updated 1/20/2012
"Build a portlet for a local
file.
904
server" on page 899.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents