## DEFAULT render-kit

Link Renderer for Command Component

## Description

Render an HTML "a" anchor element. Render "#" as the value of the "href" attribute. Render javascript that is functionaly equivalent to the following as the value of the "onmousedown" attribute: "document.forms[FORM_NUMBER]['CLIENT_ID'].value='CLIENT_ID'; document.forms[0]['PARAM1_NAME'].value='PARAM1_VALUE'; document.forms[0]['PARAM2_NAME'].value='PARAM2_VALUE'; document.forms[FORM_NUMBER].submit()" where FORM_NUMBER is the number, starting at 0 of the form in which this link resides, CLIENT_ID is the clientId of the UICommand component, PARAM*_NAME and PARAM*_VALUE are the names and values, respectively, of any nested UIParameter children. If the "styleClass" attribute is specified, render its value as the value of the "class" attribute. Render any non-UIParameter children as normal inside of the "a" element. These will appear as the link text. Render an "input" element of "type" "hidden" for each of the nested UIParameter children, taking the name and value properties from each one in turn.

### Note:

Attributes with a `pass-through` value of `true` are not interpreted by the renderer and are passed straight through to the rendered markup. Attributes with a `pass-through` value of `false` are interpreted renderer.

Attributes
attribute-name | pass-through | attribute-class | description
--- | --- | --- | ---
`style` | true | `java.lang.String` | CSS style(s) to be applied when this component is rendered.
`styleClass` | false | `java.lang.String` | Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup.
`title` | true | `java.lang.String` | Advisory title information about markup elements generated for this component.
`onclick` | true | `java.lang.String` | Javascript code executed when a pointer button is clicked over this element.
`...` | ... | `...` | ...

Copyright © 2002-2004 Sun Microsystems, Inc. All Rights Reserved.