|
Make dynamic apps with XMLHttpRequest
Version: 0.6
The XTile library contains the XTile and
Timeout components.
XTile allows you to easily integrate
XMLHttpRequest (Ajax) functionality
into your application with very little JavaScript knowledge, as it operates
similar to a DirectLink.
When the component is included into a page, the
call of a specified JavaScript function causes a connection to the server
and the invocation of selected listener method in your Java code.
The values you have passed to the JavaScript function will be passed to
the listener method as well. Similarly, when the listener returns, another
JavaScript function will be invoked and the listener can pass values to it
as well.
The provided example shows how easy it is to implement complex Ajax applications
with XTile.
Timeout is built using
XTile
and avoids expiration of the server session against the user's intent.
If the component detects user activity in the browser a certain amount of time
after the page has been loaded,
it silently connects to the server and prolongs the session.
If the session is about to expire since there is no user activity,
a warning message is displayed that allows the user to explicitly
prolong the session if he so desires.
Timeout is extremely useful
when the user fills in long forms or edits large content.
It helps avert a lot of user complaints.
The component is completely configurable and the unwanted functionality can
be disabled -- see the reference for details.
[XTile library]
[XTile source]
[Example]
[Component Reference]
[XTile for Tapestry 4 (by Paul Green)]
|