Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-710

Error using clientWindow and (p|f):ajax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.2
    • 1.0.3
    • JSF-Module
    • None

    Description

      Trying to use CLIENTWINDOW with some h:commandLink and f:ajax or p:ajax doesn't work.

      I've tried, in a simple action method (public void actionTest() {} ):
      <h:commandLink action="#

      {view1Controller.actionTest}">test f:ajax
      <f:ajax />
      </h:commandLink>
      <h:commandLink action="#{view1Controller.actionTest}

      ">test f:ajax
      <p:ajax />
      </h:commandLink>

      For f:ajax it doesn't log any error but doesn't call my action method.
      For p:ajax it logs some error on browser console:
      Uncaught TypeError: Cannot read property 'replace' of undefined primefaces.js?ln=primefaces&v=5.0:1
      b.escapeClientId primefaces.js?ln=primefaces&v=5.0:1
      PrimeFaces.ajax.Request.send primefaces.js?ln=primefaces&v=5.0:2
      PrimeFaces.ajax.Queue.offer primefaces.js?ln=primefaces&v=5.0:2
      PrimeFaces.ajax.Request.handle primefaces.js?ln=primefaces&v=5.0:2
      PrimeFaces.ab primefaces.js?ln=primefaces&v=5.0:2
      onclick ?dsrid=949&dswid=8555:1
      d.(anonymous function).onclick.match.d.(anonymous function).onclick windowhandler.js?ln=deltaspike&v=1.0.2:2
      d.(anonymous function).onclick.match.d.(anonymous function).onclick windowhandler.js?ln=deltaspike&v=1.0.2:2

      I've tried the same with p:commandLink and it works
      <p:commandLink action="#

      {view1Controller.actionTest}">test f:ajax
      <f:ajax />
      </p:commandLink>
      <p:commandLink action="#{view1Controller.actionTest}

      ">test f:ajax
      <p:ajax />
      </p:commandLink>

      Attachments

        1. test.patch
          3 kB
          Janario Oliveira
        2. pftest.patch
          5 kB
          Janario Oliveira
        3. fix.patch
          0.8 kB
          Janario Oliveira
        4. console.log
          0.7 kB
          Janario Oliveira

        Activity

          People

            tandraschko Thomas Andraschko
            janario Janario Oliveira
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: