我在<p:commandLink>
内放置了以下<p:dataList>
<ui:repeat>
放置在<ui:repeat>
内,然后是另一个<h:form>
<ui:repeat value="#{myManager.selectedNode.data.children}" var="childdatapanel">
<p:panel header="#{childdatapanel.key}" collapsed="true">
<ui:repeat value="#{childdatapanel.value}" var="childdata">
<h:panelGrid columns="1">
<p:dataList value="#{childdata.value}" var="entity" itemType="disc" type="inset">
<p:column>
<p:commandLink value="#{entity.label}" action="#{myManager.seeDetails(entity)}" styleClass="entity-label"
onclick='alert("#{entity.label}");'>
</p:commandLink>
</p:column>
</p:dataList>
</h:panelGrid>
</ui:repeat>
</p:panel>
</ui:repeat>
</h:form>
:
childdatapanel.key1
entity1.1
entity1.2
entity1.3
childdatapanel.key2
entity2.1
entity2.2
entity2.3
childdatapanel.key3
entity3.1
entity3.2
entity3.3
childdatapanel.key4
entity4.1
entity4.2
entity4.3
此代码的结果显示如下:
<commandLink>
但是,尽管myManager.seeDetails(entity)
的值正确显示且警报获得了正确的值“onclick”,但是传递给LatLng southWest = new LatLng(85, -180);
LatLng northEast = new LatLng(-85, 180);
LatLngBounds bounds = new LatLngBounds(southWest, northEast);
AutocompleteFilter filter = AutocompleteFilter.create(WHAT SHOULD GO HERE?);
PendingResult result = Places.GeoDataApi.getAutocompletePredictions(mGoogleApiClient,
search.getText().toString(), bounds, filter);
的对象不正确。如果我按“entity1.1”或“entity2.1”或“entity3.1”,我总是得到“entity4.1”等等。
任何想法,我做错了什么?我正在使用primefaces 3.4和primefaces-mobile 1.0 snapshot。