A InputButtonTag creates an input button element on the HTML page.
Attribute | Description | Default value |
---|---|---|
type | Type of button. This attribute can have the following values: button, submit, reset, and image. | button |
dataName | Name of the DataField in the Context hierarchy that is set when user clicks the button | null |
event | Sets the value in the button's form field named "dse_nextEventName" with the attribute value and submits the form | null |
onClick | Process to be used if a process other than dse_nextEventName is required | null |
value | Label of the button or the path to the image. For a label, the value of the attribute is used as a key to access the text in the locale resource bundle. | null |
style | Style for the text area | null |
custom | Adds attributes to the input element. The following is the format of this attribute: custom="att1Name=\"att1Value\ "att2Name=\"att2Value\"..." | null |
The following is an example of using InputButtonTag:
<H1>Using the Button Tag</H1> <dse:form nextEventName="ok"> <table border="1"> <TR><TD><dse:button event="cancel"/></TD> <TD><dse:button type="submit" value="OK"/></TD></TR> <TR><TD><dse:button event="store" value="Store" dataName="pressedButton"/></TD> <TD><dse:button value="Continue" dataName="pressedButton" onClick="this.form.submit();"/></TD></TR> <TR><TD><dse:button event="info" type="image" value="/images/935.gif"/></TD> <TD><dse:button type="reset" value="Reset"/></TD></TR> </table> </dse:form>