Some common methods that are used frequently while creating the ColdFusion component portlet, such as HelloPortlet.cfc, are:
Method |
Description |
Syntax |
|
|---|---|---|---|
doView() |
This method renders the portlet content. It is called by the portlet container to allow the portlet to generate the content of the response based on its current state. |
{{<cffunction name="doView" returntype="void" output="true"> |
|
doHelp() |
Helper method to serve up the HELP mode. |
{{<cffunction name="doHelp" returntype="void" output="true"> |
|
doEdit() |
Helper method to serve up the EDIT mode. |
{{<cffunction name="doEdit" returntype="void" output="true"> |
|
ProcessAction() |
Called by the portlet container to allow the portlet to process an action request |
{{<cffunction name="processAction" returntype="void" access="public" output="false" hint="Called by the portlet container to allow the portlet to process an action request."> |
|
Init() |
Called by the portlet container to indicate to a portlet that the portlet is being placed into service |
{{<cffunction name="init" returntype="void" access="public" output="false" hint="Called by the portlet container to indicate to a portlet that the portlet is being placed into service."> |
|
processEvent |
This is used to consume the event once it is published. |
|
Sign in to your account