calendar loses focus

UI Components for JSF
Post Reply
jjh
Posts: 5
Joined: 15 Mar 2011, 12:41

15 Mar 2011, 12:43

Bug report for discussion before I can submit it to the issue tracker:

When a datepicker field gains focus, the small calendar appears. Choosing a date from the calendar by clicking on it makes the datepicker field lose focus. Hitting tab to advance to the next field in the form will then instead jump to the first formfield on the page.
Suggested solution: Choosing a date from the calendar should close the calendar but keep the field focused.

=> is it a new, valid bug request?
=> is the suggested solution correct? How can it technically be implemented?

thanks, Johannes

jjh
Posts: 5
Joined: 15 Mar 2011, 12:41

21 Mar 2011, 20:25

since there has been no reaction so far, i posted the issue in the primefaces issue tracker,
http://code.google.com/p/primefaces/iss ... il?id=1868

cagatay.civici
Prime
Posts: 18548
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

21 Mar 2011, 23:31

Thanks, we'll check this one in detail later during maintenance before 3.0.

callahan
Posts: 768
Joined: 27 May 2010, 22:52

22 Mar 2011, 10:21

This looks more like a JQuery Datepicker issue than a PrimeFaces issue. It can also be seen in the jQuery showcase: http://jqueryui.com/demos/datepicker/#date-formats.

The calendar appears when the textbox is given the focus. If the textbox is given the focus after a date is picked, the calendar will disappear and immediately reappear which is not what the user wants.

kevinjia1984
Posts: 1
Joined: 07 Aug 2014, 06:31

20 Apr 2015, 01:53

we are using primefaces 5.1 and we still have this issue, any suggestion on how to fix that or any workaround?

ritonglue
Posts: 12
Joined: 04 Jun 2021, 16:52

22 Sep 2022, 16:22

Would it be possible to fix this in the show case ?
I can see a workaround here :
https://stackoverflow.com/questions/297 ... ect-a-date

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests