List Info

Thread: RE: inputDate date restrictions




RE: inputDate date restrictions
user name
2007-08-30 11:01:41

Thanks Andrew,

 

How do I go about getting my hands on that?

 

-----Original Message-----
From: Andrew Robinson [mailto:andrew.rw.robinsongmail.com]
Sent: 30 August 2007 16:51
To: MyFaces Discussion
Subject: Re: [Trinidad] inputDate date restrictions

 

****** This Message Originated From The Internet Please Be Aware Of Suspicious Attachments And Content ******

 

MyFaces sandbox has a validateCompareTo validator to do exactly that.

 

On 8/30/07, Darren McEntee <darren.McEnteeamt-sybex.com> wrote:

> ;

> ;

> ;

> ;

> ;

> Hi guys,

> ;

> ;

> ;

> Quick question&#8230; I have two tr:inputDate fields i.e.

> ;

> ;

> ;

> - Date From:

> ;

> - Date To:

> ;

> ;

> ;

> Both are as follows:

> ;

> ;

> ;

  ; &nbsp; &nbsp;  <tr:inputDate label=&quot;Date From">

> ;

  ; &nbsp; &nbsp; &nbsp; &nbsp;  <tr:validateDateTimeRange maximum=";#{DateBean.maxDate}&quot;/>

> ;

  ; &nbsp; &nbsp;  </tr:inputDate>

> ;

> ;

> ;

  ; &nbsp; &nbsp;  <tr:inputDate label=&quot;Date To&quot;>

> ;

  ; &nbsp; &nbsp; &nbsp; &nbsp;  <tr:validateDateTimeRange maximum=";#{DateBean.maxDate}&quot;/>

> ;

  ; &nbsp; &nbsp;  </tr:inputDate>

> ;

> ;

> ;

> The DateBean just restricts the max selectable value.

> ;

> What I want to know is it possible to go about restricting the Date To and

> the Date From fields in such the way that the Date From value must be less

> than Date To value when the user selects it … and the Date To value must be

> greater than or equal to the Date From value when the user selects it.

> ;

> ;

> ;

> i.e. is there a Trinidad component/property that allows you to look at the

> values in the previous field so we can restrict the value on other fields

> afterwards?

> ;

> ;

> ;

> Hope im making sense.

> ;

> Thanks.

> ;

> Darren.

> ;

> ;

> ;

> P Please consider the environment before printing this email

_________________________________________________________

> ;

> 1. The information contained in this E-mail, including any files transmitted

> with it, is confidential and may be legally privileged. This E-mail is

> intended only for the personal attention of the stated addressee(s). Any

> access to this E-mail, including any files transmitted with it, by any other

> person is unauthorised. If you are not an addressee, you must not disclose,

> copy, circulate or in any other way use or rely on the information contained

> in this E-mail or any files transmitted with it. Such unauthorised use may

> be unlawful. If you have received this E-mail in error, please inform the

> sender immediately and delete it and all copies from your system. You may

> not forward this E-mail without the permission of the sender.

> ;

> 2. The views expressed in this E-mail are those of the author, and do not

> necessarily represent the views of AMT-SYBEX. Internet communications are

> not secure and AMT-SYBEX cannot, therefore, accept legal responsibility for

> the contents of this message nor for any damage caused by viruses.

> ;

AMT-SYBEX Limited is a UK company, registration number GB03036807 at

> address The Spirella Building, Bridge Road, Letchworth, SG6 4ET.

AMT-SYBEX (NI) Limited is a UK company, registration number NI024104 at

> address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.

> For more information on the AMT-SYBEX Group visit http://www.amt-sybex.com

> _________________________________________________________

> ;

 

 

 

P Please consider the environment before printing this email

Re: inputDate date restrictions
user name
2007-08-30 11:08:46
http://myface
s.apache.org/download.html

I believe it is now bundled inside the Tomahawk jar

I don't see any references to any Tomahawk classes really,
so it looks
like you can skip the whole Tomahawk configuration (like
the
Extensions filter) if this is the only component you want to
use. Just
deploy the tomahawk and sandbox jars to your WEB-INF lib. If
you are
using facelets, you will need to get the taglib.xml files
from the
wiki as they are not provided.

