ICEfaces
  1. ICEfaces
  2. ICE-4731

ICEfaces 2.0 auction input focus

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha3
    • Fix Version/s: 2.0-Alpha2, 2.0.0
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      ICEfaces 2.0

      Description


      Focus is lost when submitting bids and chat input.

        Issue Links

          Activity

          Hide
          Ted Goddard added a comment -

          Is the focus loss seen in the new auction demo due to differences between the ICEfaces and JSF 2.0 JavaScript bridge?

          Show
          Ted Goddard added a comment - Is the focus loss seen in the new auction demo due to differences between the ICEfaces and JSF 2.0 JavaScript bridge?
          Hide
          Mircea Toma added a comment -

          Yes, the JSF 2.0 update code is replacing the input element instead of editing it.

          Show
          Mircea Toma added a comment - Yes, the JSF 2.0 update code is replacing the input element instead of editing it.
          Hide
          Ted Goddard added a comment -

          We can either generate attribute-change instructions on the server or recommend that the JSF-RI perform attribute changes when the root element is an input. I suspect we should resolve this on the server since that would allow the most flexibility.

          Further comments?

          Show
          Ted Goddard added a comment - We can either generate attribute-change instructions on the server or recommend that the JSF-RI perform attribute changes when the root element is an input. I suspect we should resolve this on the server since that would allow the most flexibility. Further comments?
          Hide
          Mircea Toma added a comment -

          I agree that is better to solve this issue on the server side.

          Show
          Mircea Toma added a comment - I agree that is better to solve this issue on the server side.
          Hide
          Mircea Toma added a comment -

          Unfortunately, sending attributes update for input elements doesn't solve the problem. Mojarra's JS code is using Element.setAttribute() method which doesn't work properly for all browsers.
          For example Firefox won't set the 'value' attribute correctly while IE won't update layout and style when 'style' attribute is updated.

          Show
          Mircea Toma added a comment - Unfortunately, sending attributes update for input elements doesn't solve the problem. Mojarra's JS code is using Element.setAttribute() method which doesn't work properly for all browsers. For example Firefox won't set the 'value' attribute correctly while IE won't update layout and style when 'style' attribute is updated.
          Hide
          Mircea Toma added a comment -

          Patch for 'input' element updated drawn from ICEfaces/Trunk.

          Show
          Mircea Toma added a comment - Patch for 'input' element updated drawn from ICEfaces/Trunk.
          Hide
          Mircea Toma added a comment -

          Solved issue by submitting patch to Mojarra project. See ICE-4776.

          Show
          Mircea Toma added a comment - Solved issue by submitting patch to Mojarra project. See ICE-4776 .

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Ted Goddard
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: