Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

PrettyFaces URLRewrite for Servlet & JavaEE @ Devoxx 2010

on

  • 2,821 views

PrettyFaces presentation at Devoxx 2010

PrettyFaces presentation at Devoxx 2010

Statistics

Views

Total Views
2,821
Views on SlideShare
2,821
Embed Views
0

Actions

Likes
0
Downloads
27
Comments
1

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    PrettyFaces URLRewrite for Servlet & JavaEE @ Devoxx 2010 PrettyFaces URLRewrite for Servlet & JavaEE @ Devoxx 2010 Presentation Transcript

    • Beautiful Java EE: URL-rewriting for the next generation web-user
        Lincoln Baxter, III – JBoss by Red Hat , Inc .
      pretty faces
      • # devoxx # prettyfaces ( At this time, the audience is encouraged to use PDAs, cell phones, and other portable electronic devices... )
      • Lincoln Baxter, III ( @lincolnthree , @ocpsoft )
        • Senior Software Engineer – JBoss, by Red Hat – Seam Team
        • Expert Group Member (jcp.org) of JavaServer Faces and #{EL.next}
        • Open-source advocate (addict)
        • Founder of http://ocpsoft.com/
        • Creator of PrettyFaces & PrettyTime utilities for Java EE & Java
        • http://seamframework.org
        • http://jboss.org
        • PrettyFaces
          • background
          • basics
          • demo
          • conclusion
        URL-rewriting for Servlet, JSF, and Java EE with:
        • Initially developed as a URL-rewriting extension for Java Server Faces.
          • Enabled bookmarks in JSF 1.2
        • Grown to become feature-rich as more users contribute.
        • Does what you mean, and what you say.
        • Now evolving beyond JSF, into pure Servlet and Java EE.
      • http://www.llbean.com/webapp/wcs/stores/servlet/CategoryDisplay? categoryId=28 & storeId=1 & catalogId=1 & langId=-1 & nav=hp-gndp http://www.llbean.com/webapp/wcs/stores/servlet/CategoryDisplay?categoryId=28&storeId=1&catalogId=1&langId=-1&nav=hp-gndp It's about avoiding this... Vulnerable! Cluttered! Real-life: wtf? wtf?
      • It should have been... http://llbean.com/kids
        • PrettyFaces
          • background
          • basics
          • demo
          • conclusion
      • PrettyFaces is... “ A URL rewriting extension for Servlet containers, Java EE, with optional tight-integration for JSF and other frameworks.”
      • <url-mapping> <pattern value = ”/ store ” /> <view-id> / faces / store .xhtml </view-id> </url-mapping> http://example.com/ store http://example.com / faces/ store .xhtml
      • PrettyFaces is... “ A URL parameterization framework.”
      • <url-mapping> <pattern value = ”/store/ #{ category } / #{ item } ” /> <view-id> /faces/store.xhtml </view-id> </url-mapping> http://example.com /store/ shoes / xrunner-pro request.getParameter(“ category ”) == “ shoes ” request.getParameter(“ item ”) == “ xrunner-pro ”
      • <url-mapping> <pattern value = ”/store/ #{ category } / #{ item } ” /> <view-id> /faces/store.xhtml </view-id> </url-mapping> http://example.com /store/ shoes / xrunner-pro http://example.com /faces/store.xhtml? category = shoes & item = xrunner-pro + =
      • PrettyFaces is... “ An action framework for JSF.”
      • <url-mapping> <pattern value = ”/store/#{ category }/#{ item }” /> <view-id> /faces/store.xhtml </view-id> <action> #{ storeBean . loadItem } </action> </url-mapping> http://example.com /store/ shoes / xrunner-pro public String loadItem() { ... }
      • PrettyFaces is... “ A simplified navigation framework for JSF.”
      • public String loadItem() { if( itemNotFound ) { addMessage(“Sorry, we could not find that item.”); return “pretty: store ”; -> http://example.com/store } else { return null; } }
      • <url-mapping id=”store” > <pattern value = ” /store ” /> <view-id> /faces/store.xhtml </view-id> </url-mapping>
      • PrettyFaces is... “ Extendable, configurable.”
      • com.ocpsoft.pretty.faces.spi. ConfigurationProvider com.ocpsoft.pretty.faces.spi. ConfigurationPostProcessor com.ocpsoft.pretty.faces.spi. ELBeanNameResolver … com.ocpsoft.pretty.faces.spi. More ?
      • PrettyFaces is... “ Freedom to choose.”
      • “ The future is not set.” .jsp .jsf .php ??? .do .cgi .asp
      • “ There is no fate, but what we make for ourselves.” /
        • PrettyFaces
          • background
          • basics
          • demo
          • conclusion
        • Demo
        • PrettyFaces
          • background
          • basics
          • demo
          • conclusion
        • URL-rewriting
        • URL-parameterization
        • Action-framework for JSF (Servlet soon)
        • Navigation framework for JSF (Servlet soon)
        • Extendable, configurable
        • Doing what you mean, and what you say.
        • Waiting for your ideas!
        PrettyFaces is...
      • “ Beautiful Java EE : URL-rewriting for the next generation web-user ” PrettyFaces is...
      • ? GET / PrettyFaces ? slide=questions