Reply To: DynaView causes NPE in PrimeExceptionHandler

Splash Forums PrettyFaces Users DynaView causes NPE in PrimeExceptionHandler Reply To: DynaView causes NPE in PrimeExceptionHandler

#26665

delomer
Participant

OK thank you Christian, i will try to migrate to Rewrite.
But i can’t find any exmaples that show how to determine the view-id at runtime with Rewrite?

How do I make this pretty-faces configuration with Rewrite?

<url-mapping id="view-2-mapping">
    <pattern value="/view/2" />
    <view-id value="#{dispatcher.getViewPath}" />
</url-mapping>