我有一个gmap如下:
<p:gmap id="gOthermap" center="5.3096600, -4.0126600" zoom="13" draggable="true"
type="ROADMAP" style="width:400px;height:200px"
model="#{createCompanyReceptionnist.otherMapModel}"
onPointClick="rco();handlePointClickOtherLocation(event);"
widgetVar="othermap">
<f:param name="cid" value="#{createCompanyReceptionnist.conversationId}"/>
<p:ajax event="markerDrag"
listener="#{createCompanyReceptionnist.onOtherMapMarkerDrag}" />
</p:gmap>
每次我点击地图,我的managedBean上的sessionScoped的postconstruct方法被调用,我该如何避免呢?
提前谢谢