i have got a problem using a calendar in an inplace Element. My html code looks like that:
Code: Select all
...
<p:inplace id="dataInplace" label="#{DataDetails.labels.date}" effectSpeed="fast">
<p:calendar id="date" value="#{DataDetails.date}" showOn="button" pattern="yyyy-MM-dd" validator="#{DataDetails.checkDate}" onkeyup="save.enable()" onchange="save.enable()" />
<h:message for="date"/>
</p:inplace>
...
What it should show and shows during editing: 2011-05-01
Is it a known bug or limitation that calendar does not format its pattern correctly for inplace editing (Just like rendering the spinner buttons)? Is there a workaround?
Thanks for your help,
Sebastian