0

我有一个包含几个 Tomahawk 组件的应用程序,我想向其中添加 PrimeFaces 日历。但是,除非我删除所有 Tomahawk 组件,否则不会弹出 PrimeFaces 日历。这是如何引起的,我该如何解决?

编辑-这是我正在谈论的代码的一部分。喜欢primefaces日历时间选择器,想用,战斧版太笨拙了。如果我删除了 tomahawk 组件,p:calendar 可以正常工作,但是当我的 .xhtml 中有任何 tomahawk 组件时不会渲染(我也使用了一个 tomahawk 调度程序,但我没有在这里包含)。

    <h:outputLabel>Enter Appt Date:Time</h:outputLabel>

<t:inputDate popupCalendar="true" type="both" value="#{ScheduleMB.from}"/>

<p:calendar id="clientApptTime"  value="#{ScheduleMB.datePrime}"  
    pattern="HH:mm" timeOnly="true" mode="popup"     /> 

<h:outputLabel>Enter Appt. Length</h:outputLabel>

<h:selectOneMenu id="apptDuration" value="#{ScheduleMB.apptTime}">
        <f:selectItem itemValue="45" itemLabel="45 minutes"/>
    <f:selectItem itemValue="60" itemLabel="60 minutes"/>
    <f:selectItem itemValue="90" itemLabel="90 minutes"/>
    <f:selectItem itemValue="120" itemLabel="120 minutes"/>
</h:selectOneMenu>
4

0 回答 0