Disable past days in selectinputdate icefaces

101 Views Asked by At

How I can disable past days in a selectinputdate popup in icefaces?

<ice:selectInputDate id="date" 
    value="#{bean.date}"
    renderAsPopup="true" required="true"
    partialSubmit = "true"   
</ice:selectInputDate>
1

There are 1 best solutions below

0
On BEST ANSWER

You should be able to use either a validator or a valueChangeListener, as defined in the 2.0.2 TLD

In your case I assume you want a valueChangeListener. You'll have to bind a method of type void that takes a ValueChangeEvent as single argument, as mentioned in the previously linked docs.