Skip to content

DatePicker: Widget setViewDate should have silent mode #12185

@melloware

Description

@melloware

Discussed in https://github.com/orgs/primefaces/discussions/2196

Originally posted by jncolin June 24, 2024
Hi
I'm struggling with the datepicker calendar, using PF14.0.1.

My scenario is simple: I have a form with a datepicker, I can select one or multiple dates, click 'Add' and this fires an action in the bean. At the end of the action, a growl message is displayed.

I am using a multi-select datepicker component, with value pointing to a List in the backing bean. This list contains the selected dates, so when I need to reset the datepicker (i.e. when I return from the action), the list is null. The issue is that in this case, when the component is refreshed, it always displays the current month.

Why isn't there an attribute in the component that allows to set the viewdate? I know it can be done in JavaScript, but then, it interferes with the growl message.

Thanks for your help

Jean

Metadata

Metadata

Assignees

Labels

enhancementAdditional functionality to current component

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions