You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Stephane Decleire <sd...@cariboo-networks.com> on 2008/07/02 14:23:26 UTC
T5: form zone parameter not taken into account
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
Re: T5: form zone parameter not taken into account
Posted by Stephane Decleire <sd...@cariboo-networks.com>.
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 <sd...@cariboo-networks.com>:
>
>
>> 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 <
>>> sdecleire@cariboo-networks.com> 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
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>
>
Re: T5: form zone parameter not taken into account
Posted by Lance Java <la...@googlemail.com>.
How are you returning the AccountManagement?
Do you use @InjectComponent or new AccountManagement() ?
The latter will not work.
2008/7/3 Stephane Decleire <sd...@cariboo-networks.com>:
> 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 <
>> sdecleire@cariboo-networks.com> 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
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
Re: T5: form zone parameter not taken into account
Posted by Stephane Decleire <sd...@cariboo-networks.com>.
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 <
> sdecleire@cariboo-networks.com> 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
>>
>>
>
>
>
>
Re: T5: form zone parameter not taken into account
Posted by Josh Canfield <jo...@thedailytube.com>.
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 <
sdecleire@cariboo-networks.com> 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
>
--
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.