Master Azazel
Master Azazel

Reputation: 600

Primefaces Calendar: does not hide

i got this jsf-primefaces webapp and i dont know why my p:calendar components dont hide themselves on date selection, like in the showcase

heres one of my calendars

<p:calendar id="dateUntil"
    value="#{absenceController.event.endDate}"
    timeZone="#{absenceController.timeZone}" required="true"
    pattern="dd/MM/yyyy : HH" stepHour="12" label="Bis" locale="de"
    navigator="true" mask="true" readonlyInput="true"
    mindate="#{absenceController.event.startDate}">
    <f:attribute name="dateFrom"
        value="#{absenceController.event.startDate}" />
    <f:validator validatorId="primeDateRangeValidator" />
</p:calendar>

and they all act the exact same, it works, but to hide that damn datepicker i have to press esc or to click somewhere outside the component

but i want them to hide on selection... can anybody tell me what im doing wrong?

thanks

Upvotes: 2

Views: 1722

Answers (1)

Raphael Roth
Raphael Roth

Reputation: 27373

The calendar-component does only auto-hide if no time-selection is used (only days).

Upvotes: 4

Related Questions