minTime 和 maxTime 不适用于计划 primefaces

minTime and maxTime not working with schedule primefaces

我正在尝试使用 PrimeFaces 的时间表,我将它与版本 5.1-RC1 一起使用,minTimemaxTime 工作正常,但是当我升级到 5.36.0 它不起作用。

<p:schedule view="agendaWeek" slotMinutes="30" timeZone="GMT+2" 
            axisFormat="H:mm" locale="fr" maxTime="19" minTime="7"
            value="#{mybean.myModel}" id="idCanlandrier">
    <p:ajax event="dateSelect" oncomplete="PF('wNew').show();" />
</p:schedule>

Arethere any changes i have to do?

我将它与 PrimeFaces 5.3 一起使用,如果您将字符串值格式与分钟一起使用,您可以解决它 (":00") => maxTime="19:00"

对我来说,我有一个像这样的 backingBean return 字符串值,它工作正常:

public String getMaxTime() {
   Integer time=9;
   return time.toString()+":00";
}

希望此解决方案对您有所帮助。