BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links




Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
donricouga Offline
Thumbs Must Hurt
 
Posts: 58
Join Date: Jul 2006
Location: Atlanta
Model: 8703e
Carrier: Sprint
Default Special Characters - 09-20-2006, 11:33 AM

Is there any way to prevent a user from entering special characters (i.e. ©, ®, ™, ¶, And Others) into a javax.microedition.lcdui.TextField ??? This gets submitted to a java based webservice which doesn't like these unconvertible UTF-8 characters.
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
DoomBringer Offline
Talking BlackBerry Encyclopedia
 
Posts: 300
Join Date: Feb 2005
Model: 7280
Carrier: cingular, no wait, AT&T
Default 09-20-2006, 05:07 PM

I'm pretty sure there are filters you can use for the fields... you could subclass TextFilter and roll your own, though that seems to be a RIM class as opposed to the javax package.

Have you tried subclassing TextField and doing that?
   
  (#3 (permalink)) Old
donricouga Offline
Thumbs Must Hurt
 
Posts: 58
Join Date: Jul 2006
Location: Atlanta
Model: 8703e
Carrier: Sprint
Default 09-22-2006, 01:32 PM

I just implemented ItemStateListener on my midlet and used that to watch the characters that go into the textfield. I wanted to avoid that because i don't need the extra overhead. I was hoping there was an input constraint built in, but oh well.
   
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1