p:gmap onPointClick calling postconstruct conversationscoped

118 Views Asked by At

I have a gmap as follows:

<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>

Each time i click on the map, the postconstruct method on my managedBean which is conversationScoped is called, how can i avoid that?

Thank you in advance

0

There are 0 best solutions below