Uploaded image for project: 'Seam Remoting'
  1. Seam Remoting
  2. SEAMREMOTING-45

Uncaught exception: [Exception... "prompt aborted by user" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: resource:///components/nsPrompter.js :: openTabPrompt :: line 462" data: no]

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0.Final
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Windows 7, JBOSS 4.2.3, Monjara 2.0.3, Weld-Servlet-1.1.1-final, Seam-Remoting 3

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      At first, I discover that the error only appears, if I use jsf.js (or some tags that include it autommatically as <a:head/>) with remote.js.
      If I use, only remote.js without jsf.js, the erros doesn't appears.
      But in my case, I've needed to put seam-remoting with an existing ajax application, so, I needed jsf.js too.
      So, I found that solution was change the CommandLink for an <a href/> HTML tag. I think that problema was the reload of page with CommandLink tag.
      The problem was solved.

      Show
      At first, I discover that the error only appears, if I use jsf.js (or some tags that include it autommatically as <a:head/>) with remote.js. If I use, only remote.js without jsf.js, the erros doesn't appears. But in my case, I've needed to put seam-remoting with an existing ajax application, so, I needed jsf.js too. So, I found that solution was change the CommandLink for an <a href/> HTML tag. I think that problema was the reload of page with CommandLink tag. The problem was solved.
    • Estimated Difficulty:
      Medium

      Description

      I was trying to make seam-remoting to work with an existing application that already was using JSF ajax (f:ajax tag).
      However, the firefox 6.0 was ever raising the error bellow on javascript console:
      Uncaught exception: [Exception... "prompt aborted by user" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: resource:///components/nsPrompter.js :: openTabPrompt :: line 462" data: no]

      My code was looking like:
      <h:head>

      <script type="text/javascript" src="#

      {facesContext.externalContext.requestContextPath}/seam/resource/remoting/resource/remote.js?compress=false"/>
      <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}

      /seam/resource/remoting/interface.js?resourceBean"/>
      <script>

      function getResourceFromDashboardCallback(result)

      { $.each(result, iterateResource); }

      </script>
      ...
      ...
      </h:head>
      ...

      <h:form>
      ...
      ...

      <h:dataTable border="1" id="dashBoardTable" value="#

      {dashboardBean.dashboards}

      " var="dashBoardItem">
      <h:column id="column1">
      <f:facet name="header">
      <h:outputText value="Paineis"></h:outputText>
      </f:facet>
      <h:commandLink value="#

      {dashBoardItem.label}

      " onclick="getResourceFromDashboard(#

      {dashBoardItem.uri}

      );">
      </h:column>
      </h:dataTable>
      </h:panelGroup>
      ...
      ...
      </h:form>

      When I've been clicked on CommandLink, the error's been throwed.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                denny.vriesman Denny Vriesman
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: