Reply To: Split: PrettyFaces + Anchor with JavaScript window.location redirect?

Splash Forums PrettyFaces Users Split: PrettyFaces + Anchor with JavaScript window.location redirect? Reply To: Split: PrettyFaces + Anchor with JavaScript window.location redirect?

#25554

ravindra
Participant

Hi Sir,

Thanks great help from your side

One More Issue

I configure rewrite things successfully ,i added one rule in ConfigurationProvider class

import javax.servlet.ServletContext;
import org.ocpsoft.rewrite.annotation.RewriteConfiguration;
import org.ocpsoft.rewrite.config.ConfigurationBuilder;
import org.ocpsoft.rewrite.servlet.config.HttpConfigurationProvider;
import org.ocpsoft.rewrite.servlet.config.rule.Join;

@RewriteConfiguration
public class PrettyConfigurationProvider extends HttpConfigurationProvider {

@Override
public org.ocpsoft.rewrite.config.Configuration getConfiguration(ServletContext t) {
return ConfigurationBuilder.begin()
.addRule(Join.path(“/p/viewDetails”).to(“/pages/ViewDetaails.xhtml”).withInboundCorrection());
}

@Override
public int priority() {
return 10;
}
}

and registered com.ocpsoft.pretty.faces.spi.ConfigurationProvider in META-INF

when am navigating to viewDetails console returning following error

javax.servlet.ServletException: Error during Rewrite processing. Please inspect stack trace for root cause.

How can i resolve this ?

Thanks & Regards
Ravindra

  • This reply was modified 8 years, 1 month ago by  ravindra.