
Select
Components User's Guide
111
5
Complete the Insert Select Component dialog box. See "Select Properties" on page
111 for more information.
6
Click
OK
.
Manually
To insert the Select component manually:
1
Open the file to which you want to add the component.
2
Add the following to the point in the file where you want the content snippets to
appear:
<nexus:component classid="nexus/components/Select" code="
path to the
nexusComponents.jar file
" select="
property
">
Where
property
is any of the values described in "The Select Component Structure"
on page 108, and the code property is set to the path in Collage to the
nexusComponents.jar file. By default, this file is stored in
/root/System/Components/nexusComponents.jar.
You can also set this property
to:
code="$nexusComponents"
which will resolve to the correct path.
3
For each possible value of the property defined by the
select
attribute, define the
content as follows:
<nexus:select "
value
">
Content
</nexus:select>
4
Optionally, to define content that will display when no value is defined for the property
specified
by the Select property, add the following line:
<nexus:select "">
Content
</nexus:select>
5
Add the following closing tag to complete the component:
</nexus:component>
Select Properties
Property Value Description
classid
Always set to
"nexus/
components/Select"
Code must point to the component class file inside the JAR file
that is needed to implement the component. This property is
required.
code
Always set to the path in
Collage to the
nexusComponents.jar file,
such as
"/System/
Components/
nexusComponents.jar"
The archive where the component class file is stored. By
default, this is stored in:
/
root
/System/Components/
nexusComponents.jar
. You can also set this property to:
code="$nexusComponents"
which will resolve to the correct
path.
Commentaires sur ces manuels