Reply To: Need some help with rewrite setup

Splash Forums Rewrite Users Need some help with rewrite setup Reply To: Need some help with rewrite setup

#25361

Hey,

first of all: Thanks for attending my talk. It’s nice to hear that you are interested in Rewrite and would like to give it a try. 🙂

I just had a quick look at your app. It looks like you are using plain <a> links in your HTML file that you would like to rewrite. Unfortunately this won’t work. In this case that link won’t be processed by HttpServletResponse.encodeUrl() and therefore rewriting won’t work. Rewrite uses this method as a central place to integrate the outbound rewriting into application. All of the JSF tags will use this method for encoding. So try using h:link instead like shown in my slides. This should work fine.

BTW: You will find my slides here if you would like to have a look:

Christian