Win a copy of Functional Design and Architecture this week in the Functional programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Refresh pb, when using 2 times the same page

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI all,
I would like to introduce a pb a met while creating an address book.
Here is the pb:
-> If I m in the contact list and select a contact A to see its informations, a new page opens and shows all contact A info.
- Then I go back to the contact list, I select an other contact B
- So a new contact info page should opened and retrive the contact B
But the page is not re-created, so I still see contact A info

-> The solutions I tried:
- All pages are created that way

So i try to destroy the page once I clik the "back" button and go back to the contact list.
The page is well destroyed, but an error occured every time when I want to call it again.

- I tried also to reinit the elements Name, Mobile .. of the page before to leave it, but when I come back, the last state of the page is saved, and so i don't have the information of the contact B.


I don't have any more idea, that's why i came here to see if you had any suggestion.
Thx
[ April 12, 2006: Message edited by: white rabbit ]
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"white rabbit"

Please click on the My Profile link above and change your display name to meet the JavaRanch Naming Policy of using your real first and real last names.

Thanks

Mark
 
Kim Prescott
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok Thx,
Is there smbd who has an idea about my pb ?
 
Ranch Hand
Posts: 1902
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not seeing all of your code to have a good idea of it... the way I've done it in the past is just figured out where I'm coming into a given form, and ensure that however I'm hitting it, it's re-initializing the fields as necessary with the information. (In many cases, part of my jumping to a new display is to clear out all the fields and put in the information anew.) It sounds vaguely like you're hitting it someway that's keeping the old data.

But, if you give more information, I can try to help in a more meaningful way.
 
Kim Prescott
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i think i see what you mean, my problem is that, because the page has already been created one time (for the contact A), even if i destroy it when i don't need it, I can't create a new one for the contact B.

tomorrow i will show you the error message I get.

Thanks for your help

edit: i corrected the words. thanks
[ April 13, 2006: Message edited by: Kim Prescott ]
 
lowercase baba
Posts: 13002
66
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kim,

Would you please spell out the words in your messages? we have many members for which English is not their primary language. Using abbreviations can make it much harder for them to follow what you are saying.

You may want to read this for more on why we prefer it this way.

thanks
 
Kim Prescott
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok my problem is solved.

in fact, when I destroyed the form, I forgot to destroy also all the object that are on this form.

so the second time when I called the form (contact info), the middlet tried to call the old object that were addressed with the old page and the middlet crashed.

All is fine now.
thanks to people who tried to help me.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic