Java 获取渲染日历中的选定日期
我用来在primefaces中显示或隐藏日历的属性使得无法从日历中获取所选日期 我试着删除它,然后它工作得很好。 那么,我的代码有什么遗漏吗Java 获取渲染日历中的选定日期,java,ajax,primefaces,calendar,Java,Ajax,Primefaces,Calendar,我用来在primefaces中显示或隐藏日历的属性使得无法从日历中获取所选日期 我试着删除它,然后它工作得很好。 那么,我的代码有什么遗漏吗 <p:outputLabel style="width:20%" value="Time unit"></p:outputLabel> <p:selectOneRadio style="width:34%;margin-left:20%" id="choix" value="#{graphe.choix_aff}">
<p:outputLabel style="width:20%" value="Time unit"></p:outputLabel>
<p:selectOneRadio style="width:34%;margin-left:20%" id="choix" value="#{graphe.choix_aff}">
<f:selectItem itemLabel="Month" itemValue="mois" />
<f:selectItem itemLabel="Day" itemValue="jour" />
<f:selectItem itemLabel="Hour" itemValue="heure" />
<p:ajax update="panel" listener="#{graphe.handleChange}" />
</p:selectOneRadio>
<p:outputPanel id="panel" >
<p:outputLabel style="width:20%" value="Analysis frame"></p:outputLabel>
<p:calendar update="@form" style="width:600px" rendered="#{graphe.cal_affiche}" id="popup1" value="#{graphe.date1}" >
<p:ajax event="dateSelect" listener="#{graphe.dateSelectedAction1}">
</p:ajax>
</p:calendar>
<p:commandButton value="View Graph" actionListener="#{graphe.selected}" />
多谢各位