Re: Problem with page life cycle

2008-04-13 Thread Joost Schouten (ml)
Assuming this is about T5 as I know nothing of earlier versions, I would personally have the done as follows: @Persist private YourQuestionObj actualQuestion; @SetupRender private void setup() { actualQuestion = genereateSimpleMathQuestion(); } SetupRender is only called to prepare for rend

Re: Problem with page life cycle

2008-04-13 Thread Tomasz Dziurko
It didn't solved my problem, but I found another way of doing it. Simplfied code: onActivate() { oldSimpleMathQuestion = new SimpleMathQuestion(actualQuestion.question, actualQuestion.answer)); actualQuestion = genereateSimpleMathQuestion(); } onSuccess { if(oldSimpleMathQuestion.ans

RE: Problem with page life cycle

2008-04-13 Thread Jonathan Barker
Try using the @Persist("flash") to store your real answer. The flash persistence strategy covers the situation where you only want the value to be stored until the next request. Jonathan > -Original Message- > From: Tomasz Dziurko [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 13, 20