-Andrew

On 8/30/07, Darren McEntee <darren.McEnteeamt-sybex.com> wrote:
>
>
>
>
> Thanks Andrew,
>
>
>
> How do I go about getting my hands on that?
>
>
>
>
> -----Original Message-----
>  From: Andrew Robinson [mailto:andrew.rw.robinsongmail.com]
>  Sent: 30 August 2007 16:51
>  To: MyFaces Discussion
>  Subject: Re: [Trinidad] inputDate date restrictions
>
>
>
> ****** This Message Originated From The Internet Please
Be Aware Of
> Suspicious Attachments And Content ******
>
>
>
> MyFaces sandbox has a validateCompareTo validator to do
exactly that.
>
>
>
> On 8/30/07, Darren McEntee <darren.McEnteeamt-sybex.com> wrote:
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Hi guys,
>
> >
>
> >
>
> >
>
> > Quick question… I have two tr:inputDate fields
i.e.
>
> >
>
> >
>
> >
>
> > - Date From:
>
> >
>
> > - Date To:
>
> >
>
> >
>
> >
>
> > Both are as follows:
>
> >
>
> >
>
> >
>
> >         <tr:inputDate label="Date
From">
>
> >
>
> >             <tr:validateDateTimeRange
maximum="#{DateBean.maxDate}"/>
>
> >
>
> >         </tr:inputDate>
>
> >
>
> >
>
> >
>
> >         <tr:inputDate label="Date
To">
>
> >
>
> >             <tr:validateDateTimeRange
maximum="#{DateBean.maxDate}"/>
>
> >
>
> >         </tr:inputDate>
>
> >
>
> >
>
> >
>
> > The DateBean just restricts the max selectable
value.
>
> >
>
> > What I want to know is it possible to go about
restricting the Date To and
>
> > the Date From fields in such the way that the Date
From value must be less
>
> > than Date To value when the user selects it … and
the Date To value must
> be
>
> > greater than or equal to the Date From value when
the user selects it.
>
> >
>
> >
>
> >
>
> > i.e. is there a Trinidad component/property that
allows you to look at the
>
> > values in the previous field so we can restrict
the value on other fields
>
> > afterwards?
>
> >
>
> >
>
> >
>
> > Hope im making sense.
>
> >
>
> > Thanks.
>
> >
>
> > Darren.
>
> >
>
> >
>
> >
>
> > P Please consider the environment before printing
this email
>
> >
>
_________________________________________________________
>
> >
>
> > 1. The information contained in this E-mail,
including any files
> transmitted
>
> > with it, is confidential and may be legally
privileged. This E-mail is
>
> > intended only for the personal attention of the
stated addressee(s). Any
>
> > access to this E-mail, including any files
transmitted with it, by any
> other
>
> > person is unauthorised. If you are not an
addressee, you must not
> disclose,
>
> > copy, circulate or in any other way use or rely on
the information
> contained
>
> > in this E-mail or any files transmitted with it.
Such unauthorised use may
>
> > be unlawful. If you have received this E-mail in
error, please inform the
>
> > sender immediately and delete it and all copies
from your system. You may
>
> > not forward this E-mail without the permission of
the sender.
>
> >
>
> > 2. The views expressed in this E-mail are those of
the author, and do not
>
> > necessarily represent the views of AMT-SYBEX.
Internet communications are
>
> > not secure and AMT-SYBEX cannot, therefore, accept
legal responsibility
> for
>
> > the contents of this message nor for any damage
caused by viruses.
>
> >
>
> >  AMT-SYBEX Limited is a UK company, registration
number GB03036807 at
>
> > address The Spirella Building, Bridge Road,
Letchworth, SG6 4ET.
>
> >  AMT-SYBEX (NI) Limited is a UK company,
registration number NI024104 at
>
> > address Edgewater Office Park, Edgewater Rd,
Belfast, BT3 9JQ.
>
> > For more information on the AMT-SYBEX Group visit
http://www.amt-sybex.com

>
> >
_________________________________________________________
>
> >
>
>
>
>
>
>
>
> P Please consider the environment before printing this
email

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )