ICEfaces
  1. ICEfaces
  2. ICE-4617

ICEfaces 2.0: compat component-showcase selection components

    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: ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 2.0

      Description


      The selection components in ICEfaces 2.0 compat/component-showcase do not select. There are also focus problems in the demo.

        Activity

        Hide
        Ted Goddard added a comment -

        The strange behavior of borderPanel is due to the fact that the backing bean is in request scope and uses ValueChangeListener to update. In request scope, the bean has default values for each request, so only sees the correct value for the one checkbox that is selected. The solution is to either use values directly or to use beans in view scope.

        Show
        Ted Goddard added a comment - The strange behavior of borderPanel is due to the fact that the backing bean is in request scope and uses ValueChangeListener to update. In request scope, the bean has default values for each request, so only sees the correct value for the one checkbox that is selected. The solution is to either use values directly or to use beans in view scope.
        Hide
        Ted Goddard added a comment -

        ice:loadBundle was not working correctly during the decode phase. Rather than attempt to repair ice:loadBundle, it probably makes more sense to recommend that people switch to f:loadBundle.

        Show
        Ted Goddard added a comment - ice:loadBundle was not working correctly during the decode phase. Rather than attempt to repair ice:loadBundle, it probably makes more sense to recommend that people switch to f:loadBundle.
        Hide
        Mircea Toma added a comment -

        > Mircea, please comment on why focus appears to be lost with the selectMany components. Is it a difference in behavior
        > between the JSF 2.0 JavaScript DOM manipulation and ICEfaces DOM manipulation?

        There are two things that are different:
        a) There is no update for the 'select' element that triggered the submit. We have BridgeFacesContext.applyBrowserChanges() method that applies the changes from the browser to the old DOM thus canceling useless updates.
        b) selectOne and selectMany components are sending an additional focus command that helps maintaining focus on the submit triggering element.

        Show
        Mircea Toma added a comment - > Mircea, please comment on why focus appears to be lost with the selectMany components. Is it a difference in behavior > between the JSF 2.0 JavaScript DOM manipulation and ICEfaces DOM manipulation? There are two things that are different: a) There is no update for the 'select' element that triggered the submit. We have BridgeFacesContext.applyBrowserChanges() method that applies the changes from the browser to the old DOM thus canceling useless updates. b) selectOne and selectMany components are sending an additional focus command that helps maintaining focus on the submit triggering element.
        Hide
        Mircea Toma added a comment -

        Apply input values to old DOM to avoid generating pointless updates. As side effect the focus is preserved on the submit triggering element.

        Show
        Mircea Toma added a comment - Apply input values to old DOM to avoid generating pointless updates. As side effect the focus is preserved on the submit triggering element.
        Hide
        Ted Goddard added a comment -

        Excellent; this fix was also needed to clear the input field in the chat portion of the auction demo.

        Focus is working well in component-showcase now, however, the chat field mentioned above loses focus (I will add this investigation to an auction-specific bug).

        Show
        Ted Goddard added a comment - Excellent; this fix was also needed to clear the input field in the chat portion of the auction demo. Focus is working well in component-showcase now, however, the chat field mentioned above loses focus (I will add this investigation to an auction-specific bug).

          People

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

            Dates

            • Created:
              Updated:
              Resolved: