uklance / tapestry-stitch

Sample components and concepts in Tapestry 5
MIT License
14 stars 7 forks source link

Clientside URL generation #26

Open uklance opened 10 years ago

uklance commented 10 years ago

If we accept the performance hit of a redirect, It's possible to generate URL's clientside.

eg:

http://mysite.com/redirecter/page?page=somePage&acCount=2&ac0=A&ac1=B

Could redirect to

http://mysite.com/somePage/A/B

Using this technique, I'm sure we could generate clientside URL's which proxy through to ComponentResources.createPageLink() and ComponentResources.createEventLink()