-
2. Re: How to call rich:modalPanel for every ajax request?
eswaramoorthy1985 Jun 25, 2010 1:42 AM (in response to elf)Thanks Serhiy Zastavnyy,
I want to call rich:modalPanel every ajax request. But in my application more than 50 pages. Each pages have minimum 5 to 10 a4j component.
Suppose i use the eventsQueue=" " attribute,
So i want to add eventsQueue=" " attribute for every a4j component.
But i feel, its difficult one.
because, in future, suppose i don’t want this wait modalpanel process
then that time, i want to delete eventsQueue=" " attribute to all a4j component.
Is there any otherway to call this rich:modalPanel like ‘your request is processing….’ for every ajax request?
otherwise, is possible to call this rich:modalPanel from listener?
-
3. Re: How to call rich:modalPanel for every ajax request?
baz Jun 23, 2010 1:32 AM (in response to elf)Hier ein Beispiel:
{code}i<a4j:status id="a4jWaitingMessage" onstart="Richfaces.showModalPanel('processingModal')" onstop="Richfaces.hideModalPanel('processingModal')"/>{code} -
4. Re: How to call rich:modalPanel for every ajax request?
eswaramoorthy1985 Jun 23, 2010 2:06 AM (in response to baz)Hi, Thanks Carsten Hoehne,
<a4j:status id="a4jWaitingMessage" onstart="Richfaces.showModalPanel('processingModal')" onstop="Richfaces.hideModalPanel('processingModal')"/>
In my application, i have use so many a4j:support in my page. (simlarly more than 50 pages).
So each and every place i must to use status attribute, like:
<a4j:support status="a4jWaitingMessage" />
ok. This is one of the solution for showing the waiting message.
But,
Any other way to achecive this?
Because in future, i feel does not show this wait message, that time i will delete to this status attribute in all components(in all pages).
-
5. Re: How to call rich:modalPanel for every ajax request?
baz Jun 23, 2010 2:22 AM (in response to eswaramoorthy1985)Sorry, i forgot to mention, that we are using facelets.
The a4j:status is on our main template which is included in each and every page.
I hope i could give you a hint?
-
6. Re: How to call rich:modalPanel for every ajax request?
eswaramoorthy1985 Jun 23, 2010 2:43 AM (in response to baz)Hi Carsten Hoehne,
Can we do this by an listener instead of a4j:status?
If yes how can i acheive this?
Please help me.
Thanks for your support.
-
7. Re: How to call rich:modalPanel for every ajax request?
liuliu Jun 23, 2010 3:00 AM (in response to eswaramoorthy1985)hi,
i dont think a listener can do what you want. maybe i am wrong.
<a4j:status> is good for this propose. if you have not a4j:region somewhere. only one status is enough. you dont need a4j:support.
liu
-
8. Re: How to call rich:modalPanel for every ajax request?
yyq2009 Jun 23, 2010 9:14 AM (in response to liuliu)Yes, <a4j:status/> is a best solution. Put it in your main templete page. In future, you just delete it from main templete page.
-
9. Re: How to call rich:modalPanel for every ajax request?
eswaramoorthy1985 Jun 23, 2010 10:00 PM (in response to yyq2009)Thanks Daniel Yang,
If i use in main templete,
<a4j:status id="waittingMessage" onstart="javascript:Richfaces.showModalPanel('progressWaitModalPanel');" onstop="javascript:Richfaces.hideModalPanel('progressWaitModalPanel');" />
For example,
<a4j:commandButton id="addBtn" status="waittingMessage"/> <h:inputText > <a4j:support status="waittingMessage" /> </h:inputText> <h:selectOneMenu><a4j:support status="waittingMessage"/> </h:selectOneMenu>
similarly, i need to add <a4j:support status="waittingMessage"/> in whole application (near more than 1000 places).
In future, If i wil delete <a4j:status/> in main template, then what about this <a4j:support status="waittingMessage"/>. ( that is status="")
Is any otherway to call progressWaitModalPanel every ajax request? or using listener ?
help me.
Thanks in advance.
-
10. Re: How to call rich:modalPanel for every ajax request?
liuliu Jun 24, 2010 2:46 AM (in response to eswaramoorthy1985)you dont need a4j support, if you dont use a4j:region.
-
11. Re: How to call rich:modalPanel for every ajax request?
eswaramoorthy1985 Jun 25, 2010 1:14 AM (in response to liuliu) -
12. Re: How to call rich:modalPanel for every ajax request?
liuliu Jun 25, 2010 3:05 AM (in response to eswaramoorthy1985)a4j:status works for every request in the same ajax container. if you dont use a4j:region. all your request is in the global ajax container, so every request share this a4j:status.
-
13. Re: How to call rich:modalPanel for every ajax request?
eswaramoorthy1985 May 18, 2011 12:22 AM (in response to eswaramoorthy1985)Suppose i use <a4j:status..../> in my main template.
Is possible, automatic call a4j:status for every ajax request in my application ?
-
14. How to call rich:modalPanel for every ajax request?
liuliu May 18, 2011 3:09 AM (in response to eswaramoorthy1985)status is called automaticly for every ajax request in the same container, you dont need add status attribute for every component/support, it is called by default.
there is another way:
<a4j:outputpanel ajaxrendered = "true">
<rich:modalPanel showWhenRendered="true">
</rich:modalPanel>
</a4j:outputpanel>
but i prefer the first one.