Wednesday, December 20, 2006

ADF Faces: Declarative way for submit a form with the Enter key

The following is required to create a form for submit with the Enter key in declarative way:

1. Replace generated by default h:form with the af:form
2. Specify the id attribute for the af:commandButton
3. Set the af:commandButton's id in the af:form's defaultCommand attribute

Enjoy.

0 comments: