For the complete experience, please enable JavaScript in your browser. Thank you!

  • Creative Cloud
  • Photoshop
  • Illustrator
  • InDesign
  • Premiere Pro
  • After Effects
  • Lightroom
  • See all
  • See plans for: businesses photographers students
  • Document Cloud
  • Acrobat DC
  • eSign
  • Stock
  • Elements
  • Marketing Cloud
  • Analytics
  • Audience Manager
  • Campaign
  • Experience Manager
  • Media Optimizer
  • Target
  • See all
  • Acrobat Reader DC
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player
  • All products
  • Creative Cloud
  • Individuals
  • Photographers
  • Students and Teachers
  • Business
  • Schools and Universities
  • Marketing Cloud
  • Document Cloud
  • Stock
  • Elements
  • All products
  • Get Support
    Find answers quickly. Contact us if you need to.
    Start now >
  • Learn the apps
    Get started or learn new ways to work.
    Learn now >
  • Ask the community
    Post questions and get answers from experts.
    Start now >
    • About Us
    • Careers At Adobe
    • Investor Relations
    • Privacy  |  Security
    • Corporate Responsibility
    • Customer Showcase
    • Events
    • Contact Us
News
    • 3/22/2016
      Adobe Summit 2016: Are You An Experience Business?
    • 3/22/2016
      Adobe Announces Cross-Device Co-op to Enable People-Based Marketing
    • 3/22/2016
      Adobe and comScore Advance Digital TV and Ad Measurement
    • 3/22/2016
      Adobe Marketing Cloud Redefines TV Experience
Run a ColdFusion portlet on WebSphere Portal Server / 

Build a portlet for a local server

Adobe Community Help


Applies to

  • ColdFusion

Contact support

 
By clicking Submit, you accept the Adobe Terms of Use.
 

To write a ColdFusion portlet:

  1. Create a CFC that extends the CFIDE.portlets.ColdFusionPortlet package. For example, the following HelloPortlet.cfc extends this package and defines the doView() and doHelp()methods:

    <cfcomponent extends="CFIDE.portlets.ColdFusionPortlet">

    <cffunction name="doView" returntype="void" output="true">
    <cfargument name="renderRequest" type="any" required="true" hint="A
    javax.portlet.RenderRequest java object">
    <cfargument name="renderResponse" type="any" required="true" hint="A
    javax.portlet.RenderResponse java object">
    <cfoutput>
    Hello World ColdFusion Portlet
    </cfoutput>
    </cffunction>
    <cffunction name="doHelp" returntype="void" output="true">
    <cfargument name="renderRequest" type="any" required="true" hint="A
    javax.portlet.RenderRequest java object">
    <cfargument name="renderResponse" type="any" required="true" hint="A
    javax.portlet.RenderResponse java object">
    <h1>ColdFusion Help</h1>
    <p>This is a Help message for the Hello Portlet.</p>
    </cffunction>
    </cfcomponent>

     

  2. Save HelloPortlet.cfc }}in {{<jboss_server_home>\server\default\deploy\cfusion.ear\cfusion.war\portlets\hello.
  3. Define HelloPortlet.cfc in portlet.xml, which is located in the WEB-INF folder of ColdFusion web root. The portlet.xmlfile looks similar to the following:

    <?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>ColdFusionPortlet</portlet-name>
    <display-name xml:lang="en">CF Hello Portlet</display-name>
    <portlet-class>coldfusion.portlet.ColdFusionPortlet</portlet-class>
    <init-param>
    <name>cfcName</name>
    <value>portlets.hello.HelloPortlet</value>
    </init-param>
    <supports>
    <mime-type>text/html</mime-type>
    <portlet-mode>VIEW</portlet-mode>
    <portlet-mode>HELP</portlet-mode>
    </supports>
    <portlet-info>
    <title>ColdFusion Hello World Portlet</title>
    </portlet-info>
    </portlet>
    </portlet-app>

    The portlet is defined and registered for portlet definition, with targeted cfcName defined as the INIT parameter. The INIT parameter value must be from the web root of ColdFusion.

  4. Run the JBoss server by running one of the following commands: On UNIX{{<JBoss_home>/bin/run.sh}} On Windows<JBoss_home>\bin\run.bat}}By default JBoss only binds to localhost. You can have it bind to any IP address by running {{bin/run.sh -b 0.0.0.0 }}on UNIX or {{bin/run.bat -b 0.0.0.0 on Windows.
  5. Launch the JBoss portal server. By default, JBoss binds to port 8080, so launch the server using the URL: http://<matching_IP>:<port>/portal/. For example: http://127.0.0.1:8080/portal.
  6. Log in to the portal by clicking the login link in the upper-right corner. The default credentials are admin/admin.
  7. Click the Admin option in the upper-right corner.
  8. Click the Portlet Definitions tab. The portlet name, CF HelloPortlet is listed here.
  9. Create an instance of this portlet by clicking Create Instance under Actions.
  10. Specify the instance name.
  11. Add the instance display name.
  12. Click the Portal Objects tab.
  13. Create a new portal page by specifying the portal name in the Create a portal named box.
  14. Select the created portal page from the list of portals.
  15. From Actions, select Page Layout.
  16. From the Portlet instance associated with this Window list, select the portlet instance you created in step 10.
  17. In the Page Layout section, click Add for the center region or left region to add the portlet container in the required area.
  18. Go back to the Portal Objects > Portals page and select Make Default option to set the new portal as default.
  19. Click the Portal option on the upper-right corner to view the new portal page containing the portlet.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy

Choose your region United States (Change)   Products   Downloads   Learn & Support   Company
Choose your region Close

Americas

Europe, Middle East and Africa

Asia Pacific

  • Brasil
  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Cyprus - English
  • Česká republika
  • Danmark
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Greece - English
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • Malta - English
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • Southeast Asia (Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam) - English
  • 台灣

Commonwealth of Independent States

  • Includes Armenia, Azerbaijan, Belarus, Georgia, Moldova, Kazakhstan, Kyrgyzstan, Tajikistan, Turkmenistan, Ukraine, Uzbekistan

Copyright © 2016 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

AdChoices