<p:selectOneMenu UP/DOWN arrow key not working on filter

UI Components for JSF
Post Reply
tim
Posts: 40
Joined: 26 Aug 2013, 16:13

20 Aug 2014, 11:08

Hi,

i have a filter on the <p:selectOneMenu component. The filter works well by shorting the options after each input character.

The problem ist, the user can not using the DOWN arrow key to select the wanted option. Pressing the UP/DOWN arrow keys will move the input cursor in the input-filter.

My search didn't show me how to fix/change this behaviour.

Thank you guys for any help :)

Code: Select all

					<h:form id="select_form">
						<p:selectOneMenu id="scr" filter="true" effect="fade"
							filterMatchMode="contains" value="#{scrBean.selectedScrId}"
							style="width:100%">
							<f:selectItems value="#{srcBean.activeScrs}" var="s"
								itemLabel="#{s.name}" itemValue="#{s.id}" />
							<p:ajax
								update=":some_component"
								listener="#{scrBean.handleSelection}" async="true" />
						</p:selectOneMenu>
					</h:form>
Primefaces 5.0.1, Jsf 2.1.8, Mojarra 2.1.20, Glassfish 3.2.1, Chrome 37.0.2062.124 m

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

20 Aug 2014, 11:22

does the same happen in the 5.0.x showcase?

tim
Posts: 40
Joined: 26 Aug 2013, 16:13

20 Aug 2014, 11:37

Hi,

thank you for your fast reply. The problem doesn't happen in the showcase of release 5.0.x and release 3.5.

The problem was identified months ago in my application, but on the showcase of 3.5 und 5.0 things work as expected.
Primefaces 5.0.1, Jsf 2.1.8, Mojarra 2.1.20, Glassfish 3.2.1, Chrome 37.0.2062.124 m

tim
Posts: 40
Joined: 26 Aug 2013, 16:13

11 Sep 2014, 16:14

Hi,

im back for answering my own question.

The converter does the trick!

Regards,
Tim.
P.S. how to mark the question as solved?
Primefaces 5.0.1, Jsf 2.1.8, Mojarra 2.1.20, Glassfish 3.2.1, Chrome 37.0.2062.124 m

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

11 Sep 2014, 16:17

There is no special thing to mark questions resolved. Some change the subject of the first post in the topic by editing it and adding SOLVED to it in one way or another. But that might confuse people when it is not done in other posts (they might be solved though)

It's up to you

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 47 guests