on 2005 Jan 12 12:19 AM
Hi,
I have a quick question about htmlb buttons in JSPs. I just have a test JSP like so:
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<%-- used in the JSP DynPage to access the input field and retrieve the input of the user --%>
<hbj:inputField
id="user_name_input"
type="STRING"
design="STANDARD"
width="250"
maxlength="30"
/>
<hbj:button id="change_pass_button"
text"Change Password"
tooltip="Change Me"
width="100"
design="EMPHASIZED">
</hbj:button>
</hbj:form>
</hbj:page>
</hbj:content>
And I am unable to see the button. Does there need to be an onclick method associated with this button to see the actual button? Do I need to set myFormId.defaultButton(...) to the change_pass_button. When I did that, the PRT generated an error saying that change_pass_button was an unresolvable symbol. I just want to see what HTMLB buttons look like. Thanks!
Hi Vu,
you are missing a = here
text"Change Password"
it should be:
text="Change Password"
Hope this helps,
Kind regards
Francisco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You get very good help in Java Development ---> examples section. Here is the example
<hbj:button
id="Send_Button"
text="Save"
onClick="onSendButtonClicked"
width="70"
design="EMPHASIZED" >
</hbj:button>
Thanks,
Praveen
if you want to validate with javascript u need to use onClientClick event.
<hbj:button
id="Send_Button"
text="Save"
onClick="onSendButtonClicked"
onClientClick="confirm_save()"
width="70"
design="EMPHASIZED" >
</hbj:button>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.