Required =“true”函数导致问题

时间:2017-09-19 06:51:18

标签: jsf

如果我在没有填写必填字段的情况下注册,则该程序无法正常工作

//保存

<p:commandLink title="Kaydet" actionListener="{workLogDetailBean.saveWorkLog}"
 class="TextDecNone"process="@this frmworklog" update="content">
<i class="fa fa-fw fa-save Fs20" ></i></p:commandLink>

//表格

 <p:inputTextarea autoResize="false" placeholder="Açıklama Giriniz..." maxlength="200"  required="true"
                                         counterTemplate="{0} karakter kaldı" value="#{workLogDetailBean.workLog.workDesc}"
                                         style="width: 100%; height: 100px; font-size: 17px !important;"/>

//我想更新这部分注意:表格

 <p:columnGroup>
  < p:inputText id="activityid" title="Aktivite kodu" placeholder="Aktivite seçiniz..." value="#{workLogDetailBean.workLog.activityId}" style="float:left;"/>
      <p:commandLink  styleClass="white-button" process="@this" onstart="PF('frmactivity').show()" title="Arama"               style="float:right; margin-top: -30px;">  i class="icon-search Fs20" ></i>
 </p:commandLink> </p:columnGroup>



<p:ajax event="rowSelect" listener="#{bean.activityRelationSelect}"
update="#{update}" oncomplete="PF('frmactivity').hide()"/>

0 个答案:

没有答案