[gatein-issues] [JBoss JIRA] (GTNPORTAL-2479) JSF Portlet page doesn't re render after Ajax ActionRequest

Ken Finnigan (JIRA) jira-events at lists.jboss.org
Wed Jul 25 15:14:06 EDT 2012


    [ https://issues.jboss.org/browse/GTNPORTAL-2479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12707920#comment-12707920 ] 

Ken Finnigan commented on GTNPORTAL-2479:
-----------------------------------------

I get an "Uncaught #<Object>" Exception when RichFaces is trying to load the response from the server.

The full JS call stack is:

Uncaught #<Object>
(anonymous function)                             Test:654
Function.bind                                    base-en-min.js:19
Array.each                                       base-en-min.js:18
Enumerable.detect                                Test:651
findWrapper                                      Test:4000
stopObserving                                    Test:4071
Richfaces.PanelBar.destroy                       Test:67
Function.indexOf                                 Test:4445
window.RichFaces.Memory._cleanComponentNodes     Test:4424
window.RichFaces.Memory.clean                    Test:4432
A4J.AJAX.XMLHttpRequest.updatePagePart           Test:1384
A4J.AJAX.processResponseAfterUpdateHeadElements  Test:1957
callback                                         Test:2019
A4J.AJAX.XMLHttpRequest.appendNewHeadElements    Test:1497
A4J.AJAX.processResponse                         Test:2039
_request.onreadystatechange                      Test:1118

I've looked at Array.each in Util.js and it doesn't appear to have changed since GateIn 3.2, so not sure why the error is manifesting there.

For reference, the anonymous function at the top of the stack, which gets the exception, is part of Enumerable.detect which I've reproduced below:

{code:JavaScript}
  detect: function(iterator, context) {
    var result;
    this.each(function(value, index) {
      if (iterator.call(context, value, index)) {
        result = value;
        throw $break;
      }
    });
    return result;
  },
{code}

The exception appears to occur when "throw $break;" is called.

I'm no JS expert, so a little unsure of where to go from here.
                
> JSF Portlet page doesn't re render after Ajax ActionRequest
> -----------------------------------------------------------
>
>                 Key: GTNPORTAL-2479
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-2479
>             Project: GateIn Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.3.0.Final
>         Environment: GateIn 3.3 on AS5 or AS7, with JSF and RichFaces
>            Reporter: Ken Finnigan
>            Priority: Blocker
>             Fix For: 3.4.0.Final
>
>
> Deploying a RichFaces/JSF portlet to GateIn, with JBoss PortletBridge, no longer correctly handles Ajax menu navigation.
> In GateIn 3.2 selecting a menu option in the RichFaces demo would redisplay the portlet with new content in the right hand section of the portlet.  In GateIn 3.3 clicking the menu option has no impact, however, refreshing the page then does display the correct content.
> It appears that between GateIn 3.2 and 3.3 there was a change to how Ajax action requests are handled such that it doesn't result in an update to the portal page without an entire page refresh.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list