That sounds good. 
 
Also May be we can suggest trinidad to have another attribute called "validDays" for the tr:validateDateRestriction component like the following:
 
 <tr:inputDate id="days" value="#{bean.date}"
                                  label="Select a date">
<tr:convertDateTime pattern="yyyy-MM-dd"/>
<tr:validateDateRestriction  validDays="#{bean.date.allowableDates}" />
</tr:inputDate>

-------------- Original message from Richard Yee <[email protected]>: --------------


> If you are going to limit the date selection to the first day of the
> month within a date range, you are probably better off just to use a
> selectOneChoice with a selectItem for each month that is within the date
> range. The inputDate does not provide much benefit here since there is
> only one date per month that can be chosen.
>
> -Richard
>
> [email protected] wrote:
> > Hi,
> > with the following code, I don't think it suits my need. Please
> > advise if there is way to achieve only allowing 1st day of each month
> > within a certain range, say within Oct 15, 2008 - Oct 30, 2010 to be
> > selectable. If this is not possible, backend validation is the only
> > choice.
> >
> > > > label="Select a date, but check
> > possible holidays first">
> >
> > > > invalidDays="#{bean.date.nationalHolidays}" />
> >

>

Reply via email to