Smart url-rewrite.

Splash Forums PrettyFaces Users Smart url-rewrite.

Tagged: ,

This topic contains 4 replies, has 3 voices, and was last updated by  Lincoln Baxter III 7 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17776

    0swald
    Participant

    Hi.

    com.ocpsoft.pretty.faces.rewrite.Processor is a great idea. What about making Processor aware of business logic inside JSF classes? Is it possible?

    Somewhat like having ApplicationScoped managed bean implementing Processor interface and performing smart rewrites. Or other means of providing particular Processor instance to Pretty rewrite engine.

    #20146

    I think we could do this. We are always looking for extension points that we can provide to make PrettyFaces more extensible.

    What’s your usecase for writing a custom Processor? Perhaps it is something we could integrate into PrettyFaces?

    #20147

    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 :)

    the dev mailing list is at: http://groups.google.com/group/prettyfaces-dev if you want to get involved in that.

    –Lincoln

    #20148

    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.

    #20149

    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.