wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes Pb when adding element in a list and reading this list in a form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Pb when adding element in a list and reading this list in a form" Watch "Pb when adding element in a list and reading this list in a form" New topic
Author

Pb when adding element in a list and reading this list in a form

Kim Prescott
Greenhorn

Joined: Apr 10, 2006
Posts: 15
Hi,
I m working on a contact list.
All my users are saved as a list, and I created a middlet which a form page to show those contacts.

I made a form in order to add some contact,then when I quit the add form, i go back to the contact list refresh, and can see the new contact.

the first contact added don't do any problem.
I first have :
1-2-3-4 (4 contacts)
Then I have
1-2-3-4-5 (5 contacts)

But if i add a second new contact, problem start
First i had:
1-2-3-4-5 (5 contacts)
Then I have:
2-3-4-1-5-2-6-4-6-5-6-6 (12 contacts or (5+1)x2 )

if I add a 3rd contact,
then I finally have 42 contacts ...

I don't understand why this occured.
If anybody has an idea
Thanks
[ April 19, 2006: Message edited by: Kim Prescott ]
Kim Prescott
Greenhorn

Joined: Apr 10, 2006
Posts: 15
ok, i solved my pb.
it was just because of a wrong implementation of multithread script
 
 
subject: Pb when adding element in a list and reading this list in a form
 
Similar Threads
Using text fields to update a selection list
Array? Arraylist?
Problem in inserting record,,1st rec is added once, 2nd record is added twice, and so on,,,!!
Address Book Java Issues
Cell Widget Table in GWT 2.1.0 with expanded/collapsed rows