I think this misses the point of having a mask. You should decide which format *you* want the data in and force the user to follow suit. Probably the best way in your case would be to force 4 digits for the year.
Unless, of course, you're dealing with existing IDs or something, where the year might be either 2 or 4 digits. That would kind of suck. On Tue, Jan 13, 2009 at 9:59 AM, Joel Lobo <joell...@gmail.com> wrote: > > I need a customization in my mask. The mask does not have a fixed > format. As the user types in the it can be changed. > > The year(after the bar) can be with 2 or 4 digits. > > Initial mask "99999.999999/99-99" > > If the user type another character mask must change to > "99999.999999/9999-99" > > versions: > Masked Input Plugin 1.2.1 > Richfaces 3.2.1.GA > > Tks, > Joel Lobo > blogdojoellobo.blogspot.com > Fortaleza - Brazil > >