You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by sj...@stradefi.com on 2006/04/09 16:21:55 UTC

Jsp page reset

Hello!

I do not know if I should ask my question on this link but I am stuck and I
hope somebody could help me:

I am trying to reset a jsp page but I am getting into troubles. Here is my
program structure: 

- a class EPP that contains the variable String name=""; 
EPP.init() consists in setting name="Tartampion" 

- a class WIZARD that contains the variable EPP epp and that sets my jsp
page 
WIZARD.startWizard(ActionEvent event) consists in epp= new EPP(); 
WIZARD.reset() consists in epp= new EPP(); epp.init(); 

- a jsp page that calls the name like this: WIZARD.epp.name 

However I have the following results: 
I launch my page I have Tartampion appearing in the page 
I replace Tartampion by Soso and click reset button 
but then I get the same page with Soso inside although I wanted Tartampion 
while doing reset I call init of EPP that should reset name to Tartampion..
Do I miss to do something?

Thanks for your answer
Sophie