You could use one of these slick javascript calendars to allow users to
enter dates easier.

http://www.mattkruse.com/javascript/calendarpopup/

In my experience, this is something that seems to get a lot of attention
when developing, but if you simply put a note next to the field (i.e.
dd/mm/yyyy) users seem to comply fairly well.  The validator can then be
used to validate that they've entered it correctly.

Matt

> -----Original Message-----
> From: David Graham [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, December 09, 2002 2:33 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Struts Taglibs
> 
> 
> I don't know of any previous attempt to do this.  Personally, 
> for dates I 
> use 3 select boxes so the masking idea for that particular 
> type of data 
> isn't worthwhile to me.  That doesn't mean there aren't other 
> interesting 
> uses for this.
> 
> David
> 
> 
> 
> 
> 
> 
> >From: Herval Freire <[EMAIL PROTECTED]>
> >Reply-To: "Struts Developers List" <[EMAIL PROTECTED]>
> >To: "Struts Developers List" <[EMAIL PROTECTED]>
> >Subject: RE: Struts Taglibs
> >Date: Mon, 09 Dec 2002 18:28:09 -0200
> >
> >
> >         Hello there,
> >
> >         First of all, this is not really a "struts-user" 
> question... 
> >As a
> >struts user for a while (and as I said, been using Struts 
> Validator for 
> >some short time now), I'm currently trying to extend it and 
> add some new 
> >resources (at least to the version we use on my company), 
> and this is one 
> >of those extensions.
> >
> >         The Struts Validator package only generates Javascript for
> >validation of fields - my question is: can the validator 
> actually generate 
> >MASKS for the user's input?
> >
> >         In a project I used to work, I had to develop a Taglib (very
> >similar to Jakarta Taglib project), with that caracteristic.
> >
> >         A user could, for instance, make a <ca:input 
> >format="dd/MM/yyyy"/>
> >and the generated input field would have an associated 
> masking javascript 
> >(called on the 'onKeyPress' and 'onChange' methods of the 
> input field), so 
> >the mask is applied WHILE the user types (not only on submission, as 
> >Validator does). This is an interesting UI "effect" for most 
> users, and 
> >making it for every html field on every page is kinda boring...
> >
> >         I might be completely wrong, but the versions of Struts 
> >Validator
> >I know don't have that capability. The question is just like 
> that: is it on 
> >the plans of Struts framework? Was that ever tryed/discussed 
> before? I 
> >think that would be a great add-on to the Struts Validator framework.
> >
> >         As I am currently developing that issue, I'd like to 
> >colaborate to
> >the Struts project itself. That's the main reason for the 
> qeustion: just 
> >have to know if it's interesting to all of you
> >
> >
> >
> >regards,
> >
> >
> >At 12:13 9/12/2002 -0800, you wrote:
> >>First of all, questions like this are better asked on the 
> >>"struts-user"
> >>list.  This list is for issues related to the internal 
> development of the 
> >>Struts framework, not how to use it.
> >>
> >>I would guess you would be looking for the "Validator" framework, 
> >>which is
> >>a standard part of Struts (and has pieces that come from 
> other packages).  
> >>Read the online user guide and associated resources for 
> information on 
> >>using the Validator framework.
> >>
> >> > -----Original Message-----
> >> > From: Herval Freire [mailto:[EMAIL PROTECTED]]
> >> >
> >> >          Hello everyone,
> >> >
> >> >          This is my first message on the struts list, so I ask 
> >> > everyone to be kind :)
> >> >
> >> >          I've recently being using the Struts framework and the 
> >> > Struts Validator plugin for the first time. Greate boost on
> >> > productivity, but I
> >> > missed one thing:
> >> >          Is there any taglib/attribute which allows me 
> to generate
> >> > Javascript masks for textboxes? If no, is it on the scope of
> >> > Struts project?
> >> >
> >> >
> >> >          Thanks!
> >> >
> >> >
> >> > -------------------------------------------------
> >> > ----------- Herval Freire de A. Júnior ----------
> >> > ----- mailto:[EMAIL PROTECTED] -------
> >> > --------- http://www.herval.hpg.com.br ----------
> >> > ----------------- UIN: 2067270 ------------------
> >> > -------------------------------------------------
> >> > --[The adepts are everywhere... awake! v0.666a]--
> >> > -------------------------------------------------
> >> >
> >> > "Erros graves: julgar-se mais do que se é e estimar-se 
> menos do que 
> >> > se merece".
> >> >    -- Goethe
> >> >
> >>
> >>--
> >>To unsubscribe, e-mail:   
> >><mailto:[EMAIL PROTECTED]>
> >>For additional commands, e-mail:
> >><mailto:[EMAIL PROTECTED]>
> >
> >-------------------------------------------------
> >----------- Herval Freire de A. Júnior ----------
> >----- mailto:[EMAIL PROTECTED] -------
> >--------- http://www.herval.hpg.com.br ----------
> >----------------- UIN: 2067270 ------------------
> >-------------------------------------------------
> >--[The adepts are everywhere... awake! v0.666a]--
> >-------------------------------------------------
> >
> >"Erros graves: julgar-se mais do que se é e estimar-se menos 
> do que se
> >merece".
> >   -- Goethe
> 
> 
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online 
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-dev-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to