Code: Select all
<p:calendar id="calendar" value="#{myMB.date}" showOn="both" />
The generated html is:
Code: Select all
<div id="mainPage:j_idt269:calendar"
class="ui-calendar ui-calendar-popup">
<div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset">
<input id="mainPage:j_idt269:calendar_input"
name="mainPage:j_idt269:calendar_input"
value="18/05/18"
class="hasDatepicker"
type="text">
<button type="button" class="ui-datepicker-trigger">...</button>
</div>
</div>
I could override it with javascript... but is there a way to do not generate the 3 dots value? How do I generate the button like in the showcase with the image icon?