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

          Ted Goddard created issue -
          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?
          Ted Goddard made changes -
          Field Original Value New Value
          Assignee Mircea Toma [ mircea.toma ]
          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.
          Mircea Toma made changes -
          Attachment ICE-4731-mojarra.patch [ 11876 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #19120 Mon Jul 27 08:53:04 MDT 2009 mircea.toma ICE-4731 Create application for testing 'input' element updates.
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/glimmer/samples/elementUpdate/src/main/java/org/icefaces/demo/elementUpdate/TableBean.java
          Commit graph MODIFY /icefaces/scratchpads/glimmer/samples/elementUpdate/src/main/webapp/input-element.xhtml
          Commit graph ADD /icefaces/scratchpads/glimmer/samples/elementUpdate/src/main/webapp/A.gif
          Commit graph ADD /icefaces/scratchpads/glimmer/samples/elementUpdate/src/main/webapp/B.gif
          Commit graph ADD /icefaces/scratchpads/glimmer/samples/elementUpdate/src/main/java/org/icefaces/demo/elementUpdate/InputBean.java
          Commit graph DEL /icefaces/scratchpads/glimmer/samples/elementUpdate/src/main/java/org/icefaces/demo/scopes
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #19121 Mon Jul 27 08:57:31 MDT 2009 mircea.toma ICE-4731 Change style.
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/glimmer/samples/elementUpdate/src/main/java/org/icefaces/demo/elementUpdate/InputBean.java
          Mircea Toma made changes -
          Link This issue blocks ICE-4776 [ ICE-4776 ]
          Mircea Toma made changes -
          Link This issue blocks ICE-4776 [ ICE-4776 ]
          Mircea Toma made changes -
          Link This issue depends on ICE-4776 [ ICE-4776 ]
          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 .
          Mircea Toma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Fix Version/s 2.0-Alpha2 [ 10214 ]
          Deryk Sinotte made changes -
          Link This issue blocks ICE-4795 [ ICE-4795 ]
          Ken Fyten made changes -
          Fix Version/s 2.0.0 [ 10230 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: