I'm developing a screen with JSF using PrimeFaces implementation, I have a requirement that the date should not contain the 00:00 or the 24:00 part in the time selection
My page:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui" template="/templates/main.xhtml">
<h:form id="form">
<p:calendar value="#{controller.arrivalDate}" showOn="both"
pattern="dd MMM yyyy HH:mm" />
</h:form>
</ui:composition>
My Controller:
@ManagedBean
public class Controller{
Date date;
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
}
In the Calendar control I use a slider to detect time, I need ANY acceptable way to stop the 00:00 as the 24:00 is already not valid choice