primefaces: DatePicker: selectEvent with selectionMode="range" and AJAX Event dateChange not work

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>

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (7 by maintainers)

Commits related to this issue

Most upvoted comments

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 ?