-
1. Re: How to get control of JSF during a request
jimk1723 Feb 21, 2008 10:33 PM (in response to mbakkali)I'd suggest you look into something like RichFace's a4j:poll and Seam's asynchronous methods framework to handle long-running operations like this.
Your async method would update some state in your application (via events or messaging or what not) and your client-side poll would simply query the current state.
-
2. Re: How to get control of JSF during a request
mbakkali Feb 22, 2008 2:31 AM (in response to mbakkali)Hi James,
Thank you for your answer!
Actually I was more looking into calling UI components
from a backing bean.In the
old frameworks
it was possible to do that by
getting the HttpServletResponse and writing into it.Do you know anything similar with Seam?
Basically if we can get something like an javax.faces.component.UIComponent then we could modify
that component in the backing bean.I just want to be able to modify a component on the JSF page
(example: change some text, change some images, etc...)Any idea?
-
3. Re: How to get control of JSF during a request
pmuir Feb 26, 2008 10:36 AM (in response to mbakkali)
Mounir Bakkali wrote on Feb 22, 2008 02:31 AM:
Basically if we can get something like an javax.faces.component.UIComponent then we could modify
that component in the backing bean.
I just want to be able to modify a component on the JSF page
(example: change some text, change some images, etc...)
Any idea?Not really how JSF is supposed to work IMO, but you can use the binding attribute on components for this - just bind to an EVENT scoped bean.