how can i show dialog without refreshing form?
Its data entry form, want to open multiple forms at a time.
thanks
Code: Select all
UIComponent component = FacesContext.getCurrentInstance().getViewRoot().findComponent("webForm");
if (component != null) {
int count = countDialog(component.getChildren()) + 1;
Dialog tp = new Dialog();
tp.setVisible(true);
tp.setWidgetVar("widget" + count);
component.getChildren().add(tp);
RequestContext request = RequestContext.getCurrentInstance();
request.update("webForm");
}