Custom Servlets

Splash Forums PrettyFaces Users Custom Servlets

This topic contains 3 replies, has 2 voices, and was last updated by  Christian Kaltepoth 10 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #17908


    Every thing from the JSF works fine, Great Work!

    But when I try to map url from my servlet and filter class using customredirector


    new CustomRedirector().redirect(request, response,




    Can you point me where is the problem.

    I spent a couple of days on figuring out this….

    mojarra 2.1.1


    prettyfaces 3.2.0



    I just had a quick look at the code and it seems like the NullPointerException is occurring because you supply null for the parameters. Try an empty map or list depending on what build method of PrettyURLBuilder you are calling.

    Another thing I saw: You supply “pretty:adminlogin” for the mapping ID. That is not correct. The prefix pretty: is just used for JSF navigation to identify the action outcome as a PrettyFaces navigation case. The mapping ID is “adminlogin”. So you will have to use this when calling the CustomerRedirector.



    Thanks Christian,

    That’s true I supplied null… which should be in my case

    Map<String, String[]> param = new TreeMap<String, String[]>();

    String targetURL =, false, param);

    that’s it, Awesome!


    Nice to hear that its working now.

    In the meantime I added some additional null checks to PrettyURLBuilder so that even supplying null for the parameters should work in the future.


Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘PrettyFaces Users’ is closed to new topics and replies.

Comments are closed.