Re: How to redirect with parameter ?

Splash Forums PrettyFaces Users How to redirect with parameter ? Re: How to redirect with parameter ?

#22406

When you return “pretty:edituser”, make sure that you have set the value of #{userBean.userId} to the value you want to use in the URL. PrettyFaces will extract the value from this location (based on what you have configured in your pattern,) and build the URL accordingly.

In summary:

userBean.setUserId(userObj.getId());
return "pretty:edituser"

But I actually like the syntax that you suggested – perhaps we should consider this for the future.

@christian? thoughts?