<pe:remoteCommand id="refreshWidgetCommand" name="refreshWidget" process="@this" actionListener="#{updateWidgetController.refresh}"> <pe:methodSignature parameters="java.lang.String"/> <pe:methodParam name="id"/> </pe:remoteCommand> @ManagedBean @RequestScoped public class UpdateWidgetController { public void refresh(final String id) { RequestContext context = RequestContext.getCurrentInstance(); context.update(id); } }
public void update() { RequestContext requestContext = RequestContext.getCurrentInstance(); requestContext.update("form:cars"); }
RequestContext context = RequestContext.getCurrentInstance(); context.update("errorsPanel");
tabs.add(lastTabIndex, new Tab("tab" + tabs.size(), "content" + tabs.size())); // Just a stub. Do your thing to add a new tab. RequestContext requestContext = RequestContext.getCurrentInstance(); requestContext.update("form:tabs"); // Update the p:tabView to show new tab. requestContext.addCallbackParam("newTabIndex", lastTabIndex); // Triggers the oncomplete.
/** * @see org.pivot4j.ui.command.BasicDrillThroughCommand#execute(org.pivot4j.PivotModel, * org.pivot4j.ui.command.UICommandParameters) */ @Override public ResultSet execute(PivotModel model, UICommandParameters parameters) { int[] array = parameters.getCellCoordinate(); List<Integer> coords = Arrays.asList(ArrayUtils.toObject(array)); Cell cell = model.getCellSet().getCell(coords); drillThroughHandler.update(cell); RequestContext context = RequestContext.getCurrentInstance(); context.update("drillthrough-form"); context.execute("PF('drillThroughDialog').show()"); return null; } }
RequestContext.getCurrentInstance().update("datasetForm:fileTypeDifferentPopup"); context.execute("PF('fileTypeDifferentPopup').show();");
if(fileReplacePageHelper.hasContentTypeWarning()){ RequestContext context = RequestContext.getCurrentInstance(); RequestContext.getCurrentInstance().update("datasetForm:fileTypeDifferentPopup"); context.execute("PF('fileTypeDifferentPopup').show();");