English 中文(简体)
另一页的首页更新部分
原标题:Primefaces update component on another page

我为 db 添加了一个值,而当前页面的 S 组件通过 UPDATE="client_id_of_the_party" 成功更新。 现在,我想要更新另一个页面上的一些组件。 例如, ive country db 表格。 现在在另一个页面上, i m 使用下拉列表中的所有国家。 现在, 当有人添加一个新的国家时, 我希望在另一个页面上更新主面的 p: selectonemenu (在另一个页面上 ) 。

如何更新它? 感谢

最佳回答

您可以使用 Primefaces Poll 组件来做 ajax 请求每 X 秒数检查应应用到下载的更改 。

问题回答

暂无回答


上一篇:
下一篇:


相关问题
JSF a4j:support with h:selectManyCheckbox

I m having trouble with a JSF selectManyCheckbox and A4J support. The purpose is to run some action when a checkbox is selected. This works perfectly in Firefox. Yet, when testing in any IE (ie6 / ie7 ...

Mojarra for JSF Encoding

Can anyone teach me how to use mojarra to encode my JSF files. I downloaded mojarra and expected some kind of jar but what i had downloaded was a folder of files i don t know what to do with

如何拦截要求终止?

在共同基金中,如果用户要求终止,就需要采取一些行动。 我需要某种拦截器,但我不知道如何这样做。 我需要帮助。 增 编

ICEFaces inputFile getting the file content without upload

Is there any way of just getting the content of the browsed file without any upload/file transfer operations? I currently use ICEFaces inputFile component but I do not need the default uploading ...

Weird behaviour of h:commandLink action (MethodExpression)

I have two JSPs where I am displaying some info from database in a h:dataTable. One of them is showing all the info, and one of them user specifically. I have showXML.jsp that shows the "XML" column ...

How to correctly use ResultSet with h:dataTable

The problem is, that after displaying the ResultSet with <h:dataTable>, the connection is left open. If I close it, it closes the ResultSet too. I m thinking about copying the ResultSet data ...

热门标签