So far I have everything working the way that I want but I ran into something odd while implementing this:
http://tapestry.apache.org/tapestry4/UsersGuide/friendly-urls.html

specifically I am implementing the REST-like part of the friendly urls the custom encoder. I created my own encoder/decoder pair but when I call it for an external link I get this as my url:
http://localhost:8080/eventscalendar/event/l1

After looking at this again I finally realized what that extra character is, it is telling Tapestry that the value I'm passing is a Long (which it is when it gets set on the wire), is there a way (short of changing the actual value passed to an int) to get this to remove the extra param, or am I stuck with it if I want to change it?

Also, I am curious if anyone has developed a full-blown REST plugin for Tapestry so that all the urls are easily mappable (ala Rails). So that something like this
http://localhost:8080/eventscalendar/events/
would go to a default page like EventsHome.html and
http://localhost:8080/eventscalendar/events/new
would go to NewEvent.html
etc.

It would be nice if we could easily do routes like Rails does in a default Tapestry app, rather than having to jump through two files (web.xml and hivemodule.xml).

-warner

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to