Configuring Portlets

CFML Portlets

Configuring a CFM application

The Portlet.xml file is the typical porlet XML file which you can read about in the specification if you want to get all fancy. In order to leverage the CFML portlet bridge ensure the portlet class should be com.cfinnovate.portlet.CfmPortlet.

Then you will want to add init parameters for the bridge to know where to send requests. You will also want to create a param for the apprRoot (note your portlet apps DO NOT need to be in WEB-INF):

The portlet bridge will implicitly call the "mode" file if a Portlet mode is not configured. In other words is the portlet mode is view The portlet bridge will call  /WEB-INF/portlets/example/view.cfm. If you want to override this behaviour, for example you want to use a framework, simply create an init parameter of the portlet mode with a value of the path of the file you wish called.

Full Porlet.xml Example

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.