Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.3
-
Fix Version/s: EE-4.0.0.GA, EE-3.3.0.GA_P03, 4.1
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Tomcat 7.0.55
-
Assignee Priority:P1
-
Workaround Exists:Yes
-
Workaround Description:Use c:forEach if you can. c:forEach will not work if the code populating the ace:gMapMarker components is in an f:event tag in the page. This is because all the f:events execute after c:forEach.
Description
Attempting to dynamically populate an ace:gMap component with ace:gMapMarker component does not work with ui:repeat:
<ace:gMap style="height:500px; width:675px;">
<ui:repeat value="#{realmBean.userLocations}" var="location">
<ace:gMapMarker longitude="#{location.location.geometry.coordinates[0]}" latitude="#{location.location.geometry.coordinates[1]}" options="title:'#{location.username}'"/>
</ui:repeat>
</ace:gMap>
The result is an error in the browser (Firefox):
TypeError: a is null
...b[r]+b.D);Sa(c,b[C]+b.I)}function Um(a){return new W(a[yb],a[Cc])};function Vm(a...
{main,places}.js (line 44, col 1838)
<ace:gMap style="height:500px; width:675px;">
<ui:repeat value="#{realmBean.userLocations}" var="location">
<ace:gMapMarker longitude="#{location.location.geometry.coordinates[0]}" latitude="#{location.location.geometry.coordinates[1]}" options="title:'#{location.username}'"/>
</ui:repeat>
</ace:gMap>
The result is an error in the browser (Firefox):
TypeError: a is null
...b[r]+b.D);Sa(c,b[C]+b.I)}function Um(a){return new W(a[yb],a[Cc])};function Vm(a...
{main,places}.js (line 44, col 1838)
Activity
Brad Kroeger
created issue -
Brad Kroeger
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Ken Fyten [ ken.fyten ] |
Brad Kroeger
made changes -
Summary | ace:gMap Suuport for ui:repeat | ace:gMap Support for ui:repeat |
Ken Fyten
made changes -
Assignee | Ken Fyten [ ken.fyten ] | Arturo Zambrano [ artzambrano ] |
Fix Version/s | EE-4.0.0.GA [ 11171 ] | |
Fix Version/s | EE-3.3.0.GA_P03 [ 11572 ] | |
Assignee Priority | P2 [ 10011 ] |
Ken Fyten
made changes -
Fix Version/s | 4.0 [ 11382 ] | |
Fix Version/s | EE-4.0.0.GA [ 11171 ] |
Ken Fyten
made changes -
Fix Version/s | EE-4.0.0.GA [ 11171 ] | |
Fix Version/s | 4.0 [ 11382 ] |
Ken Fyten
made changes -
Fix Version/s | 4.0 [ 11382 ] | |
Fix Version/s | EE-4.0.0.GA [ 11171 ] |
Ken Fyten
made changes -
Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
Arturo Zambrano
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Ken Fyten
made changes -
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Reopened [ 4 ] |
Ken Fyten
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Liana Munroe
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #43805 | Tue Dec 09 15:18:27 MST 2014 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/gmap/GMapOverlayRenderer.java
MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/gmap/GMapInfoWindowRenderer.java |
Ken Fyten
made changes -
Summary | ace:gMap Support for ui:repeat | ace:gMap - Add support for multiple subcomponents |
Ken Fyten
made changes -
Fix Version/s | EE-4.0.0.GA [ 11171 ] | |
Fix Version/s | 4.0 [ 11382 ] |
Ken Fyten
made changes -
Assignee Priority | P2 [ 10011 ] | P1 [ 10010 ] |
Arturo Zambrano
made changes -
Attachment | gMapMultipleLayers.xhtml [ 17987 ] |
Arturo Zambrano
made changes -
Attachment | gMapMultipleServices.xhtml [ 17988 ] |
Arturo Zambrano
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 4.1 [ 11375 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
43272: added support for ui:repeat to all gMap* subcomponents.
Testing notes: This will require regression testing as well as creating a new test for each gMap* subcomponent, where a bunch of subcomponents are added to the page using ui:repeat. For example, the markup for the gMapMarker test would look something like this:
The items in the gMapMarkerBean.markerItems collection would be simple POJOs that store some of the attributes of the gMap* subcomponent, in this case latitude and longitude. The tests pass if the subcomponents are successfully displayed/applied on the map.