I’ve made a button using HTMLPanelGrid and HTMLAjaxSupport (a4j:support from backing bean) that responds to ‘onclick’.
The eventlistener registered with the HTMLAjaxSupport adds a component to the page (a different component with a different backing bean).
The problem is, the addition is not visible until I refresh the page or press another button that refreshes the display. I’m trying to figure out how to refresh the page.
To sum it up – I would like to know how to refresh a visual component backed up by a backing bean after the backing bean had changed. (The refresh should occur after clicking an ajax supported component)
Thank you!
all
<a4j:tags have thereRenderattribute. It should point to theidof the object/area you want to refresh.Note that if a component has been hidden, you must reRender its parent. For example:
And another advice – avoid using the
bindingattribute – in 95% of the cases you can go without it.