This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Conversion with a custom Mask Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Conversion with a custom Mask" Watch "Conversion with a custom Mask" New topic

Conversion with a custom Mask

Ben Zahler

Joined: Sep 04, 2002
Posts: 14
Hi all,
i have a field in my app in which the user will have to write a number in the format ##/########-####.
Ideally, when he clicks into the field, he is guided by displaying __/________-__ in the field.

This works almost with the standard components, except that in my app, the field is not required and if I use the default components I always get Conversion errors if when the field is empty.

Ok, so I wrote my own converter, which allows either correct or empty entries, but as soon as I associate my converter with the input text component, the helper mask does not show up anymore.

Any ideas what could be the problem?
thanks in advance
Don't get me started about those stupid light bulbs.
subject: Conversion with a custom Mask
Similar Threads
inputRichText with Hexadecimal formatted data
Struts2 conversion/validation problem
In MyFaces 1.2, UPDATE_MODEL_VALUES phase set object model to default value even though it is null
JSF2 CRUD DataTable and SelectOneListBox Questions