Hello,
I'm experimenting with MyFaces and I find great :)

I've yet to understand some things (also, I think that without myfaces
extension, things would be *much* more difficult...), and for example I
would like to know how to handle the default action of a form, i.e.,
what happens if a user just press "enter" instead of pressing the
buttons?

Imagine something similar to that:

<h:form>
  <h:inputText value="#{bean.par1}"/>
  <h:commandButton actionListener="#{bean.myListener}" value="One"/>
  <h:commandButton actionListener="#{bean.otherListener}" value="Two"/>
</h:form>


I would like to define a listener to be executed if the user press enter
while editing the input field.

Thanks for any help,
Alex


Reply via email to