-
1. Re: Invoke ajax request programatically
sergeysmirnov Oct 21, 2007 3:34 PM (in response to bardolf)a4j:jsFunction is an entry point for Ajax call invokation from client-side javascript
-
2. Re: Invoke ajax request programatically
bardolf Oct 21, 2007 5:11 PM (in response to bardolf)Hi,
I would like to invoke it on server-side. Maybe your point is helpful also for this situation, I'm not sure now.
Clarification: source of invocation should be an event on server-side.
Thx -
3. Re: Invoke ajax request programatically
sergeysmirnov Oct 21, 2007 7:12 PM (in response to bardolf)if so, look at a4j:push
-
4. Re: Invoke ajax request programatically
bardolf Oct 22, 2007 2:11 AM (in response to bardolf)Hi,
thank you for you response, you are doing great job, but i do not want to use a4j:push. It is not satisfy the requirement "use internal timer" in example. For more clarification:
I have TimerTask in Java code. And this TimerTaks has to invoke the ajax rerender request on server side.
One more thing: i don't really sure how a4j:push works. I have seen a lot of questions on it, but no good example. So maybe connection a4j:push with something inside - for example required TimerTask would be fine. But I don;t know.
Thx anyway B. -
5. Re: Invoke ajax request programatically
fmarwede Oct 22, 2007 2:33 AM (in response to bardolf)Two things:
1.) I wanna have a good example for a4j:push, too. :-)
2.) @bardolf: It is not possible to do that what you want. This depends not on Richfaces components, JSF but on the whole web architecture itself. The server is not allowed to send responses to a client without request. a4j:push could be the best alternative to simulate such behavior (if one knows how to use it). -
6. Re: Invoke ajax request programatically
bardolf Oct 22, 2007 4:49 AM (in response to bardolf)Yes, you are right! So easy explanation and that's right. I cannot response, if I wasn't asked. I think is has something to do with a4j:push, but explanation, that the a4j:push is little bit different to a4j:poll, as described in manual, is not enough for me. But thank you, I will focus this direction.
B.