传递到另一个 JSF 页面



>我正在尝试将参数从 jsf 页面传递到另一个页面,但我调用的另一个页面甚至不会更改 URl,它只是将"#"添加到现有 url 中。这是索引.xhtml

        <h:commandLink value="details" action="#{ideeBean.details()}">
                  <f:param name="idee" value="in" />
              </h:commandLink>

这是IdeeBean.java

 public String details(){
      return "details";
  }

当我单击命令链接时,URL 从 :http://localhost:8080/gidee/传递到 http://localhost:8080/gidee/# .

为了更改网址,您需要在操作完成后进行重定向。

最新更新