RemoveAllMarkersFromItem
works with the marker manager to remove all markers from a particular item.
Class Name |
|
---|---|
Component |
|
Input Parameters
itemId
The item ID that has markers to be removed. If omitted, the value indicated in the item
input parameter is used.
item
The item that has markers to be removed. If omitted, the active item is used.
markerManager
The marker manager component to use. If omitted, the marker manager indicated in the servlet bean’s repositoryMarkerManager
property is used.
markerPropertyName
The property on the profile whose markers are to be removed. If omitted, the servlet bean uses the default value specified in its defaultMarkerPropertyName
property.
Output Parameters
markerCount
Contains the number of markers removed by this servlet bean’s execution.
errorMsg
Contains any error messages generated during the servlet bean’s execution.
Open Parameters
output
Rendered when all markers are removed from the item.
error
Rendered when an error occurred during servlet bean execution.
Example
The following example removes all markers from the current item. When the markers are removed, the user sees a message that states the number of markers that were removed.
<dsp:droplet name="/atg/markers/droplet/RemoveAllMarkersFromItemDroplet"> <dsp:param name="output"> There were <dsp:param name="markerCount"/> markers removed from your item. </dsp:param> </dsp:droplet>