Public render parameters or portlet events.
使用公共呈现参数还是使用Portlet事件。
Web behavior support with public render parameters.
使用公共呈现参数的Web行为支持。
Public render parameters have the following features.
公共呈现参数具有以下特性。
The SearchResult portlet retrieves the render parameters, and performs the search.
SearchResultPortlet检索呈现参数,然后执行搜索。
Parameters sent from the legacy Web page are included as render parameters in the URL.
从遗留Web页发送的参数作为呈现参数包含在该URL 中。
It retrieves the render parameters from the URL that is built using URLGenerator class.
它从使用URLGenerator类构建的URL中检索呈现参数。
These render parameters become valid in the render request that follows the action request.
这些呈现参数将在操作请求后的呈现请求中变为有效。
There are advantages to using render parameters other than just to address a specific portlet view.
与对特定的Portlet视图寻址相比,使用呈现参数有很多优势。
As a result of the invocation of any link, the portlet may define a set of current render parameters.
作为任何链接调用的结果,Portlet可能会定义一个当前呈现参数集。
Render links associate a set of render parameters with the request that is issued when the link is invoked.
呈现链接将一组呈现参数与调用链接时发出的请求关联。
During the action phase of a portlet, render parameters can be set for the portlet's subsequent render phase.
在Portlet的操作阶段,可以为Portlet的后续呈现阶段设置呈现参数。
Render links associate a new set of render parameters with the request that is issued when the link is invoked.
呈现链接,将新的呈现参数集与调用链接时发出的请求关联。
Besides portlet events, public render parameters represent an alternative way for coordination between portlets.
除了Portlet事件以外,公共呈现参数代表Portlet之间的替代协作方法。
In the case of a render link, the render parameters are the parameters encoded on the link that has been invoked.
对于呈现链接,呈现参数为在被调用的链接上编码的参数。
This implies that every single URL on the page needs to contain all render parameters of all portlets on that page.
这意味着页面上每个URL都需要包含该页上的所有Portlet的所有呈现参数。
The new rendering portlet no longer requires a session to store its data, but instead USES render parameters that are encoded in the URL.
新的呈现portlet不再需要使用会话来保存其数据,而是使用编码到URL中的呈现参数。
For example, when the user presses the browser's reload button, the portlet gets the same render parameters again and can render the same view.
例如,当用户按下浏览器的重新加载按钮时,portlet再一次获取相同的呈现参数,并能够呈现相同的视图。
In this very simple example it is possible to calculate the new set of render parameters by copying the current set and overriding only one key.
在这个非常简单的示例中,通过复制当前呈现参数集并只覆盖一个键,就可以计算新的呈现参数集。
The portlet can leverage all the information in the portlet context, like portlet mode, window state, render parameters, or portlet preferences.
Portlet可以利用 Portlet上下文中的所有信息,例如 Portlet模式、窗口状态、呈现参数或 Portlet首选项。
The portlet is free to alter session state or backend state during this phase and associates new render parameters at the end of the action phase.
在此阶段,Portlet可以自由地更改会话状态或后端状态,并在操作阶段结束时关联新呈现参数。
Examples for this include rendering different resources based on the portlet mode, window state, current render parameters, or portlet preferences.
这样的示例包括基于Portlet模式、窗口状态、当前呈现参数或Portlet首选项呈现不同资源。
In general, we recommend that portlets minimize the number and size of render parameters as much as possible so that the risk of invalid URLs decreases.
通常,我们建议Portlet尽可能使呈现参数的数量和长度保持最小,从而降低产生无效url的风险。
This concept means that render parameters can provide the expected user behavior inside portlets for browser operations such as bookmarking and back-button.
此概念意味着呈现参数可以在Portlet中为诸如书签和返回按钮等浏览器操作提供预期的用户行为。
Each URL for a portal page correctly restores portlet internal navigational state such as user selection, if that state is represented as render parameters.
如果将Portlet内部导航状态表示为呈现参数,则门户页面的每个URL将正确地恢复该状态,例如用户选择。
As a general rule, use public render parameters where you can, and use portlet events for more complex cases for which render parameters are not sufficient.
根据一般经验,应该在可使用公共呈现参数的场合使用公共呈现参数,并对呈现参数不足够的较复杂情况使用Portlet事件。
A resource URL contains the current transient state of the portlet (portlet mode, window state, render parameters), but cannot set new values for this state.
资源URL包含当前Portlet的瞬时状态(Portlet模式、窗口状态和呈现参数),但不能为此状态设置新值。
As we have seen from the preceding discussion, public render parameters can be regarded as a more lightweight communication alternative compared to portlet events.
正如我们从前面的讨论中看到的,可以将公共呈现参数视为对Portlet事件的较轻量级的通信替代方法。
The combined render parameters of all addressed portlets forms the complete navigational state of the system that needs to be encoded into every URL on a portal page.
所有可寻址的Portlet的呈现参数组合形成了需要编码到门户页面上的每个URL中的完整系统导航状态。
Note that the render link contains the complete set of render parameters for the next request, not only the modification with respect to the current render parameters.
请注意,呈现链接包含下一个请求的呈现参数的全集,而不只是相对于当前呈现参数的修改。
For public render parameters, you can use product-specific APIs in one portlet to generate a link to another portlet on a different page and set a public render parameter for the target.
对于公共呈现参数,您可以在一个Portlet中使用特定于产品的API生成指向不同页面上的另一个Portlet的链接,并为该目标设置公共呈现参数。
应用推荐