Package org.displaytag.exception

Examples of org.displaytag.exception.InvalidTagAttributeValueException


        {
            int userOffset = Integer.parseInt(value);

            if (userOffset < 1)
            {
                throw new InvalidTagAttributeValueException(getClass(), "offset", value);
            }

            // this.offset is 0 based, subtract 1
            this.offset = (userOffset - 1);
        }
        catch (NumberFormatException e)
        {
            throw new InvalidTagAttributeValueException(getClass(), "offset", value);
        }

    }
View Full Code Here


        {
            this.sortFullTable = Boolean.TRUE;
        }
        else
        {
            throw new InvalidTagAttributeValueException(getClass(), "sort", value);
        }
    }
View Full Code Here

        {
            this.localSort = false;
        }
        else
        {
            throw new InvalidTagAttributeValueException(getClass(), "sort", value); //$NON-NLS-1$
        }
    }
View Full Code Here

    public void setDefaultorder(String value) throws InvalidTagAttributeValueException
    {
        this.defaultSortOrder = SortOrderEnum.fromName(value);
        if (this.defaultSortOrder == null)
        {
            throw new InvalidTagAttributeValueException(getClass(), "defaultorder", value); //$NON-NLS-1$
        }
    }
View Full Code Here

    public void setDefaultorder(String value) throws InvalidTagAttributeValueException
    {
        this.defaultorder = SortOrderEnum.fromName(value);
        if (this.defaultorder == null)
        {
            throw new InvalidTagAttributeValueException(getClass(), "defaultorder", value); //$NON-NLS-1$
        }
    }
View Full Code Here

        } else if (TableTagParameters.SORT_AMOUNT_LIST.equals(value)) {
            this.sortFullTable = Boolean.TRUE;
        } else if (TableTagParameters.SORT_AMOUNT_EXTERNAL.equals(value)) {
            this.localSort = false;
        } else {
            throw new InvalidTagAttributeValueException(getClass(), "sort", value); //$NON-NLS-1$
        }
    }
View Full Code Here

     *          if value is not one of "ascending" or "descending"
     */
    public void setDefaultorder(String value) throws InvalidTagAttributeValueException {
        this.defaultSortOrder = SortOrderEnum.fromName(value);
        if (this.defaultSortOrder == null) {
            throw new InvalidTagAttributeValueException(getClass(), "defaultorder", value); //$NON-NLS-1$
        }
    }
View Full Code Here

TOP

Related Classes of org.displaytag.exception.InvalidTagAttributeValueException

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.