You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christopher Dodunski <Ch...@christopher.net.nz> on 2018/12/02 11:06:08 UTC

Re: DateField behaviour when within a zone

>> I imagine others are using the existing DateField with success, whether
>> inside or outside of zones.  Assuming the DatePicker javascript is using
>> AJAX to invoke a zone refresh, is there perhaps a way of disabling this
>> without meddling with the code?  I had thought that without "async=true",
>> components would not invoke zone refreshes.

> Not all components have that parameter. DatePicker doesn't trigger zone
> refreshes as far as I know.

According to the Tapestry docs for DateField:

"One wierd aspect here is that, because client-side JavaScript formatting
and parsing is so limited, we (currently) use Ajax to send the user's
input to the server for parsing (before raising the popup) and formatting
(after closing the popup). Weird and inefficient, but easier than writing
client-side JavaScript for that purpose."

Seemingly the serverside formatting is failing, and a container's zone is
getting refreshed instead.  Tomorrow I may delve into how "async=true"
works when zones are nested.  I assume nested zones are allowable?

Regards,

Chris.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: DateField behaviour when within a zone

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Sun, Dec 2, 2018 at 9:16 AM Christopher Dodunski <
ChrisFromTapestry@christopher.net.nz> wrote:

> > Not all components have that parameter. DatePicker doesn't trigger zone
> > refreshes as far as I know.
>
> According to the Tapestry docs for DateField:
>
> "One wierd aspect here is that, because client-side JavaScript formatting
> and parsing is so limited, we (currently) use Ajax to send the user's
> input to the server for parsing (before raising the popup) and formatting
> (after closing the popup). Weird and inefficient, but easier than writing
> client-side JavaScript for that purpose."
>
> Seemingly the serverside formatting is failing, and a container's zone is
> getting refreshed instead.


Yes, DateField uses AJAX, but not zones, so, if a DateField is causing an
AJAX update, that's definitely a problem there.


> Tomorrow I may delve into how "async=true"
> works when zones are nested.  I assume nested zones are allowable?
>

Yes, nested zones are allowed.


>
> Regards,
>
> Chris.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

-- 
Thiago