Reply To: Search Filter Dynamic Url

Splash Forums PrettyFaces Users Search Filter Dynamic Url Reply To: Search Filter Dynamic Url

#25606

Yes…

.addRule()
.when(Direction.isInbound().and(Path.matches("/p/search/{filters}")))
.perform(Forward.to("/pages/search.xhtml{filters}"))
.where("filters").matches(".*").transposedBy(new Transposition<String>() {
   public String transpose(Rewrite event, EvaluationContext context, String value) {
       // convert the '/blah=23/foo=sd/' format to your query string format here and return it.
   }
});