Java 未调用CommandButton
当我通过ajax设置Java 未调用CommandButton,java,ajax,primefaces,Java,Ajax,Primefaces,当我通过ajax设置inputText的值时,不会调用我的commandButton 这是我代码的一部分: <h:form> <tr> <td><p:outputLabel>Numéro Inscription</p:outputLabel></td> <td><h:inputText class="span1" id="numIns" value="#{orientationMB.numins}"&g
inputText
的值时,不会调用我的commandButton
这是我代码的一部分:
<h:form>
<tr>
<td><p:outputLabel>Numéro Inscription</p:outputLabel></td>
<td><h:inputText class="span1" id="numIns" value="#{orientationMB.numins}">
<p:ajax update="nom prenom choix1 choix2 choix3" />
</h:inputText>
</td>
<td><p:outputLabel>Nom</p:outputLabel></td>
<td><h:inputText disabled="true" id="nom" value{orientationMB.eleve.nom}"/></td>
<td><p:outputLabel>Prénom</p:outputLabel></td>
<td><h:inputText disabled="true" id="prenom" value="#k{orientationMB.eleve.prenom}"/></td>
</tr>
<p:commandButton value="Créer" actionListener="#{orientationMB.ajouterOrientation}" /><br/><br/><h:form>
努梅罗铭文
笔名
检查这里的所有内容,并直接在h:form
中检查tr
?在h:inputText
下的p:ajax
没有意义。您可能想在p:commandButton
上添加update
属性。