Re: How to dynamically inject parameters without having to inject target backingbean

Splash Forums PrettyFaces Users How to dynamically inject parameters without having to inject target backingbean Re: How to dynamically inject parameters without having to inject target backingbean

#22803

nena_99
Participant

Thanks for replying. Can I use PrettyURLBuilder for this? I noticed that PrettyURLBuilder forces an ID at the end. For example, the targetURL that it builds is something like:

/employees/employeeReports/#id

Whereas, what you suggest as url would be something like /employees/employeeReports?id=#id&faces-redirect=true

Also, I tried just tacking the ?id=#id&faces-redirect=true, eg my backing bean action handler returns:

/employees/employeeReports/#id?id=#id&faces-redirect=true – however, the navigation did not redirect me to a different page for some reason. It just reloads the current page. For security reasons, I can’t post the actual source code. However,if you’d like more information, I can post modified pieces.