Update component outside iframe

I want to update a component that is outside the iframe. I will select the update from the component that is inside the iframe and will update the component that is outside the iframe. How can i do this?

<p:tabView id="tab_view" dynamic="true" cache="true" scrollable="true"> <p:tab id="tab_1" title="Test"> <iframe id="tab_frame" src="#{request.contextPath}/xxx/xxx.xhtml" width="100%" height="285px" style="border-width: 0px;" /> </p:tab> </p:tabView> 

xxx.xhtml

 <h:form id="testform"> <p:commandLink value="Click here" action="#{controller.methodY()}" style="color:blue;" update="tab_view"/> </h:form> 

Updating on the command line does not work. How can I refresh my tab?

+5
source share

Source: https://habr.com/ru/post/1203467/


All Articles