Documentation
JSFToolbox

Search 

Contents

  1. Introduction
  2. Getting Started
  3. Developing Web Sites
  4. Using Components
  5. Internationalization
  6. Code View Support
  7. Design View Support
  8. Keyboard Shortcuts
  9. Tag Object Toolbars
  10. JSF Server Behaviors
  11. Property Inspectors
Selected 12. JSF Tag Reference

10. JSF Core Tag Reference

Contents > JSF Core Tag Reference > f:attribute

f:attribute

The Attribute tag is a name/value pair that sets the value of a named attribute on the component associated with the enclosing tag. The body content of this tag must be empty.

Example

<h:commandButton id="button1">
  <f:attribute name="value" value="Click Me"></f:attribute>
</h:commandButton>

HTML Output

<input id="form1:button1" name="form1:button1" type="submit"
  value="Click Me" onclick="clear_form1();"/>

Tag Attributes

name Text
Required
The name of the component attribute to be set.
value Text
Required
The value attribute sets the current value for this component.