Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:ItemStateListener and setConstraints behave incorrectly (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Tested with
Devices(s): Nokia N91, Nokia 6681, Nokia N72
Created: User:Technical writer 1 (30 Mar 2007)
Last edited: hamishwillee (16 Aug 2013)



Inserting text to a textField whose constraints are set by choiceGroup and controlled by an itemStateListener does not work as supposed on S60 devices.


If the current constraint of a textField is controlled by a choiceGroup and queried by an itemStateListener, the user cannot insert text into textField as normally. Inserting numbers (holding down the corresponding number key for a while) and special characters (from a menu) works, but inserting letters is impossible: the letter blinks on a screen for a brief moment and then disappears. The most recently inserted character also appears first in the string, which is the opposite of normal. If the user attempts to move the cursor manually to another position, it is automatically returned to the beginning of the field.

How to reproduce

Write a MIDlet with a couple of text fields whose constraints are controlled by a choiceGroup and queried by itemStateListener.


Do not use choiceGroup to control text fields. You can set the constraints of a text field directly to the text field control.

This page was last modified on 16 August 2013, at 04:18.
16 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.