Reply To: Thoughts after migrating from Rewrite v1 to v2

Splash Forums Rewrite Users Thoughts after migrating from Rewrite v1 to v2 Reply To: Thoughts after migrating from Rewrite v1 to v2

#23978

Hey,

thank you very much for your feedback. I think this will be very handy for others migrating to Rewrite 2.0.x.

We should really create some kind of migration guide. And you post could be the first start for this.

A few notes regarding you post:

2) I think rewrite-servlet already existed before. Actually this artifact is an aggregation of other artifacts like rewrite-impl-servlet. But including rewrite-servlet is the recommended way.

6) It is weird that exceptions aren’t logged correctly. By default Rewrite logs to java.util.logging. Perhaps you could try to add one of the logging adapters like the one for SLF4J. After adding the adapter, Rewrite will log to SLF4J instead. Perhaps this will fix the problem:

http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.ocpsoft.logging%22

7) Could you update to 2.0.2.Final a check if this still happens?

8) You are using a h:outputLink to render a link that just links to an anchor on the same page. But I’m not sure what this exception is caused by exactly. But you can easily work around this by manually rendering the link, which would also be good for performance reasons because you component tree will be smaller:

<a href="#article#{articleId}">link</a>