![]() |
1
1
你会想做一些关于prg的阅读(post/redirect/get)。这是一个好的开始。 https://mobiarch.wordpress.com/2012/08/09/doing-post-redirect-get-pattern-in-jsf-2/ 您希望原始的jsf链接调用一个actionlistener,该actionlistener将创建对mycontroller的作用域引用,并在那里将id属性设置为1……然后您可以使用PRG重定向到您的页面PRG将根据需要使用bean的值正确地构建新的URL。 这个actionListener方法非常简单,只是为了帮助说明…
希望这能帮你开始。 |