Seam Remoting is not calling callback methods when using Portal and portletbridge

Solution Verified - Updated -

Issue

  • I have a SFSB that backs a modal panel. The panel operates as expected, except for the JS that controls whether or not to close the panel.  The JS callback function 'getDataErrorsCallback' is not called. The Seam Remoting debug shows that an existing session object cannot be injected for some reason. The cId on the request is correct but the response shown a new cId and there is the exception message that the session object isn't being injected.  

  • getDataErrorsCallback not being executed in the following code

    <script>
         function getDataErrorsCallback(result) {
              alert("getDataErrorsCallback - " + result);
              Richfaces.hideModalPanel('modalSomeComponent');
              rerenderBasePageComponents();
         }
    </script>
    <!-- code inbetween-->
    <a4j:commandButton value="Some Button" event="onclick" action="#{someComponent.save}"
              oncomplete="Seam.Remoting.setDebug(true);  Seam.Remoting.getContext().setConversationId(#{conversation.id});Seam.Component.getInstance('someComponent').getDataErrors(getDataErrorsCallback);return
    false;"
              reRender="modalDivDisbursement"/>
    

Environment

  • Enterprise Portal Platform (EPP) 4.3
  • Portletbridge (for integration with Seam)
  • Seam 2.1.2.GA

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content