ICEfaces
  1. ICEfaces
  2. ICE-5765

ICEfaces 2.0 + PortletFaces Bridge: ice:selectOneMenu DOM-diff inefficiency with the f:selectItem value="" empty string

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha2
    • Fix Version/s: 2.0.1
    • Component/s: Bridge, Framework
    • Labels:
      None
    • Environment:
      Liferay 5.2.3

      Description

      Actually this might not be portlet related, but I founded while testing the bridge...

      In the attached portlet, you'll notice that the provinceId dropdown is using h:selectOneMenu instead of ice:selectOneMenu

      This is because the ice:selectOneMenu has a DOM-diff inefficiency with the f:selectItem value="" empty string in that it causes a DOM-diff all the time.

      On the initial HTTP-GET (pre-ajax), this is what the dropdown markup looks like:
          <option selected="selected" value="">-- Select --</option>

      After causing an onblur, the XmlHttpRequest (post-ajax) causes a DOM-diff, and this is what the replaced dropdown markup looks like:
          <option value="">-- Select --</option>

        Activity

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Neil Griffin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: