I've just found the culprit : i have a DateField in my form and this
component seems to not work correctly in a zone.
I've traced a javascript "Tapestry.DateField is not a constructor"
exception on the line "new
Tapestry.DateField({"field":"birthdate:11ae8bb5631"});" when the
component is initialized.
Stephane
Lance Java a écrit :
How are you returning the AccountManagement?
Do you use @InjectComponent or new AccountManagement() ?
The latter will not work.
2008/7/3 Stephane Decleire <[EMAIL PROTECTED]>:
Thanks Josh,
But i've tested my page with several navigators (IE 7.0, Firefox 2.0 & 3.0)
with javascript enabled and i don't understand why my request is not
submitted via AJAX.
What i think is very strange is that Ajax seems to be used or not depending
what content i have in my zone.
Has anybody already encountered such a problem and found what content can
prevent Ajax to be used ?
Thanks in advance.
Stephane
Josh Canfield a écrit :
Your form is not being submitted via AJAX. You may have a javascript error
that is preventing the form from being properly updated for the zone.
The request object has the isXHR method which you can use to determine if
it's a full or partial request. You can use this info to return something
other than the block/component for users that don't have javascript
enabled.
On Wed, Jul 2, 2008 at 5:23 AM, Stephane Decleire <
[EMAIL PROTECTED]> wrote:
I've got a form with a zone parameter but i still get the following
warning
and the whole page is refreshed when i submit the form. Any idea ?
[WARN] ComponentInstanceResultProcessor Component Test:accountmanagement
was returned from an event handler method, but is not a page component.
The
page containing the component will render the client response.
Thanks in advance.
Stephane