I need to know from which element is the value that I get in the event from a range slider. I have the following code:
<h:outputText id="displayValues" value="#{myBean.min} - #{myBean.max}"/>
<p:slider
id="mySlider"
for="min,max"
display="displayValues"
range="true"
displayTemplate=" {min} - {max}"
minValue="#{myBean.value1}"
maxValue="#{myBean.value2}" >
<p:ajax event="slideEnd" listener="#{simuladorBean.onSlideEnd}"/>
</p:slider>
<h:inputHidden id="min" value="#{myBean.min}"/>
<h:inputHidden id="max" value="#{myBean.max}" />
In myBean with event.getValue(), I know the new value from the slider that I move, but I need to know if this new value is from max or min slider. can someone help me to solve this.
Thanks