I am trying to access to a controller when clicking on a button. The fact is, i need to change the url of the button dynamically.
<p:button styleClass="btn-openHtml" href="#{data.htmlRenderUrl}" value="button html" target="_blank"></p:button>
The href property isn't updated when my bean's property changes. How can i make it so the value of href is updated when data.htmlRenderUrl is changed?