1
我試圖顯示兩種不同顏色的滑塊(光標左側紅色,右側綠色)我遵循我在這個問題上閱讀的建議PrimeFaces slider - colored selected region,但我的滑塊儘快消失因爲我寫range ="true"
p:不顯示滑塊
的,我怎麼能解決這個問題的任何想法?
<h:panelGrid columns="1" style="margin-bottom: 10px">
<h:outputText id="outp" /> value="#{Student.avgMarks}€" />
<h:inputHidden id="test" value="#{Student.avgMarks}" />
<h:inputHidden id="zeroValue" value="0" />
<h:inputHidden id="sliderValue" value="100" />
<p:slider for="zeroValue,test" range="true" style=" width: 150px; background-color: #444450; font-size: x-small; " display="outp" displayTemplate="{value}" />