myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Korherr <jakob.korh...@gmail.com>
Subject Re: how to restrict inputDate to be the 1st date of each month within a range of date
Date Mon, 21 Dec 2009 19:25:03 GMT
Hi,

Why do you want to select only the 1st day of each month? do you want to
select a month with this component? If so, why don't you just use two
<h:selectOneMenu> components, one for the month and one for the year?

Regards,

Jakob Korherr

2009/12/18 <lwu1@att.net>

>  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.
>
>  <tr:inputDate id="days" value="#{bean.date}"
>                                   label="Select a date, but check possible
> holidays first">
>                 <tr:convertDateTime pattern="yyyy-MM-dd"/>
>                 <tr:validateDateRestriction
> invalidDays="#{bean.date.nationalHolidays}" />
>               </tr:inputDate>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message