See http://svn.apache.org/repos/asf/tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/engine/encoders/PageServiceEncoder.java for an example.
Implementing both decode and encode of ServiceEncoder is all it takes. Perhaps you might also like to declare your encoder to be before all other encoders (or before the external encoder) >From Michael Lake <[EMAIL PROTECTED]>: > > Thanks for replying, > > okay, so I've got this "redirect after post" pattern thing figured out.. > > The code below is what i'm using. > > @InjectObject("engine-service:external") > public abstract IEngineService getExternalService(); > > public ILink onSearch() { > > Object[] parms = new Object[] { "cracker jack"}; > ExternalServiceParameter externalServiceParameter = new > ExternalServiceParameter( > "Search", parms); > return getExternalService().getLink(false, > externalServiceParameter); > } > > > It produces the following URLs > > (browser w/ cookies enabled) > /app?page=Search&service=external&sp=Scracker+jacks > > (browser without cookies) > /app;jsessionid=D08FA30C1581452151C45CC59BC37159?page=Search&service=external&sp=Scracker+jack > > > Everything is hanky-dory, but now i'd like to go a little further.. > > what if I really want to clean this up and make a "friendly" url? > > for example, if I want it to redirect to something like the following > /q/cracker+jack/ > > I've skimmed the Tapestry page on setting up web.xml and hivemind to > accept a friendly URL > http://jakarta.apache.org/tapestry/UsersGuide/friendly-urls.html > > looks like that can take an "in" URL, but how would I create a "friendly > ILink" from within tapestry? > > > -Mike Lake > > > Barry Books wrote: > > > I would make the form listener do a redirect to an external page with the > > search parms > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]