very interesting approach. I never thought about doing it this way. Nice catch.
But you are right. The fact that this works only for strings isn’t very userfriendly. But actually I’m a bit surprised that it doesn’t work for other primitive types like int, long, etc. Because this works fine for path parameters directly injected into beans.
However there is currently no more active development done for PrettyFaces 3.x because we are working hard on PrettyFaces 4.0, which will be based on OcpSoft Rewrite and has been rewritten from the scratch. So if you are interested in this feature, you could maybe take a look at Rewrite and test if it works there like expected. And if it does, I see no reason why it should work in PrettyFaces 4.0.