문제

A global status is there for general ajax request to trigger, and I want another different status for the autocomplete.

but if a4j:status with no name, it will be triggered by other ajax request. if a4j:status with name, it can't be mapped with rich:autocomplete

Anyone has experience with this?


it'd found as an open issue of richfaces https://issues.jboss.org/browse/RF-10966 any workaround here?

도움이 되었습니까?

해결책

You can use <a4j:ajax> to point to the status.

Edit:

autocomplete has some issues with attached <a4j:ajax>. This works:

<a4j:status id="global />
<a4j:status name="status" />

<rich:autocomplete onkeyup="update();" … >
<a4j:jsFunction name="update">
    <a4j:ajax event="begin" status="status"/>
</a4j:jsFunction>

you cannot prevent the global status from picking up on the autocomplete, the only thing you can do is to hide it - $('#form\\:global').hide(). But I don't think there's a reliable way to hide it before it triggers.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top