Examples of FormStatus


Examples of de.innovationgate.wgpublisher.webtml.FormBase.FormStatus

        if (cleariferror != null) {
            cleariferrorList = WGUtils.deserializeCollection(cleariferror, ",");
        }
       

        FormStatus formTag = null;
        if (this.getSourcetag() != null) {
           formTag = (FormStatus) this.getTagStatusById(this.getSourcetag(), FormBase.FormStatus.class);
            if (formTag == null) {
                this.getTMLContext().addwarning("Form with id '" + this.getSourcetag() + "' not found.", true);
                return;
            }               
        }
        else {
            formTag = (FormStatus) getStatus().getAncestorTag(Form.class);
        }       
       
        if (formTag != null) {
            // register with formTag
            formTag.addFormValidation(condition, message, ifnoerrorList, cleariferrorList );
        } else {           
            this.getTMLContext().addwarning("Could not find corresponding formtag.", true);
            return;           
        }               
       
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.FormBase.FormStatus

     */
    public void tmlStartTag() throws TMLException {
       
        Status status = (Status) getStatus();
       
        FormStatus formBase = null;
        if (this.getSourcetag() != null) {
            formBase = (FormStatus) this.getTagStatusById(this.getSourcetag(), FormBase.class);
            if (formBase == null) {
                this.getTMLContext().addwarning("Form or Item with id '" + this.getSourcetag() + "' not found.", true);
                return;
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.FormBase.FormStatus

    private void renderHashedPassword(String name, String cssClass, String cssStyle, Object singleValue, String tagContent, String disabled) {               
        String formattedValue = new TagOutputFormatter(getTMLContext()).format(singleValue);
        // if there we got a value from source, the value is already hashed
        // register field on form to ensure not to hash twice
        if (formattedValue != null && !formattedValue.trim().equals("")) {
            FormStatus formBase = (FormStatus) getStatus().getAncestorTag(FormBase.class);
            formBase.registerHashedPasswordField(name, formattedValue);
        }
       
        this.appendResult("<input name=\"").appendResult(name).appendResult("\" type=\"password\" ");
        String theId = getId();
        if (theId!= null) {
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.FormBase.FormStatus

        return mediaKey;
    }
   
    public String getRelevantForm() {

        FormStatus form = (FormStatus) getAncestorTag(Form.class);
        //if (form != null && form.isFormEditable()) {
        //--> none editable forms should be submitted to ensure access in tml:action
        if (form != null) {
            return form.id;
        }
View Full Code Here

Examples of org.jboss.dashboard.ui.utils.forms.FormStatus

        localeManager = LocaleManager.lookup();
    }

    @Override
    public boolean openDialog(Panel panel, CommandRequest request, String title, int width, int height) {
        formStatus = new FormStatus();
        clearFieldErrors();

        ResourceBundle i18n = localeManager.getBundle("org.jboss.dashboard.ui.components.panelManagement.messages", LocaleManager.currentLocale());
        title = i18n.getString("title.properties");
View Full Code Here

Examples of org.jboss.dashboard.ui.utils.forms.FormStatus

    private String showPanelConfigComponentFormatter;

    @Override
    public boolean openDialog(Panel panel, CommandRequest request, String title, int width, int height) {
        formStatus = new FormStatus();
        clearFieldErrors();

        ResourceBundle i18n = ResourceBundle.getBundle("org.jboss.dashboard.ui.components.panelManagement.messages", LocaleManager.currentLocale());
        title = i18n.getString("title.properties");
View Full Code Here

Examples of org.jboss.dashboard.ui.utils.forms.FormStatus

        }
        return true;
    }

    protected void initHandler(String workspaceId, Long panelInstanceId) {
        FormStatus formStatus = new FormStatus();
        formStatus.setValue("lang", LocaleManager.lookup().getCurrentLang());
        getHandler().setWorkspaceId(workspaceId);
        getHandler().setPanelInstanceId(panelInstanceId);
        getHandler().clearFieldErrors();
        getHandler().setFormStatus(formStatus);
        ((MessagesComponentHandler) Factory.lookup(getHandler().getMessagesComponentHandler())).clearAll();
View Full Code Here

Examples of org.jboss.dashboard.ui.utils.forms.FormStatus

        }
        return true;
    }

    private void prepareConfigure(Panel panel) {
        FormStatus formStatus = new FormStatus();
        formStatus.setValue("lang", SessionManager.getLang());
        formStatus.setValue("multilanguage", isMultilanguage());

        getHandler().setFormStatus(formStatus);
    }
View Full Code Here

Examples of org.jboss.dashboard.ui.utils.forms.FormStatus

        }
        return true;
    }

    protected void initHandler(String workspaceId, Long panelId, Long panelInstanceId) {
        FormStatus formStatus = new FormStatus();
        formStatus.setValue("lang", LocaleManager.lookup().getCurrentLang());
        getHandler().setWorkspaceId(workspaceId);
        getHandler().setPanelId(panelId);
        getHandler().setPanelInstanceId(panelInstanceId);
        getHandler().clearFieldErrors();
        getHandler().setFormStatus(formStatus);
View Full Code Here

Examples of org.jboss.dashboard.ui.utils.forms.FormStatus

        }
        return true;
    }

    private void prepareConfigure(PanelInstance instance) {
        FormStatus formStatus = new FormStatus();
        formStatus.setValue("lang", SessionManager.getLang());
        formStatus.setValue("multilanguage", isMultilanguage());

        getHandler().setFormStatus(formStatus);
    }
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.