SelectOneMenu keyup & keydown

UI Components for JSF
Post Reply
LPV
Posts: 14
Joined: 17 Mar 2014, 11:50

10 Jul 2015, 18:22

Does keyup and keydown events work in SelectOneMenu?

I've try them but seems that are not working.

rosière
Posts: 92
Joined: 28 Nov 2012, 15:55
Contact:

13 Jul 2015, 11:28

keyup and keydown apply to keyboard input. So they work in a input field.

But selectOneMenu is not intended for keyboard input so there is no need for selectOneMenu to support them.
JDK: 1.8
Operating system: Windows 10
server: 4.1.1.171 #badassfish (build 136)
IDE: NetBeans 11.2
primefaces : version 6.0
primefaces extensions : 4.0.0
Apache Poi: 3.15

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

13 Jul 2015, 17:49

Rosière,

I'm sorry to say, but you seem to talk about navigation in the control. In that case your comment is totally wrong. Did you check the showcase? And noticed that SelectOneMenu is inder the input tab? Keyboard accessibility is very important for disabled people and a must if you want to develop applications for governments. So PF pays a great deal of attention to this with improvements ineach release.

@OP: Not sure if you mean the navigation mentioned above, or ajax/javascript events? The latter are not specifically on up/down, but on select/change

LPV
Posts: 14
Joined: 17 Mar 2014, 11:50

15 Jul 2015, 17:45

rosière wrote:keyup and keydown apply to keyboard input. So they work in a input field.

But selectOneMenu is not intended for keyboard input so there is no need for selectOneMenu to support them.
rosière,

In primefaces guide (primefaces_user_guide_5_2.pdf) selectOneMenu has onkeyup and onkeydown events. I do not expect them to work in a non "editable" selectOneMenu. My SelectOneMenu is editable and the events don't work, I thought these events worked in an editable SelectOneMenu since what's behind is an input field.

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

15 Jul 2015, 22:41

The up/down events are afaik for switching between items, not up/down in the input box

rosière
Posts: 92
Joined: 28 Nov 2012, 15:55
Contact:

16 Jul 2015, 11:06

Hello,
What is "afaik"? Do you mean "a fake"?
I'm sorry for my previous post.

I was just talking about my own experience with JSF.
Up until now I only use keyup and keydown on JSF's <h:inputText/> component but on nothing else.
kukeltje wrote:The up/down events are afaik for switching between items, not up/down in the input box
JDK: 1.8
Operating system: Windows 10
server: 4.1.1.171 #badassfish (build 136)
IDE: NetBeans 11.2
primefaces : version 6.0
primefaces extensions : 4.0.0
Apache Poi: 3.15

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

17 Jul 2015, 18:48

afaik = as far as I know : http://www.lmgtfy.nl/?q=afaik

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 53 guests