0

I would like to have the entire list of <p:selectoneMenu> event. I know that, when using <p:ajax> the default event is change.

Thanks.

user1983983
  • 4,793
  • 2
  • 15
  • 24
ThunderPhoenix
  • 1,649
  • 4
  • 20
  • 47

2 Answers2

1

Basically, <p:selectOneMenu> renders a html <ul> tag at client side. Being it a non-form tag, you can consider every single event which can happen on it (also form events, as the generated output should be inside a form) to use in your ajax firing. That implies keyboard or mouse events for example.

See also this answer and what Primefaces lead Cagatay says about that:

Non-custom events like, click, keyup are not documented as it is general knowledge of dom events.

So, if the component has a customized event, it is actually documented in the guide. If not, just check the general dom events.

Community
  • 1
  • 1
Aritz
  • 30,971
  • 16
  • 136
  • 217
-1

Try this:

<p:selectOneMenu 
valueChangeListener="#{...}" onchange="submit()"
Amira
  • 3,184
  • 13
  • 60
  • 95