ICEfaces
  1. ICEfaces
  2. ICE-2639

ice:gMapControl Render Attribute Not Working

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7DR#3
    • Fix Version/s: 1.7Beta1, 1.7
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Windows XP Professional
      Jboss 4.0.5.GA

      Description

      I am attempting to have the ice:gMapControl render/not render in the new component showcase, but I cannot get it to work. Here is what I'm doing, I did it initially without the locateAddress attribute on the ice:gMap component and tried again with the attribute, it still does not work:

                    <ice:gMap id="gmap"
                                        locateAddress="#{gmap.locateAddress}">

                        <ice:gMapControl id="largectrl"
                                                         name="#{msgs['page.gMap.controls.control1']}"
                                                        rendered="#{gmap.renderControl1}"/>
                    </ice:gMap>

      The rendered attribute is toggled with the following:

              <ice:selectBooleanCheckbox id="cntrl1"
                                                                   value="#{gmap.renderControl1}"
                                                                  partialSubmit="true"
                                                                  valueChangeListener="#{gmap.findAddress}"/>

      I have tried this with and without the valueChangeListener which causes the component to render a new map:

            public boolean isLocateAddress() {
                  if (locateAddress) {
                        locateAddress = false;
                        return true;
                  }
                  return false;
            }

        Activity

        Hide
        Brad Kroeger added a comment -

        Attaching a copy of the component-showcase application with debugging output.

        Show
        Brad Kroeger added a comment - Attaching a copy of the component-showcase application with debugging output.
        Hide
        Adnan Durrani added a comment -

        revision : 15581

        Show
        Adnan Durrani added a comment - revision : 15581

          People

          • Assignee:
            Unassigned
            Reporter:
            Brad Kroeger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: