To validate it on the server side, you can use a Validator.
To validate it on the server side, you can use a Validator. With @FacesValidator("notAfterToday") public void NotAfterTodayValidator implements Validator { @Override public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException { Date date = (Date) value; Date today = new Date(); if (date. After(today)) { String message = "Date may not be later than today."; throw new ValidatorException(new FacesMessage(message)); } } }.
Thanks! It solved my problem :) Sorry for long time to answer... – Igor Jun 27 at 12:46.
You should be able to do that using JavaScript (so on client side). If you look on the Client API doc, you can see that there is a getCurrentDate() JavaScript function provided by the rich:calendar component. So what you have to do is to launch a JavaScript function on the JavaScript events ondateselected and oninputchange that will use the getCurrentDate() method and compare to the current date.
Something like that (I didn't test): ... ... and.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.