Portlet Factory, Version 6.1.2


 

Attribute Setter builder inputs

This topic describes the inputs for the Attribute Setter builder.

Table 1. Attribute Setter builder inputs
Input name Description
Name Name for this builder call. The WebSphere Portlet Factory Designer displays this name in the builder call list.
Page Location

Use the Page Location input to specify the page or pages on which this builder call will act.

Attribute List Select the name of the HTML attribute that you want to add or modify for the HTML elements pointed to by the Page Location syntax and enter a value for the selected attribute.

For more information about the attributes listed in the Name column, refer to HTML documentation.

Overwrite Rule If the elements on which this attribute setter operates already have the specified attribute set, do one of the following:

Overwrite HTML value

Replaces existing attribute value with the specified attribute value.

Prepend new value

Adds the specified value to front of the existing attribute value. Typically used for building JavaScript expressions. For example, onClick="newJavaScriptExpression";"oldJavaScriptExpression".

Append new value

Adds the specified value to end of the existing attribute value. Typically used for building JavaScript expressions. For example, border="oldJavaScriptExpression";"newJavaScriptExpression"

Don't overwrite HTML value

Does not set the attribute value.
Value-less Attributes Select how this builder should interpret an attribute for which no value is specified at regeneration time. You can choose one of the following:

Ignore the attribute

To leave the attribute is it presently is

Remove the attribute

To strip the attribute from the HTML

Set to attribute name

To assign an XHMTL-style to the attribute value. For example: attr_name="attr_name Use this input for doing things like disabling inputs, enabling check boxes, and so on, which use a valueless attribute in old-style HTML.

Set to empty string

To assign the attribute value an empty string. For example: attr_name=""

Note: Most browsers allow values to be attached to HTML attributes which are technically valueless. In XHTML, the pattern attr_name="attr_name" replaces valueless attributes. Thus you might create a disabled input as: <input type="text" name="foo" disabled="disabled" />.

Advanced

Append/Prepend Separator Enter the separator to use when an attribute value is prepended or appended.

The default separator is a comma (,) character.

Parent topic: Attribute Setter builder


Library | Support |