pickList with Source and Target Filter pressing enter

UI Components for JSF
Post Reply
rammer77
Posts: 3
Joined: 29 Nov 2013, 16:43

22 May 2015, 22:33

Hi,

I am having and issue with PickList with the showSourceFilter="true" showTargetFilter="true" set.

I have created a pickList in a dialog with one p:commandButton. Now if a user clicks in the source or the target filter in the picklist and presses the enter key the action in the commandButton is called? Why is this?

I noticed it does this in the demo as well. Go to http://www.primefaces.org/showcase/ui/d ... List.xhtml then click on the source filter. Now press enter. What happens is the button for the basic pickList is being called and a dialog with

Source: San FranciscoLondonParisIstanbulBerlinBarcelonaRome
Target:

is shown.

Why is this happening?

thanks

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

04 Jun 2015, 12:23

This is because the form submitted by enter key press on picklist filter.I can replicate this issue in showcase.You can raise the issue in issue tracker. il check this later.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 31 guests