# <default-value> Element

Specifies this property attribute's default value.

## Syntax

    <default-value>
        theDefaultValue
    <default-value>

## Attributes

None.

## Type

xs:string.

## Hierarchy

Parent: attribute.

Children: None.

## Remarks

If you have set a default value by adding this element and giving it a value, WebLogic Workshop will insert that value automatically when a developer adds your control to an application. If the developer sets a new value, then later deletes the value, WebLogic Workshop will again use the default.

Note that you can only specify a default if you have set the attribute element's required attribute to false. If the required attribute is set to true, WebLogic Workshop assumes that you want a developer using your control to set the value explicitly, and the IDE will prompt them to do so. For "required" attributes, a default value has no meaning. If you add this default-value element to an attribute that is defined as required, your tags XML file will be invalid.

This element is one of several you can use to specify the type of a property attribute's value. The complete list includes boolean, class-name, class-names, date, decimal, enumeration, file-path, integer, QNAME, text, URI, URL, URN, XML, or custom. Note that you may use only one of these types for a given attribute.

Related Topics

Control Property Schema Reference

Tutorial: Java Control