How about:
if (!cycle.isRewinding()) {
//set vars
}
?
(cycle.isRewinding will return false when the page is first being
rendered, and true when the user submits the form)
Robert
Patrick Kelly wrote:
> I have been playing around with pageBeginRender to set some vars when
> the page first loads. The problem is that I have a form with a submit
> and I don't want the vars to be set again, but pageBeginRender is always
> called when the form is submitted. Is there a way to know when the page
> is first loaded, and to be able to set some vars during that action? I
> am currently using Tapestry 3.
>
> Thanks - Patrick
>
> ---------------------------------------------------------------------
> 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]