Null? I remember some tests returning '' and getting a NullPointerException. What should be the reason why returning NULL should work?

2006/2/21, Emmanuel Jay < [EMAIL PROTECTED]>:
Hi Enrique,

If you want you button or link action not to go through AA you have to return null for those in  getZonesToReload.

Hope that helps,

Emmanuel


On 2/21/06, Enrique Medina <[EMAIL PROTECTED]> wrote:
Hi,

Has anyone successfully used Ajaxanywhere inside a JSF page with a piece of the page being "ajaxed" and the other piece not? Let me give an example: imagine a JSF page where the selection of a combo box must force the refresh of another combo box. This zone is "ajaxed" using <aa:zoneJSF>. But buttons to save or go to another page in the navigation are not "ajaxed".

My problem is that the "ajaxed" zone works great, but then I have a button to save, and another one to navigate to another page, and those buttons don't seem to work. When I click them a request is sended, but none of their respective actions are executed, no error messages are shown (I have a global tag in the page). It seems like a request with an action returning simply null (not doing anything).

My _javascript_ for Ajaxanywhere looks like this:

ajaxAnywhere.getZonesToReload = function(url,submitButton)
{
    if (submitButton.id.equals('myAjaxButton')
        return "dataZone"; 

 
ajaxAnywhere.formName = "mainForm"; 
ajaxAnywhere.substituteFormSubmitFunction(); 
ajaxAnywhere.substituteSubmitButtonsBehavior(true); 

What am I doing wrong? How do you have to indicate non-ajaxed buttons in the getZonesToReload _javascript_ callback?


Reply via email to