Redirect when http 404

Splash Forums Rewrite Users Redirect when http 404

This topic contains 0 replies, has 1 voice, and was last updated by  welyab 2 years ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #26341

    welyab
    Participant

    Hey.

    Can I do something like this, when JSF bean set response status to 404 and returns?
    Look:


    .addRule(Join.path(“/admin/manager-user/group/{id}”).to(“/faces/pages/admin/systera2/users.xhtml”))
    .where(“id”).bindsTo(El.property(“urlParams.groupId”))
    .when(new HttpErro404Condition(servletContext)) ///// <<<<<<<<<< THE PROBLEM
    .perform(Forward.to(“/faces/pages/erros/404.xhtml”));

    I’d like no change the URL when user by ‘id’ not found. And, to keep ‘users.xhtml’ clean, handle only users, and shown the error in other page…

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Comments are closed.