开发者

JSF Ajax Problem

开发者 https://www.devze.com 2023-02-17 04:37 出处:网络
My first input on the form has atag. <h:input开发者_开发问答Text id=\"kotajNumber\" label=\"#{lbls.kotajNumber}\" styleClass=\"ltr\" value=\"#{issuePromise.declaration.kotajNumber}\" required=\"tr

My first input on the form has a tag.

<h:input开发者_开发问答Text id="kotajNumber" label="#{lbls.kotajNumber}" styleClass="ltr" value="#{issuePromise.declaration.kotajNumber}" required="true" style="min-width: 0px; width: 130px;">
   <f:ajax event="blur" render="loader exporter personName nameOfMaterial count materialWeight materialWeight numberOfPackages messageKotajNumber" execute="@this" listener="#{issuePromise.showDeclaration}" onevent="showLoader()" />
</h:inputText>

But when I click on a link, the new page is loading while the ajax request is sending also and I receive an alert which is saying that I've mixed a full request with an ajax one!!!

How should I fix it?

JSF Ajax Problem


I think it's because your link triggers a full request. And if your focus was on the input field before it will mix up with the ajax request from blurring. Maybe you can change the link to make an ajax request instead.

See this similar question and answer

0

精彩评论

暂无评论...
验证码 换一张
取 消