Re: Can Pretty Faces/Rewrite help me?

Splash Forums PrettyFaces Users Can Pretty Faces/Rewrite help me? Re: Can Pretty Faces/Rewrite help me?



I’ll try to answer you questions one by one.

1. I think that most people are using the Facelets templating mechanism to define similar views. To be honest, I don’t fully understand why you are having duplicated views in your application. But PrettyFaces and Rewrite definitely allow to build an abstraction layer separating URLs visible to the user from the actual views rendered.

2. No, PrettyFaces doesn’t provide an easy way to set request attributes. Typically managed beans are used to represent state in a JSF application. I’ve never heard that someone used request attributes for this. And to be honest, I don’t see any reason for doing something like this.

3. If you are using Rewrite, it should be very simply to implement ANY behavior you want. Especially setting request attributes is easy. PrettyFaces 4.0 is currently in heavy development. I think we will have a “preview version” out soon. But the API and structure of PrettyFaces 4.0 is still very likely to change. But you could also use the JSF integration of Rewrite for now. This should do everything you need. However we are planning that PrettyFaces 4.0 will replace the Rewrite JSF integration module in the future.