Friendly URLs Page

JumpStart Max includes the configuration code for friendly URLs but it is not enabled. If you wish to enable it, do this: The normal URLs for Tapestry's engine services were described in Engine Services and Restart. Here's the equivalent list when friendly URLs are enabled.

Components on this page include PageLink, ServiceLink, DirectLink, Submit, ImageSubmit, LinkSubmit, and ExternalLink.

To Login
Engine Service What it does Example of How To Invoke it Demo Method Friendly URL Generated by the Component
page Goes to a page. jwcid="@PageLink" page="pages/examples/simple/HelloWorldPage" Hello World GET pages/examples/simple/HelloWorldPage
restart Discards the session and restarts the app. jwcid="@ServiceLink" service="restart" restart GET /restart.svc
home Takes you Home, as specified in .application.
jwcid="@ServiceLink" service="home" home GET /home.svc
reset Discards all cached data if org.apache.tapestry.enable-reset-service=true. See Configuring Tapestry. jwcid="@ServiceLink" service="reset" reset GET /reset.svc?page=pages/examples/infrastructure/ FriendlyURLsPage
direct Invokes a listener in the current page. The direct service is the workhorse of Tapestry. jwcid="@DirectLink" listener="listener:doToPage2" To Page 2 GET /pages/examples/infrastructure/FriendlyURLsPage, $DirectLink_0.direct
jwcid="@Submit" action="listener:doToPage3" POST /pages/examples/infrastructure/FriendlyURLsPage, $Form.direct
jwcid="@ImageSubmit" action="listener:doToPage3" POST /pages/examples/infrastructure/FriendlyURLsPage, $Form.direct
jwcid="@LinkSubmit" action="listener:doToPage3"
[uses javascript to generate a POST]
To Page 3 POST /pages/examples/infrastructure/FriendlyURLsPage, $Form.direct
external Goes to a page that can be referenced externally, ie. a page that implements IExternalPage. jwcid="@ExternalLink" page="..." parameters="ognl:{'Hi', 'There'}" To ReturnAnywhereUCPPage GET /external.svc?page=...&sp=SHi&sp=SThere
asset Used behind the scenes to get images and other assets. n/a