This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Conversion with a custom Mask

 
Ben Zahler
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
ben
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic