0

I need to go to page by selecting data table row. Using ajax event have some problems.

FacesContext context = FacesContext.getCurrentInstance();
NavigationHandler navigationHandler = context.getApplication().getNavigationHandler();
navigationHandler.handleNavigation(context, null, "/views/questionnaires/viewDetails.xhtml?faces-redirect=true&questionnaireId=" + 1);

But also i need to pass parameter to target page bean.

@ManagedProperty(value = "#{param.questionnaireId}")
private Long questionnaireId;

And it's not working. How to do it correctly?

4

1 に答える 1