Questions tagged [prettyfaces]

PrettyFaces is the leading `/url/#{rewriting}` solution for Servlet, JSF, and Java EE

Pretty Faces

PrettyFaces is an OpenSource Filter-based Servlets extension with enhanced support for JavaServer Faces – JSF 1.1, 1.2 and 2.x – enabling creation of bookmark-able, pretty URLs.

PrettyFaces solves the “RESTful URL” problem elegantly, including features such as: page-load actions, seamless integration with faces navigation, dynamic view-id assignment, managed parameter parsing, and configuration-free compatibility with other web frameworks.


Features:

URL Rewriting — Replace ugly URLs: “/faces/page.jsf” with pretty, SEO-friendly, human URLs: “/optimized/page/”; The client browser never sees your original URLs, even in the source-HTML

Dynamic view IDs — Now with dynamic view ID mapping for URLs (through El method expressions,) you can show different views based on run-time conditions, effectively de-coupling the URL from the JSF view.

Page-load actions — Call one or more action-methods, at one or more phases, before rendering a view.

Managed parameter parsing — HTTP parameters parsed from URLs are stored in managed beans, simply get a reference to your parameter bean for easy access from other Java classes.

Navigation by ID — Define your page IDs in one place, reference them easily in action-methods and components, using standard JSF navigation techniques. Integrated validation — For URL and query-parameters, able to re-use existing JSF validator objects.

Integrated validation — For URL and query-parameters, able to re-use existing JSF validator objects.

Easy to configure — Requires absolutely minimal configuration; may be enabled using XML or annotations.


See Also

256 questions
0
votes
1 answer

how to hide login view name in using pretty faces

I have one application running on tomcat sever.I removed the path in in server.xml so i am able to access the application like http://localhost:8080/login.xhtml I am using Pretty faces as well for URL rewrite. Now i want to know how to send a…
Rahul Singh
  • 781
  • 11
  • 27
0
votes
2 answers

Weird JSF PrettyFaces Exception

Hi i get an exception from time to time (can't reproduce) and don't know what to do.. Here is the stacktrace: java.lang.NumberFormatException.forInputString 13:46:52,015 ERROR…
Nick Russler
  • 4,608
  • 6
  • 51
  • 88
0
votes
2 answers

Cannot get rid of #.{jsessionid} in urls

So far I have tried two approaches: -1. Add to web.xml: COOKIE -2. Using pretty faces, add to pretty-config.xml:
alehro
  • 2,198
  • 2
  • 25
  • 41
0
votes
1 answer

Unexpected redirect to login page after successful login

I'm using Spring to handle security in my JSF application. I have a login page at /login and I've configured Spring like this:
siebz0r
  • 18,867
  • 14
  • 64
  • 107
0
votes
2 answers

tomcat url behaving different on two machines (jsf 2, spring 3, prettyfaces)

i am developing on two different machines with almost the same specs (Win 7, eclipse juno, tomcat 7) and the source checked out from github. But on my laptop i have a different url behaviour than on my workstation. Entering…
sveri
  • 1,372
  • 1
  • 13
  • 28
0
votes
1 answer

Exception using EL-Injection

I'm currently trying to setup my project using pretty faces. The basic navigation and parameter setting works, but when I'm trying to inject the "locale" into a sessionScoped bin, prettyfaces throws an exception, saying PrettyFaces: Exception…
dognose
  • 20,360
  • 9
  • 61
  • 107
0
votes
1 answer

Download a file with JSF not working with Icefaces

I need to implement a file download functionality for my application. I followed this example Forcing a save as dialogue from any web browser from JSF application but the save dialog never appears while the code executes normally. After I looked at…
user579674
  • 2,159
  • 6
  • 30
  • 40
0
votes
0 answers

How to implement custom navigation handling with pretty faces - unable to pass in required params

using PF 3.3.1, PrettyFaces 3.3.3 and JSF/Mojarra2.1. I have a custom navigation handler to handle "cancel" button on my application pages - the cancel button needs to return to the previous (referring) page. I have implemented a stack-based…
Nena
  • 681
  • 1
  • 10
  • 27
0
votes
2 answers

p:menuItem action and redirecting on action handler - windowId being tacked to end of redirect URL

I have this issue with p:menuItem - using PF 3.3.1, PrettyFaces 3.3.3 and JSF/Mojarra2.1. So I have a set of p:menuItems that need to pass through an "ID" parameter from the current page. However, I do not wish to build a URL of the form: …
Nena
  • 681
  • 1
  • 10
  • 27
0
votes
1 answer

PrettyFaces occasionally uses text/plain instead of text/html

We've been trying to troubleshoot why our application built using JSF 1.2 seems to be rendering the HTML source code instead of rendering the page as expected. We are using PrettyFaces to pretty up the URL. Mozilla Firebug shows an occasional…
Stoodius
  • 11
  • 2
0
votes
0 answers

Seam3 @ViewConfig and pretty-faces mapping id

How can I get id of urlMapping when using pretty faces through the Seam3 @ViewConfig interface? In pretty-config.xml id is specified on url-mapping element.
pseudo
  • 836
  • 1
  • 11
  • 20
0
votes
1 answer

Issue with PrettyFaces 3.32 / JSF 2 / Servlet 3.0

I have an issue. It looks like PrettyFaces is overriding my webservlet url pattern. Part of my pretty-config.xml
Dimman
  • 1,186
  • 4
  • 14
  • 21
0
votes
1 answer

PrettyFaces redirect to RESTful url after login

I'm using PrettyFaces 3.3.3. I have a requirement that if a user tries to view a page, but is not logged in, they are sent to the login page, and then redirected to the original page they wanted to view. Just wondering what would be the best…
JasonI
  • 159
  • 1
  • 15
-1
votes
1 answer

Redirect 404 error with Prettyfaces 3.3.X and JSF 2.2

I want to redirect all 404 errors to a custom url with prettyfaces. I try a lot of thing but i can't find the right solution to my case (despite the lot of post about this) Here some informations web.xml
CrYoSoRe
  • 182
  • 1
  • 8
1 2 3
17
18