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: selectEvent with selectionMode="range" and AJAX Event dateChange not work

See original GitHub issue

1) Environment

2) Expected behavior

call dateChange event after set correct start - end

3) Actual behavior

By the first click of a day. my ArrayList value is empty. By the second click my value is now null Post in PF forum:

4) Steps to reproduce

see 5)

5) Sample XHTML

<p:datePicker id="calendarRange" converter="#{value}" validator="#{value.validate}" selectionMode="range" value="#{value.currentValue}"
showIcon="true" size="18"
yearRange="#{value.yearRange}" locale="#{localeProvider.language}"
styleClass="#{value.styleClass}" showButtonBar="true" showOnFocus="false" numberOfMonths="3">
<p:ajax event="dateSelect" process="@this" update="mainForm:filterPanel" />
<f:ajax event="change" execute="@this" render="mainForm:filterPanel"/>
</p:datePicker>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
123MarkA321commented, Apr 23, 2020

works fine now. Thx for help

1reaction
mellowarecommented, Apr 23, 2020

Couldn’t we tackle this another way and not call dateSelect in the JavaScript if type == range and parts !===2 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Value Change listener not working in primefaces calendar
I had problems when selecting a date with the datepicker and when manually typing it in the field. The change event was not...
Read more >
p:datePicker selectEvent with selectionMode="range"
I would like to save the value with AJAX to the server. My Problem is here. By the first click of a day....
Read more >
DatePicker.DateChanged Event (Windows.UI.Xaml.Controls)
Occurs when the date value is changed.
Read more >
How does jQuery Datepicker onchange event work?
To work with jQuery Datepicker onchange(), use the datepicker onSelect event. This will show which date we added currently and changed to.
Read more >
How to use Bootstrap Datepicker to get date on change event
Finally, you need to add the font awesome CSS to your HTML file. <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/twitter- ...
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