Re: AjaxFormValidatingBehavior with multiple FormComponents

2013-08-10 Thread Jochen Mader
Aargh, wasn't aware of that. Thanks. On Fri, Aug 9, 2013 at 9:33 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, This is how the browsers work. If there is one form element then ENTER submits, otherwise - no. You can register a listener on the form for keyup events that checks the

AbstractRequestCycleListener redirect

2013-08-10 Thread Evgheni Emelianov
Hi, i habe a question about redirects in AbstractRequestCycleListener, i have functionality in onBeginRequest(RequestCycle cycle) hich checks wether the requested page should be showed or not, if its not the case then user should be redirected/forwarded to my custom exception page, but as i see

Behavior#beforeRender() Behavior#renderHead()

2013-08-10 Thread Sebastien
Dear all, Quick question: is this the intended behavior that Behavior#renderHead() is triggered *before* Behavior#beforeRender()? If yes, what could be the best way to have a #beforeRenderHead method? Thanks in advance, Sebastien.

Re: Behavior#beforeRender() Behavior#renderHead()

2013-08-10 Thread Sven Meier
Behavior#renderHead() is triggered *before* Behavior#beforeRender()? Yes, this is correct. Note that Behavior#beforeRender() is called immediately before rendering, while Component#onBeforeRender() is called in a separate traversal of the component tree *before* all components are rendered.

Re: Behavior#beforeRender() Behavior#renderHead()

2013-08-10 Thread Sebastien
Hi Sven, Thanks very much for your answer. Actually in my #onConfigure (A), I add a Behavior that overrides #onConfigure(Component) (B) which calls super.onConfigure(Component) (C), which calls component#onConfigure(this) (D) (custom method where 'this' is the behavior). What is updated in D is