This content has been marked as final.
Show 7 replies
-
1. Re: Perform a form submission after the current ajax request
jbalunas Jun 25, 2009 1:14 PM (in response to amitev)Based on our IRC discussion you are using the a4j:queue right?
If so are you using a form based queue like:<h:form ... > <a4j:queue ... /> ... </h:form>
Let us see how you are defining your queue, and then the relevant form etc...
In general though we should be able to handle this with the current queue code. -
2. Re: Perform a form submission after the current ajax request
amitev Jun 25, 2009 6:19 PM (in response to amitev)I'm using global queue defined in web.xml
<context-param> <param-name>org.richfaces.queue.global.enabled</param-name> <param-value>true</param-value> </context-param>
-
3. Re: Perform a form submission after the current ajax request
ilya_shaikovsky Jun 26, 2009 8:11 AM (in response to amitev)No Jay, our queue not supports regular form submission events. So he should check on his own if the queue is empty in order to send request.
B.t.w. could you please explain the case more carefully in order to realize why you need two request to be fired one after another. -
4. Re: Perform a form submission after the current ajax request
ilya_shaikovsky Jun 26, 2009 8:15 AM (in response to amitev)sorry.. realized that missed a small part of the description :) skip last sentence.
-
5. Re: Perform a form submission after the current ajax request
amitev Jun 26, 2009 8:31 AM (in response to amitev)I need it because the commandButton clears the same component used in the action of a4j:support and i get NPE.
-
6. Re: Perform a form submission after the current ajax request
jbalunas Jun 26, 2009 9:35 AM (in response to amitev)"ilya_shaikovsky" wrote:
No Jay, our queue not supports regular form submission events. So he should check on his own if the queue is empty in order to send request.
Not even if the user uses:<a4j:form>
or<h:form> <a4j:queue ...>
with or without an a4j command button?
If that is the case it needs to be documented more and we should see what it would take to make this happen. -
7. Re: Perform a form submission after the current ajax request
ilya_shaikovsky Jun 26, 2009 9:45 AM (in response to amitev)a4j:queue handles only Ajax requests and I'm not sure that it isn't clear from docs:
The <a4j:queue> component creates a queue of the Ajax requests. The Ajax4JSF or RichFaces components with built-in Ajax can reference the queue to optimize Ajax requests.
And Adrian told us about mix of ajax request and regular form submission.
We need more time to think on how to handle regular submissions with queue. But it's not seems like simple task.