cancel
Showing results for 
Search instead for 
Did you mean: 

hbj:button properties

Former Member
0 Kudos

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!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Vu,

you are missing a = here

text"Change Password"

it should be:

text="Change Password"

Hope this helps,

Kind regards

Francisco

Former Member
0 Kudos

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>