Skip to Content
author's profile photo Former Member
Former Member

hbj:button properties

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!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2005 at 12:57 AM

    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>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2005 at 01:45 PM

    Hi Vu,

    you are missing a = here

    text"Change Password"

    it should be:

    text="Change Password"

    Hope this helps,

    Kind regards

    Francisco

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.