jsf - How to programmatically ajax-update specific component in backing bean -
is there way ajax-update specific component such <h:form> in backing bean?
i tried following using requestcontext#execute(),
requestcontext context = requestcontext.getcurrentinstance(); context.execute("monitorvehicleform.update()"); however didn't seem have effect.
the requestcontext#execute() executes arbitrary javascript code been passed-in argument. not ajax-update client representation of components.
you need requestcontext#update() instead wherein pass client id of to-be-updated component.
context.update("monitorvehicleform"); this has same effect <p:commandxxx ... update="monitorvehicleform">. works provided you've
<h:form id="monitorvehicleform"> without namingcontainer parent , have
<form id="monitorvehicleform" name="monitorvehicleform" ...> in generated html.
Comments
Post a Comment