简体   繁体   English

在ADF页面刷新中

[英]In ADF Page refresh

I have three tables in a page. 我在页面中有三个表。 When I click on a button, I update only one of the tables. 当我单击一个按钮时,我只会更新其中一个表。 But since I use request scope on button event, the page reloads fully and updated value gets lost. 但是由于我在按钮事件上使用了请求范围,因此页面会完全重新加载,并且更新后的值会丢失。 Can you suggest a solution, so that my data will be displayed after button event. 您能否提出解决方案,以便在按钮事件后显示我的数据。

Have you tried to set partialSubmit="true" in your button? 您是否尝试过在按钮中设置partialSubmit =“ true”? If you set this attribute, you must set in each table a PartialTriggers to the button. 如果设置此属性,则必须在每个表中为按钮设置PartialTriggers。

I hope help you. 希望对您有帮助。

Marcos. 马科斯

The data has to be in the viewScope/pageFlowScope depending on whether its in a bounded taskFlow or not. 数据必须在viewScope / pageFlowScope中,这取决于它是否在有限的taskFlow中。

And in your button event you need to update the data in the viewScope/pageFlowScope and then bind your tables with those data. 在按钮事件中,您需要更新viewScope / pageFlowScope中的数据,然后将表与这些数据绑定。

All the event handlers can be in backingBean scope and not necessarily be in requestScope. 所有事件处理程序都可以在backingBean范围内,而不必在requestScope中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM