我有两个<p:inputText/>
要与<p:ajaxStatus/>
组件一起使用。当我运行我的页面时 <p:ajaxStatus/>
,两个输入文本都会运行。我想<p:ajaxStatus/>
为每个输入文本单独显示。你能看看我的代码并解决这个问题吗?
<tr>
<td colspan="2">
<p:outputPanel>
<p:inputText id="companynameInputText" value="#{AccountInfo.companyName}" requiredMessage="#{signup_msg.requiredorganization}" required="true" style="width: 100%">
<f:validator validatorId="organizationNameUniqueValidator" />
<p:ajax update="companyNameMessage"/>
</p:inputText>
<p:watermark for="companynameInputText" value="#{signup_msg.companyname}" />
</p:outputPanel>
</td>
<td>
<p:ajaxStatus >
<f:facet name="start">
<p:graphicImage value="resources/img/loading.gif"/>
</f:facet>
<f:facet name="complete">
<h:outputText value="" />
</f:facet>
</p:ajaxStatus>
</td>
</tr>
<tr>
<td colspan="2">
<p:inputText value="#{AccountInfo.position}" id="positionInputText" requiredMessage="#{signup_msg.requiredposition}" required="true" style="width: 100%"/>
<p:watermark for="positionInputText" value="#{signup_msg.position}" />
</td>
<td/>
</tr>
<tr>
<td colspan="2">
<p:outputPanel>
<p:inputText id="userNameInputText" value="#{AccountInfo.bizBizNetId}" requiredMessage="#{signup_msg.reqiredpassword}" required="true" style="width: 100%">
<f:validator validatorId="UserNameValidator"/>
<p:ajax update="userNameMessage"/>
</p:inputText>
<p:watermark for="userNameInputText" value="#{signup_msg.mobileemail}" />
</p:outputPanel>
</td>
<td>
<p:ajaxStatus>
<f:facet name="start">
<p:graphicImage value="resources/img/loading.gif"/>
</f:facet>
<f:facet name="complete">
<h:outputText value="" />
</f:facet>
</p:ajaxStatus>
</td>
</tr>
<tr>