Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker: rendering error with multiple values and inline #4549

Closed
erdbeertony opened this Issue Feb 18, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@erdbeertony
Copy link

erdbeertony commented Feb 18, 2019

1) Environment

  • PrimeFaces version: 7.0RC3
  • Does it work on the newest released PrimeFaces version? Version? No.
  • Application server + version: Tomcat 9.0
  • Affected browsers: Firefox 65.0.1

2) Expected behavior

When using selectionMode="multiple" readonlyInput="true" inline="true" the datepicker should be rendered at all time (without manual input field) just giving the list of date values to the backbean.

3) Actual behavior

When updating (=refreshing) the datepicker AFTER having selected at least one value, the datepicker disappears.

4) Steps to reproduce

Use a datepicker with selectionMode="multiple" readonlyInput="true" inline="true" and ajax update, then select at least one value. Then refresh page.

5) Sample XHTML

<p:datePicker id="..." value="..."
selectionMode="multiple" readonlyInput="true" inline="true">
<p:ajax event="dateSelect" />
</p:datePicker>

6) Sample bean

public void setTermine(List<Date> termine) {
	this.termine = termine;
}
public List<Date> getTermine() {
	return termine;
}

@mertsincan mertsincan self-assigned this Feb 18, 2019

@mertsincan mertsincan added this to the 7.0 milestone Feb 18, 2019

fdellwing added a commit to fdellwing/primefaces that referenced this issue Feb 20, 2019

Merge branch 'master' of https://github.com/primefaces/primefaces int…
…o patch-1

* 'master' of https://github.com/primefaces/primefaces:
  Fixed primefaces#4559
  Update CONTRIBUTING.MD. Fixes primefaces#4550
  Fixed primefaces#4549
  Update version
  RC3
  Set version
  fixed license
  fixed license
  Set version
  Set version
  Fixed primefaces#4542
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.