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
2 answers

Set confirmation link parameter in bean using PrettyFaces

I'm trying to send an email confirmation link in JSF 2.0. The correct link is sending to the user's email without any problems, but I'm struggling to have the link redirect to the correct page when the user clicks on it. I am trying to use pretty…
0
votes
1 answer

PrettyFaces not working under WildFly

I use PrettyFaces to URL-rewriting, I used Glassfish 4 as application server and I was managing well the urls with prettyfaces, but after migration of server to WildFly 8.0 I can not get the page using its id defined in pretty-config.xml (I can get…
SSouhaieb
  • 248
  • 5
  • 16
0
votes
1 answer

JSF with Prettyfaces navigation

I'm using JSF 2.2 with PrettyFaces 3.3.3 in my Entreprise Application. I'm wondering if the way I handle navigation is correct (AdminCompaniesController.java) : @ManagedBean(name = "companiesBean") @ViewScoped @URLMappings(mappings={ …
Thrax
  • 1,926
  • 1
  • 17
  • 32
0
votes
1 answer

ManagedBean losing data when named

I'm using JSF 2.2 with PrettyFaces 3.3.3 in my Entreprise Application. I mapped my Bean with Annotations (AdminCompaniesController.java) : @ManagedBean @ViewScoped @URLMappings(mappings={ @URLMapping(id = "admin-companies", pattern =…
Thrax
  • 1,926
  • 1
  • 17
  • 32
0
votes
1 answer

Pretty Faces multiple annotation, which one was loaded?

I have a multiple PrettyFaces annotation on a Managed Bean, how do I determine from which entry point the page was loaded without looking at parameters passed ? import com.ocpsoft.pretty.faces.annotation.URLAction; import…
alexedy
  • 1
  • 1
0
votes
1 answer

Dynamic view id using pretty faces navigation refuses to work

I am attempting to migrate an application from JSF 1.2 to JSF 2.1. The code below worked in the 1.2. I am using PrettyFaces 3.3.3, MyFaces 2.1. in pretty-config.xml:
Brett
  • 3
  • 3
0
votes
2 answers

URL mapping of /test to /home/index.jsf only results in 404

I've been trying to set up OCPsoft's Rewrite http://ocpsoft.org/rewrite/examples/ for JSF 2.2. My setup: JSF 2.2 Tomcat 7 Servlet Container 3.0 Maven Project URLRewrite Version 2.0.12 My pom.xml includes the following two dependencies