May 17

Nowadays having SEO friedly links is very important if you want to list higher on the search engines. And with JSF this can be a big pain in the a**. There is an extension available called prettyfaces. For my applicaiton i thought of first using prettyfaces rather then developing my own enhancement to save me some time. But then i ended up developing my own prettyfaces:) as i wanted some extra functionality specific to my application which wasn’t possible using prettyfaces.

So i have my own custom tag called this tag along with some other params takes in the href paramter and rewrites it to a SEO friendly link and outputs it.

Then when this link is clicked you need to convert it back to the normal link for example with parameters. For that you need to have a servlet defined in your web.xml which gets the SEO friendly URL rewrites it to a normal url and then dispatches it to your faces servlet.

If you want to have a look at my application using this enhancement to convert the links to SEO friendly links visit www.usedgaadi.in, its running on JSF!

Tagged with:
preload preload preload