for example: you use the same listener on your submit and on your form...

Vinicius Carvalho wrote:
Hum, but what could be causing the rewind to happens twice?

On 2/6/06, Ron Piterman <[EMAIL PROTECTED]> wrote:

you are wrong :)
the listener is called only once.

you should use the rewind cycle to validate user input.
the (normal) render cycle should always "work" to the current state of
your page/application -

what should checkConstraints() do ? check if something is wrong? doing
it on rewind is the right time...

Cheers,
Ron


Vinicius Carvalho wrote:

Hello there! AFAIK (I might be wrong) a form event listener is called

twice

after a submit is pressed right? One for rewinding phase, and the other

is

the "normal?" phase. Well, I have a form where my method is being called
twice, but both on the rewind phase, I put a simple cycle.isRewinding()

if

statement on it and it always pass there.

My problem is that I do some DB checking on this in order to validate

some

input fields, I was expecting that by doing:

if(!cycle.isRewinding()){
  checkConstraints();
}

Would work, but it's never called, instead the rewind phase happens

twice.

I've searched the archives for this (I've seen this before) but could

not

find.
Any ideas for this?

Regards



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to