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

How to make a SUBMIT-Button with <htmlb:button>?


its a simple question, but I found no answer in the

documentation nor in one of the provided sample BSPs.

The <htmlb:button> doesn't seem to provide a possibility

to declare a button as SUBMIT-button as in

standard HTML, so that it reacts as well to the return

key. This is only a minor issue, but yet this has

bothered some of the users who experimented with

prototype applications which we are developing now.

Of course its possible to use the standard HTML tag, but

this way you are not using automatically the provided

themes, colors, fonts ...

Any idea?


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2004 at 02:32 PM

    --> trjust possible with inputfields "submitOnEnter" = True... because submit means in my oppion react on return key. So if your buttons has the focus and you press enter it will react anytime!?!?!

    Regards Matthias

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks, Matthias, this basically works. Its a weird

      thing, because the submitOnEnter tag isn't in the

      online docs (but you can see it in the tag browser).

      However, this solution has two drawbacks:

      1. The corresponding inputField has to have the focus

      2. There doesn't seem to be an event registered

      for submitOnEnter, so the browser beeps long and loud

      because he thinks there is an error.

      I guess it has a reason why this tag isn't documented ..

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.