question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DatePicker: dialog redisplays, if datePicker is updated via ajax request

See original GitHub issue

Describe the defect If the datePicker itself is updated via <p:ajax event="dateSelect" update="@form"/>, the date picker dialog doesn’t properly hide or seems to open up again instantly. Another click is needed to lose focus and hide the date dialog. This behaviour doesn’t happen, if p:calendar is used.

calendarDatepicker

Environment:

  • PF Version: 10
  • Affected browsers: ALL

Example XHTML

<h:form>
	<p:panelGrid columns="2">
		<h:outputText value="p:calendar" />

		<p:calendar value="#{someBean.selectedDate}">
			<p:ajax event="dateSelect" update="@form" />
		</p:calendar>

		<h:outputText value="p:datePicker" />
		<p:datePicker value="#{someBean.selectedDate}">
			<p:ajax event="dateSelect" update="@form" />
		</p:datePicker>

	</p:panelGrid>
</h:form>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
zhedarcommented, Mar 26, 2021

I can confirm, that this works great. Thanks for your quick action!

As focusOnSelect is false by default, this doesn’t require any further configuration.

0reactions
mellowarecommented, Mar 26, 2021

Here is a patched reproducer showing its fixed: pf-7174.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I put a jQuery datepicker in a SimpleModal dialog that ...
licenseExpiry is defined within the contents of the ajax call (SchoolDetails.php). However, when I click on the text box, nothing happens.
Read more >
ajax loading content in jquery dialog content contains a ...
so at first I had a page I was loading with an ajax call. this page ... of the datepicker not working after...
Read more >
Element: <oj-date-picker> - Oracle
E.g., notewindow displays the new hint(s). Running Validation. if element is valid when converter property changes, the display value is ...
Read more >
React Date Inputs Library & DatePicker Component - Overview
KendoReact DatePicker Overview · When the React DatePicker is initially loaded, you can render a specific default value for that date. · You...
Read more >
changelog-1.5 - Apache
toString(true) fails with MarkupNotFoundException if the call is made in the ... [WICKET-3932] - Hide the DatePicker, when the user clicks on an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found