考虑以下配置:
@URLMapping(id = "programaManter", parentId = "homeTreinamento", pattern = "/programa/#{id : programaManter.id}", viewId = "/pages/treinamento/ProgramaManter.xhtml")
让我们说我需要导航到 / programa / 1 。我尝试了以下内容:
return "/pages/treinamento/ProgramaManter.xhtml?faces-redirect=true&id=" + id;
但是,如果不是导航到 / programa / 1 ,而是导航到 / programa /?id = 1 ,我怎样才能强制它使用path参数来构建url查询参数?
答案 0 :(得分:1)