commandButton type property does not work

The type property of component commandButton with value "submit" should enable the user to submit the form after pressing the enter key when the focus is on a inputText component. I tried it but it does not work; is there something special to consider?

Hi Thomas, The code shown

Hi Thomas,

The code shown below is a simple test case that I used to recreate this.

<bjsf:application clientDebug="true">
<bjsf:form>
<bjsf:inputText value="" />
<bjsf:commandButton type="submit" value="enter" actionListener="#{myBean.submit}" />
</bjsf:form>
</bjsf:application>

Since the type=”submit” is used in the button, it should trigger the bound listener when the keyboard enter button is pressed. I don’t see any client server synchronizations.

This issue has been administered into our issue tracking system to get fixed, thanks for pointing this out to us.

Will this be fixed with

Will this be fixed with version 4.1?

commandButton type attribute

In the 4.1 we did fix the type attrbute of the commandButton.
Please see the release notes for a full description of the new JSF Edition
http://download.backbase.com/docs/4_1/jsf_4_1/Release%20Notes.pdf

Not working with 4.1

I tried this example with 4.1 and it's not working in IE7 or Firefox 2.0.0.8

is not working?

Hi,

Did you provide markup attribute for your commandButton? You have to provide, otherwise it might not work.

   <bjsf:commandButton type="submit" value="enter" actionListener="#{bean.doSomething}" markup="XHTML"/>

Regards,

Isa

Action listener is not executed

It seems that the server sync is started but the action listener attached to the button is not executed. Looking at the request data shows why: the id of the form is submitted instead of the buttons id. Since forms have no action listeners, nothing is executed on the server. In my opinion the id of the button needs to be submitted.