我只是在玩Java EE7教程中的简单流示例,发现了一个问题。
示例:/examples/web/jsf/simple-flow/
我很困惑,因为流在返回页面后会记住FlowScope中的数据。
手册中的示例代码:
src/main/webapp
index.xhtml
simple-flow-return.xhtml
WEB_INF/
web.xml
simple-flow
simple-flow-flow.xml
simple-flow.xhtml
simple-flow-page2.xhtml演示:
Enter flow
--> Value = test
--> Second Page - Value: test
--> Return
--> Value (should be empty): "" --> Correct!
--> Back to start
--> enter flow
--> Value: test (THIS VALUE IS REMEMBERED AND ALREADY FILLED IN!)为什么要记住这个价值?我离开了返回页,值是空的,但现在又记起来了!
有谁对这个例子有同样的问题吗?(在GlassFish和WildFly上测试)
发布于 2015-02-16 15:27:36
我们取得了一些进展:使用本教程中的简单流示例,但使用托管bean。
https://stackoverflow.com/questions/28480504
复制相似问题