PrettyFaces
PrettyFacesÊÇÒ»¸ö¿ªÔ´»ùÓÚ¹ýÂËÆ÷£¨Filter£©µÄServletsÀ©Õ¹ £¬¶ÔJavaServer Faces ¨C JSF 1.1, 1.2ºÍ2.0ÌṩÁËÔöÇ¿Ö§³Ö¡£Äܹ»ÓÃÓÚ´´½¨±ãÓÚÊéÇ©Êղء¢ËÑË÷ÒýÇæÓѺõÄÍøÖ·¡£PrettyFacesÓÅÑŵؽâ¾öÁË¡°RESTful URL¡± ÎÊÌ⣬°üÀ¨ÕâÑùһЩÌØÐÔÈ磺
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.
Easy to configure ¡ª Requires absolutely minimal configuration; may be enabled using XML or annotations.