Pessoal estou tento problemas ao comparar duas dadas utilizando o componente richcalendar quando tento comparar as datas apresenta o seguinte erro : An error occurred when processing your submitted information. Alguem tem uma exemplo alguma solução ??
segue codigo:
JSF
<h:outputLabel styleClass=“label” style=“margin-left:46px;” value=“Até:” />
<rich:calendar datePattern=“dd/MM/yyyy” value="#{ManterSimulacao.simulacao.dataFim}" >
</rich:calendar>
Metodo
public boolean verificaData() throws Exception {
SimpleDateFormat format = new SimpleDateFormat(“ddMMyyyy”);
Date dataInicio = (Date) format.parse(simulacao.getDataInicio().toString());
Date dataFim = (Date) format.parse(simulacao.getDataFim().toString());
if (dataInicio.after(dataFim)) {
return true;
} else {
return false;
}
}