Hey I have a iframe and a command button, I want to only load the iframe by changing the src using a command button in primefaces. But as I press the button the bean itself dosen't gets called. The same works for me when I do something like ajax=false
in command button. Here is code sample any help would be highly appreciated.
<h: form>
<p:commandButton title="Next-Step" value="Next-Step"
styleClass="btn-primary"
action="#{bean method to update the content in url}"
update="@widgetVar(iframe)"/>
<p:panel id="iframe" widgetVar="iframe" rendered="#{some rendered condition}" style="display: none;">
<div class="panel-wrapper">
<iframe src="#{bean method to get url}"
width="100%"
height="15281px"
scrolling="no"
frameborder="0"></iframe>
</div>
</p:panel>
</h:form>