A JavaServer Faces page for page content often uses the tag sun:property to specify a property on a property sheet. This tag provides all the capabilities of the Project Woodstock tag webuijsf:property.
In the example, the sampleResourceLink.jsf file has the following content:
<sun:property> <sun:hyperlink toolTip="Sample Resource" url="/sample/page/testPage.jsf?name=Sample%20Resource%20Page" > <sun:image url="/resource/sample/images/sample.png" /> <sun:staticText text="Sample Resource" /> </sun:hyperlink> </sun:property> <sun:property> <sun:hyperlink toolTip="Another" url="/sample/page/testPage.jsf?name=Another" > <sun:image url="/resource/sample/images/sample.png" /> <sun:staticText text="Another" /> </sun:hyperlink> </sun:property>
The file specifies two simple properties on the property sheet, one above the other. Each consists of a sun:hyperlink element (a link to a URL). Within each sun:hyperlink element is nested a sun:image element, specifying an image, and a sun:staticText element, specifying the text to be placed next to the image.
Each sun:hyperlink element uses a toolTip attribute and a url attribute. Each url attribute references the testPage.jsf file that is used elsewhere in the example, specifying different content for the name parameter.
You can use many other kinds of user interface elements within a sun:property element.