Brad,

Rather than looking for a component which does this, I would recommend a
simple Filter mapped to the "office/*" url which forwards the request to
the appropriate resource.

And for generating the URLs, you can implement a static function and
include it in your tag library.

Cheers,
Keyur

-----Original Message-----
From: Brad Smith [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 03, 2006 8:36 AM
To: MyFaces Discussion
Subject: REST-like URLs?

I am working on a JSF application (using myfaces of course) that tracks
project activity and other data for a large organization with many
offices that are organized hierarchically. A couple of examples might
help explain what I am after:

http://www/webapp/office/region1/all would display all the projects in
region 1, including projects from all local offices in the region.

http://www/webapp/office/region1/office10 would display projects in
office10.

There are many hundred local offices for this organization. The "path"
information after ../office would not point to resources in the
application file system, rather they would point to resources that are
managed in a database.

Is there a component in MyFaces that would help to automate the
construction of such URLs for display and also parse the URL when
entered into a web browser?

Thanks,

Brad

Reply via email to