This would be very hard to accomplish. Since PrettyFaces operates outside of the JSF lifecycle, you’d need to find another way to get access to the beans. If you (oswald) want to come up with a prototype, we can definitely work on it
I thought more of some kind of dynamic lookup of Processor classes via the ServiceLoader. But this way the Processor instance would not be a JSF managed bean. But I think this won’t be a problem for most implementations of Processor I could think of.
As long as the Bean Contexts are available to the Servlet Filter, this will work. I suppose I should rephrase this statement. This wouldn’t be too hard to accomplish, but will be tricky to get working reliably.
Often, beans of certain scopes are not available until after the JSF lifecycle has begun. (Depends on the framework,) but that should not stop this general concept, merely certain applications of it.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
Comments are closed.
Get updates from OCPSoft
If you find our tools useful, please consider making a donation to help us stay online and building software!