# com.bea.wlw.netui.tags
IAttributeConsumer Interface

public interface IAttributeConsumer

This interfaces is implemented by tags that allow attributes to be set externally to the tag. The HTML tags for example, allow certain attributes to be set by children tags through the use of the `attribute` tag.

All Known Implementing Classes
  `TextBox`, `TextArea`, `SelectOption`, `Select`, `RadioButtonOption`, `Label`, `ImageButton`, `Anchor`, `Image`, `Hidden`, `Form`, `FileUpload`, `CheckBoxOption`, `CheckBox`, `Button`, `Base`

## Method Summary

`public void` | `setAttribute`(`String` name, `String` value) Set an attribute value on the implementing class.

## Method Detail

### setAttribute(String, String) Method

    public void setAttribute(String name,
                             String value)
         throws JspException

Set an attribute value on the implementing class. The `name` represents the name of the attribute. The `value` represents the value and may contain an expression. The `facet` is optional and may be used by complex types to target the attribute to a sub part of the generated markup. This method may result in errors being generated.

#### Parameters

name
  The name of the attribute. This value may not be null or the empty string.

value
  The value of the attribute. This may contain an expression.

#### Exceptions

``JspException``
  A JspException may be thrown if there is an error setting the attribute.