On 3/22/06, Michael Waluk
<[EMAIL PROTECTED]> wrote:
Hi,I haven't dug too deep on this but noticed that when a component is rendered in response to an AjaxDirectLink the AjaxWebRequest is found in the cycle, but it seems to disappear when submitting an AjaxForm. I know it is set into the cycle in AjaxDirectServiceImpl's service either way, but for forms it disappears.I use code like the following (have seen it in some tacos components) in my rendercomponent method to determine if the request is normal or ajax..boolean ajaxRequest = false;
AjaxWebRequest ajaxr = (AjaxWebRequest)cycle.getAttribute(AjaxWebRequest.AJAX_REQUEST);
if (ajaxr != null && ajaxr.isValidRequest())
ajaxRequest = true;What is a better way to determine that is reliable for both form submissions and links?Thanks for any help,
Michael
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://opennotion.com