Package de.innovationgate.wgpublisher.webtml.FormBase

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


     */
    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

    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

        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

TOP

Related Classes of de.innovationgate.wgpublisher.webtml.FormBase.FormStatus

Copyright © 2018 www.massapicom. 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.