当这个属性没有出现或者值为FALSE时,只在portlet请求作用域维护动作的请求参数。
When this attribute isn't present or is FALSE the action's request parameters are only maintained for the duration of the portlet request scope.
OpenSessioninView模式的一个缺点是持久化上下文对象被高效地划定到用户请求作用域内。
A downside of the Open Session in View pattern is that the persistence-context object is effectively scoped to a user request.
这意味着如果一个值是短期作用域存储的,例如页面或请求作用域,那么当JSF生命周期到达RestoreView阶段时,这个值将消失。
This means that if a value is stored in a short-term scope, such as page or request scope, it will be absent by the time the JSF life cycle arrives at the Restore View phase.
conversation作用域内的bean需要更多技巧,因为它们基于对话令牌的存在而与HTTP请求相关联。
Conversation-scoped beans are trickier, though, because they are associated with an HTTP request based on the presence of the conversation token.
引用conversation作用域内的bean不需要任何额外的工作,原因是这些bean总是对在同一个浏览器对话中发出的HTTP请求可用。
Referencing session-scoped beans requires no extra work because they are always available to an HTTP request made within the same browser session.
如果您需要两个这样的对CICS的请求在同一事务作用域内运行,那么有两种解决方案可以讨论。
If you require that two such requests to CICS run in the same transactional scope, then there are two solutions you can consider.
ODR将以 “应用程序为作用域”把传入的HTTP请求路由到任何能够处理请求的目标服务器中。
The ODRs will route the incoming HTTP requests in an “application scoped” fashion to any target server capable of servicing the request.
使用长期运行的对话,允许变量保持作用域直至对话结束,而不仅仅是单个请求。
Using a long-running conversation allows variables to remain in scope until the end of the conversation, instead of merely for a single request.
如果一个bean含有request作用域,它会在收到请求时被实例化。
If a bean has a request scope, it is instantiated on receipt of every request.
conversation作用域提供了在一组明确定义的请求期间临时维护状态的方法。
The conversation scope provides a means of temporarily maintaining state over a well-defined series of requests.
例如,Guiceservlet包提供了两个其他作用域:Request和Session,它们为servlet请求和servlet会话提供类的一个独特实例。
As an example, the Guice servlet package supplies two additional scopes: request and session, which serve up a unique instance of your class per servlet request and servlet session.
page 作用域指出这项设置只适用于当前页,而request 作用域将它应用于请求期间访问的所有JSP页面。
The page scope indicates that the setting is only applicable over the current page, while the request scope applies it to all JSP pages accessed during a request.
现代Web框架还有会话、请求等不同作用域范围的组件,框架会在进入作用域的时候相应地处理依赖注入。
Modern web frameworks have session and request scoped components and handle the dependency injection for them as those scopes come into life.
从日志文件可以看出,用户对why.html页面的请求比较频繁,但是如果您认为how.html 对于用户更为重要,那么只需修改相应的作用域值对排序做出纠正。
Users may more frequently request the why.html page according to the log files, but if you know it's more important they know the how.html, simply provide corresponding scores for correct sorting.
清单5展示了如何使用本地J SF在作用域为该请求的支持bean中准备一个课程集合。
Listing 5 demonstrates how you might prepare a collection of courses in your request-scoped backing bean using native JSF.
在这个样例中,请求者可以在整个流程作用域内取消请求。
In this sample, the requester can cancel the request within the whole process scope. You can add an event handler to the process scope by following these steps.
用户可以毫不费力地创建出自己的作用域和自定义事件(比如web请求的作用域)。
Users can easily create their own scopes and set up custom events (e.g. a web request scope).
用户可以毫不费力地创建出自己的作用域和自定义事件(比如web请求的作用域)。
Users can easily create their own scopes and set up custom events (e.g. a web request scope).
应用推荐