myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simon <simon.kitch...@chello.at>
Subject Re: How to disable default date(today) for t:inputCalendar componenet?
Date Thu, 21 Feb 2008 20:02:56 GMT
Then I suggest you create a jira issue and attach a patch..

On Thu, 2008-02-21 at 11:58 -0800, allpurpose wrote:
> Thanks, 
> if  set t:inputCalendar property required="false" for the optional date
> field, it does return null this time. However, if the field in the backend
> database is a required attribute, it will return the current date even when
> the property required="false" and user provides nothing. 
> Thanks a lot.
> 
> 
> simon.kitching@chello.at wrote:
> > 
> > In my experience, I get a null back when the user enters nothing.
> > There is a field that is a "date format help" or similar, that initially
> > gets displayed. Have you tried setting that?
> > 
> > On Thu, 2008-02-21 at 10:23 -0800, allpurpose wrote:
> >> So you guys don't have any problem with t:inputcalendar? How can it force
> >> user input to be default as today when it is not a required field? 
> >> 
> >> 
> >> 
> >> allpurpose wrote:
> >> > 
> >> > Hi, 
> >> > 
> >> > I have a date field which is not required for the form submission. The
> >> > t:inputcalendar seems fill the field with a default date (today) when a
> >> > user doesn't provide any value, which is not disrable. 
> >> > 
> >> > Is there anyway to disable the default date?
> >> > 
> >> > Thanks a lot.
> >> > 
> >> 
> > 
> > 
> > 
> 


Mime
View raw message