Skip to content

p:datePicker default date set to current date not taking into account mindate #3494

Closed Answered by BryceMcGilly
BryceMcGilly asked this question in PrimeFaces
Discussion options

You must be logged in to vote

Issue created: primefaces/primefaces#13285

Reproducer: https://github.com/BryceMcGilly/primefaces-test

Example xhtml:

<h:head>
    <title>PrimeFaces Test</title>
    <h:outputScript name="test.js" />
    <h:outputStylesheet name="test.css" />
</h:head>
<h:body>

    <h1>PrimeFaces discussion 3494 datePicker mindate issue reproducer</h1>
    <h:form id="frmTest">
    	<p:outputLabel value="Increment the hour by one, notice the date is set to current and not 2 weeks ahead from mindate: " />
		<p:datePicker value="#{testView.localDateTime}" mindate="#{testView.minDateTime}" 
					  pattern="MM/dd/yyyy hh:mm a" required="true" hourFormat="12" showTime="true" 
					  autocomplete="off" showOth…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BryceMcGilly
Comment options

Answer selected by melloware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
2 participants