p:gmap onPointClick调用postconstruct conversationscoped

时间:2017-05-31 09:58:58

标签: primefaces jsf-2.2 conversation-scope

我有一个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方法被调用,我该如何避免呢?

提前谢谢

0 个答案:

没有答案