ICEfaces
  1. ICEfaces
  2. ICE-8444

JavaScript error when tabbing between ace:textEntry fields

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Workaround Exists:
      Yes
    • Workaround Description:
      Add the icefaces-compat dependency to the project.

      Description

      When I have view markup like the following, and then try to tab between the two ace:textEntry fields:
      {code}
      <?xml version="1.0" encoding="UTF-8"?>
      <f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html" xmlns:ace="http://www.icefaces.org/icefaces/components">
          <h:head />
          <h:body styleClass="icefaces3-portlet ltr">
              <h:form id="f1">
                  <ace:textEntry id="firstName" required="true" value="#{applicantModelBean.firstName}" />
                  <ace:textEntry id="lastName" required="true" value="#{applicantModelBean.lastName}" />
              </h:form>
          </h:body>
      </f:view>
      {code}

      ... then Chrome reports the following error:
      Uncaught ReferenceError: setFocus is not defined ice3:1
      (anonymous function) ice3:1
      b.event.dispatch ice3:16
      b.event.add.bE.handle.bC

      Adding the icefaces-compat dependency to the project fixes the problem. I think this might reveal a JavaScript dependency of the ACE components on the Compat components?

        Activity

        Hide
        Kyle Stiemann added a comment -

        It seems like this issue should be closed as a duplicate of ICE-9639 (or vice-versa). The workaround should also be noted in ICE-9639.

        Show
        Kyle Stiemann added a comment - It seems like this issue should be closed as a duplicate of ICE-9639 (or vice-versa). The workaround should also be noted in ICE-9639 .

          People

          • Assignee:
            Unassigned
            Reporter:
            Neil Griffin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: