Examples of findFirstComponentOfType()


Examples of org.exoplatform.webui.form.UIForm.findFirstComponentOfType()

        public void execute(Event<UIPermissionSelector> event) throws Exception {
            UIPermissionSelector uiPermissionSelector = event.getSource();
            uiPermissionSelector.setValue(null);
            uiPermissionSelector.setRendered(true);
            UIForm uiForm = uiPermissionSelector.getAncestorOfType(UIForm.class);
            uiForm.findFirstComponentOfType(UIListPermissionSelector.class).setRendered(false);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
        }
    }

    // TODO: Tung.Pham added
View Full Code Here

Examples of org.exoplatform.webui.form.UIForm.findFirstComponentOfType()

            UIListPermissionSelector uicom = event.getSource();
            UICheckBoxInput uiPublicModeInput = uicom.getChildById("publicMode");
            uicom.setPublicMode(uiPublicModeInput.isChecked());
            uicom.setRendered(true);
            UIForm uiForm = uicom.getAncestorOfType(UIForm.class);
            UIPermissionSelector uiPermission = uiForm.findFirstComponentOfType(UIPermissionSelector.class);
            if (uiPermission != null) {
                uiPermission.setRendered(false);
            }

            // julien: UIForm cannot be null otherwise the uiForm.findFirstComponentOfType would have thrown an NPE
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.