I'm not sure you can, for when you use the calendar selector, it makes
an ajax call back to the page component for parsing and formatting. Of
course, this means attaching a page to find the component! From the
DateField docs:

 * 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.

There's another DateField component in TapX, but not having used it, I
don't know how it works.

http://tapestry.formos.com/nightly/tapx/tapx-datefield/

Steve.


On 17 September 2011 14:29, Koka Kiknadze <[email protected]> wrote:
> I have noticed that pageattached is called each time I change value in
> DateField using calendar selector but not if I manually type in the value.
>
> What is the purpose of such behaviour and how can I avoid
> calling pageattached ?
>
> TIA
> Nicholoz
>
> TAP 5.2.6
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to