2
How to display to the user the option to select only hours and minutes in the component <p:calendar> of Primefaces
I have two fields with start and end times to select, but even putting the pattern="HH:mm" by clicking to select the time, is shown year, month, Day, Hour and Minute. I would like to leave only Time and Minute visible to the user.
- Grid panel with fields
 
<p:panelGrid columns="2" rendered="#{horarioFuncionamentoController.selected != null}">
  <p:outputLabel value="Início" for="inicio" />
  <p:calendar id="inicio" 
      pattern="HH:mm" 
      value="#{horarioFuncionamentoBean.selected.inicio}" 
      title="Início" 
      showOn="button" />
  
  <p:outputLabel value="Fim" for="fim" />
  <p:calendar id="fim" 
    pattern="HH:mm" 
    value="#{horarioFuncionamentoBean.selected.fim}" 
    title="Fim" 
    showOn="button" />
</p:panelGrid>
I found a Post from two years ago on a similar subject, but I believe there may currently be some solution.
