<p:datepicker> pattern and maxdate attributes are not working together:

UI Components for JSF
Post Reply
Krushna.kale
Posts: 3
Joined: 05 Feb 2020, 05:30

05 May 2020, 12:38

Hi all,
I am using primefaces 8.0 with springBoot 2.2.6 and Wildfly 19.0.1, for the <p:datepicker> component when I am useing pattern and maxdate attribute together in single component, at that time when I click on the component no date select panel is visible for selecting the date.
Following is the code snippiest :

<p:datePicker id="startTime"
value="#{temp.equipStartTime}"
hideOnDateTimeSelect="true" beforeShow="false"
pattern="dd MMM yyyy" showIcon="true"
maxdate="#{temp.maxDate}" showTime="true" />


Data Type of temp.maxDate is java.time.LocalDateTime.

Thanks to all.


Regards,
Krushna Kale

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

05 May 2020, 13:25

Please provide an executable example using the PrimeFaces Test https://github.com/primefaces/primefaces-test project. It is the only way developers can debug your problem to help.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Krushna.kale
Posts: 3
Joined: 05 Feb 2020, 05:30

05 May 2020, 16:03

Hi,

https://github.com/ProfessionProgrammer ... s-test.git

here I have uploaded the test project. issue still exist with this also.


Thank you.

Regards,
Krushna Kale

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

05 May 2020, 16:14

I have verified your issue. Please report it here: https://github.com/primefaces/primefaces/issues

It's throwing an error on the JS Console of "Uncaught Unexpected literal at position 2"
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 39 guests