This example also shows the definition of a default button. We
define the OKbutton as default.
The assignment is made by scripting (<% %>) and has to be
done where the button is defined.
<hbj:form
id="myFormId"
method="post"
target="_blank"
encodingType="multipart/form-data"
action="/htmlb/servlet/com.sapportals.htmlb.test.MyTestJsp1Test"
>
This form submits to a new web client window <br>
because of 'target=_blank'.<br><br>
<hbj:inputField
id="myInputField1"
type="String"
invalid="false"
width="310"
value="After editing press <Enter> to submit"
visible="true"
disabled="false"
required="true"
maxlength="30"
size="50"
>
</hbj:inputField>
<br><br>
<hbj:button id="oKbutton"
text="OK"
onClick="onOKClick"
design="EMPHASIZED"
width="100"
>
<% myFormId.setDefaultButton(oKbutton); %>
</hbj:button>
<hbj:button
id="Infobutton"
text="Info"
onClick="onInfoClick"
width="100"
/>
<hbj:button
id="Cancelbutton"
text="Cancel"
onClick="onCanClick"
width="100"
/>
</hbj:form>