Search code examples
javaicefaces-2

Disable past days in selectinputdate icefaces


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>

Solution

  • 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.