adf
Tag button


Renders a Button on the page which invokes a method on a server-side Java object using AJAX (it does not force a full-page postback). It can also optionally allow the user to interact with the map (for eg. click on a location, draw a shape, etc) before invoking the method.

For example:
  <a:button id="btn1" mapId="map1" type="button" value="Click Here"
    onclick="javascript:informUser()"
    clientAction="EsriMapPoint"
    serverAction="#{myBean.selectLocation}" />


Tag Information
Tag Classcom.esri.adf.web.faces.taglib.ButtonTag
TagExtraInfo ClassNone
Body Contentempty
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
idfalsetruejava.lang.StringThe component identifier for this component. This value must be unique within the closest parent component that is a naming container.
mapIdtruefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
ID of the associated Map component.
serverActionfalsefalsejavax.el.MethodExpression
(signature must match void methodname())
Method Expression representing the server-side method to invoke when this component is activated. If clientAction attribute is also specified, the expression must evaluate to a public method that takes a MapEvent parameter, and a return type of void. Otherwise, the expression must evaluate to a public method with no parameters, and a return type of void.
clientActionfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
Defines the type of interaction with the Map component (clicking on a location, drawing a shape, etc). Possible values include EsriMapPoint, EsriMapPolyline, EsriMapPolygon, EsriMapRectangle, etc. Please refer to the WebADF's Javascript API reference for a complete list. After the interaction is complete, the server-side method represented by the serverAction attribute is invoked. If clientAction is not specified, the method represented by the serverAction is directly invoked.
defaultImagefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
The image displayed by the component by default.
hoverImagefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
The image displayed by the component when the cursor is hovered over it.
selectedImagefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
The image displayed by the component when it is activated.
renderedfalsefalsejavax.el.ValueExpression
(must evaluate to boolean)
Indicates whether or not the component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
valuefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
The value of the component. The value is used as a text label.
typefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
The component type. Only permitted type is "button". Other types may be supported in the future.
stylefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
CSS style(s) to be applied when this component is rendered.
styleClassfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
Space-separated list of CSS style class(es) to be applied when the component is rendered.
disabledfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Specifies whether the component should be disabled.
toolTipfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
The tool tip displayed by the component.
onclickfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
Javascript code or function that will be invoked when the component is activated.
collectionIdfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
An ID to register in esriToolItemCollection.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.