A JavaServer Faces page for a task uses the tag sun:commonTask. This tag provides all the capabilities of the Project Woodstock tag webuijsf:commonTask.
In the example, the sampleCommonTask.jsf file has the following content:
<sun:commonTask
text="Sample Application Page"
toolTip="Sample Application Page"
onClick="return admingui.woodstock.commonTaskHandler('treeForm:tree:applications:ejb',
'#{request.contextPath}/sample/page/testPage.jsf?name=Sample%20Application%20Page');">
</sun:commonTask>
In the actual file, there is no line break in the onClick attribute value.
This file uses the sun:commonTask tag to specify the task. In your own JavaServer Faces pages, specify the attributes of this tag as follows:
The task name that appears on the Common Tasks page.
The text that appears when a user places the mouse cursor over the task name.
Scripting code that is to be executed when a user clicks the task name.