On Wed, 2008-04-02 at 17:15 +0200, arne anka wrote: > > See here: > > http://wiki.apache.org/myfaces/FAQ#StaleLink > > ah, thanks a lot. > but, alas, it is more like a better description of the problem with two > proposals to work around but no real solution. > i would think a lot of people is bothered by this ... > > not real myfaces: but is there a way to configure an apache+tomcat+jk2 so > the url is _always_ http://localhost/foo/?
The thing is that a lot of clever people have thought about this, and not been able to come up with a way for an app to: (a) use forwarding internally for efficiently, and (b) show the url of the "current page". Http simply does not support this. It's not a JSF issue, it's something that any webapp that does forwarding internally will face. If there was a solution, it would have been implemented by now. The only *known* solution is to use http "forwarding" instead of internal forwards, as explained on that page. But as the page explains, it does have other problems. Simple apps (those whose params are guaranteed to fit in a GET query's params) can avoid this, but that is just not the niche that JSF lives in. Perhaps we (stateful webapp writers) should be more involved with the W3 and WhatWG groups to push for the features that we need to make this work properly. But even if successful, that would take years to be effective. Regards, Simon

