Examples of InvalidFormDataException


Examples of org.apache.empire.struts2.exceptions.InvalidFormDataException

    public void initKeyColumns()
    {
        // Action parameters
        Object[] keyValues = getActionParamKey();
        if (isValid()==false || keyValues==null)
            throw new InvalidFormDataException();
        // Check Record
        if (record==null || !record.isValid())
            throw new ObjectNotValidException(record);
        // Check Key Length
        Column[] keyColumns = record.getKeyColumns();
        if (keyValues.length!=keyColumns.length)
            throw new InvalidFormDataException();
        // Copy values
        for (int i=0; i<keyColumns.length; i++)
        {  
            record.setValue(keyColumns[i], keyValues[i]);
        }
View Full Code Here

Examples of org.apache.empire.struts2.exceptions.InvalidFormDataException

        if (persistence==SessionPersistence.Data)
        {   // Get the record from the session
            Record rec = getRecordFromSession();
            if (rec==null || (rec instanceof DBRecord)==false)
            {   // Record restored
                throw new InvalidFormDataException();
            }
            // Record not found
            record = (DBRecord)rec;
        }
        // Check Record State
        if (record.isValid())
        {   // Is this the record we require?
            Object[] currentKey = record.getKeyValues();
            if (compareKey(currentKey, keyValues)==false)
            {   // Keys don't match
                throw new InvalidFormDataException();
            }
            // We have a valid record
            return;
        }
        // Insert
View Full Code Here

Examples of org.apache.empire.struts2.exceptions.InvalidFormDataException

            beanSupport.setData(bean);
        }
        // Check if record is valid
        if (beanSupport.isValid()==false)
        {
            setActionError(new InvalidFormDataException());
            return doCancel();
        }
        // Test
        return INPUT;
    }
View Full Code Here

Examples of org.apache.empire.struts2.exceptions.InvalidFormDataException

        }
        else if (beanSupport.getRecord().isNew()==false)
        {   // Check whether we have the right key
            if (!beanSupport.checkKey())
            {   // Record's don't match
                setActionError(new InvalidFormDataException());
                return doCancel();
            }
        }
        // LoadFormData
        if (beanSupport.loadFormData()==false)
View Full Code Here

Examples of org.apache.empire.struts2.exceptions.InvalidFormDataException

    public void initKeyColumns()
    {
        // Action parameters
        Object[] keyValues = getActionParamKey();
        if (isValid()==false || keyValues==null)
            throw new InvalidFormDataException();
        // Check Record
        if (record==null || !record.isValid())
            throw new ObjectNotValidException(record);
        // Check Key Length
        Column[] keyColumns = record.getKeyColumns();
        if (keyValues.length!=keyColumns.length)
            throw new InvalidFormDataException();
        // Copy values
        for (int i=0; i<keyColumns.length; i++)
        {  
            record.setValue(keyColumns[i], keyValues[i]);
        }
View Full Code Here

Examples of org.apache.empire.struts2.exceptions.InvalidFormDataException

        if (persistence==SessionPersistence.Data)
        {   // Get the record from the session
            Record rec = getRecordFromSession();
            if (rec==null || (rec instanceof DBRecord)==false)
            {   // Record restored
                throw new InvalidFormDataException();
            }
            // Record not found
            record = (DBRecord)rec;
        }
        // Check Record State
        if (record.isValid())
        {   // Is this the record we require?
            Object[] currentKey = record.getKeyValues();
            if (compareKey(currentKey, keyValues)==false)
            {   // Keys don't match
                throw new InvalidFormDataException();
            }
            // We have a valid record
            return;
        }
        // Insert
View Full Code Here

Examples of org.apache.empire.struts2.exceptions.InvalidFormDataException

            beanSupport.setData(bean);
        }
        // Check if record is valid
        if (beanSupport.isValid()==false)
        {
            setActionError(new InvalidFormDataException());
            return doCancel();
        }
        // Test
        return INPUT;
    }
View Full Code Here

Examples of org.apache.empire.struts2.exceptions.InvalidFormDataException

        }
        else if (beanSupport.getRecord().isNew()==false)
        {   // Check whether we have the right key
            if (!beanSupport.checkKey())
            {   // Record's don't match
                setActionError(new InvalidFormDataException());
                return doCancel();
            }
        }
        // LoadFormData
        if (beanSupport.loadFormData()==false)
View Full Code Here

Examples of org.apache.empire.struts2.exceptions.InvalidFormDataException

        if (persistence==SessionPersistence.Data)
        {   // Get the record from the session
            Record rec = getRecordFromSession();
            if (rec==null || (rec instanceof DBRecord)==false)
            {   // Record restored
                throw new InvalidFormDataException();
            }
            // Record not found
            record = (DBRecord)rec;
        }
        // Check Record State
        if (record.isValid())
        {   // Is this the record we require?
            Object[] currentKey = record.getKeyValues();
            if (compareKey(currentKey, keyValues)==false)
            {   // Keys don't match
                throw new InvalidFormDataException();
            }
            // We have a valid record
            return;
        }
        // Insert
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.