Search code examples
javajsfrichfaces

Is there a mechanism to change the default value for rich:calendar's "enableManualInput" attribute?


Currently the following code must be written for each date field using JBoss richfaces:

<rich:calendar value="#{dtl.rcvDt}" enableManualInput="true"/>

Is there a mechanism to set all instances of rich:calendar so that enableManualInput default's to true?


Solution

  • No, no easy way.

    You can extend the calendar component (HtmlCalendar), provide a different default value in your subclass, and map it as your own component.