DatePicker: selectEvent with selectionMode="range" and AJAX Event dateChange not work
See original GitHub issue1) Environment
- 8.0
- Application Tomcat 9.0.33 https://forum.primefaces.org/viewtopic.php?f=3&t=61731
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:
- Created 3 years ago
- Comments:15 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
works fine now. Thx for help
Couldn’t we tackle this another way and not call
dateSelect
in the JavaScript if type == range and parts !===2 ?