2 Replies Latest reply on Jun 20, 2011 7:02 PM by Antony Ellis

    Dynamic Includes

    Antony Ellis Newbie

      Hi All,


      I was hoping to get some advice on how to implement the means of loading a new xhtml resource into a panel when a user clicks on a button, without reloading the whole page.


      Currently I have a <ui:include> wrapped in a <a4j:outputPanel>, the src parameter of the <ui:include> references an attribute inside a backing bean. I then have an <a4j:commandButton that when clicked updates the src attribute in the backing bean and renders the <a4j:outputPanel>.


      I hoped that this would then load the new resource into the panel, what actually happened is that the attribute was updated, the get method was called requesting the new src attribute but the panel did not display the new resource.


      I have searched for a recomended approach to solving what surely must be a common requirement without success, I am hoping that someone on here would be able to point me in the right direction.