Examples of ObjectNotValidException


Examples of org.apache.empire.exceptions.ObjectNotValidException

   
    public Object getInputValue(UIComponent comp, InputInfo ii, boolean submitted)
    {
        UIInput input = getInputComponent(comp);
        if (input==null)
            throw new ObjectNotValidException(this);
       
        // Get value from Input
        Object value = (submitted) ? input.getSubmittedValue() : input.getValue();
        /* Patch for MyFaces?
        if (value==null && input.isLocalValueSet())
View Full Code Here

Examples of org.apache.empire.exceptions.ObjectNotValidException

        Map<String, Object> viewMap = vr.getViewMap();
        Page pageBean = (Page) viewMap.get("page");
        if (pageBean != null && !pageBean.isInitialized())
        {
            log.warn("PageBean was not initialized!");
            throw new ObjectNotValidException(pageBean);
        }
        // FacesUtils.getFin2Application().releaseConnection(true);
        log.trace("PagePhase complete.");
    }
View Full Code Here

Examples of org.apache.empire.exceptions.ObjectNotValidException

    protected void onInitPage()
    {
        if (items == null)
        { // loadBookings
            log.error("StaticListPageElement has not been intialized! Please initialize in doInit() before calling super.doInit()!");
            throw new ObjectNotValidException(this);
        }
    }
View Full Code Here

Examples of org.apache.empire.exceptions.ObjectNotValidException

    private void initLogging()
    {
        // Get configuration root node
        Element rootNode = getRootNode();
        if (rootNode == null)
            throw new ObjectNotValidException(this);
        // Find log configuration node
        Element loggingNode = XMLUtil.findFirstChild(rootNode, loggingNodeName);
        if (loggingNode == null)
        {   // log configuration node not found
            log.error("Log configuration node {} has not been found. Logging has not been configured.", loggingNodeName);
View Full Code Here

Examples of org.apache.empire.exceptions.ObjectNotValidException

        // Get configuration root node
        Element rootNode = getRootNode();
        if (rootNode == null)
        {
          // TODO throw proper exception
          throw new ObjectNotValidException(getClass().getName());
        }
        // Find log configuration node
        Element loggingNode = XMLUtil.findFirstChild(rootNode, loggingNodeName);
        if (loggingNode == null)
        {   // log configuration node not found
View Full Code Here

Examples of org.apache.empire.exceptions.ObjectNotValidException

    }

    public boolean isNew()
    {
        if (!isValid())
            throw new ObjectNotValidException(this);
        // Record is new until all key fields have been supplied
        if (keyColumns!=null)
        {   // Check all Key Columns
            for (int i=0; i<keyColumns.length; i++)
            {
View Full Code Here

Examples of org.apache.empire.exceptions.ObjectNotValidException

    }

    public Object getValue(ColumnExpr column)
    {
        if (!isValid())
            throw new ObjectNotValidException(this);
        // getBeanPropertyValue
        return getBeanPropertyValue(data, column);
    }
View Full Code Here

Examples of org.apache.empire.exceptions.ObjectNotValidException

     * sets the value of a field.
     */
    public void setValue(Column column, Object value)
    {
        if (!isValid())
            throw new ObjectNotValidException(this);
        // Track modification status
        if (ObjectUtils.compareEqual(getValue(column), value)==false)
        {
            if (modified== null)
                modified = new boolean[columns.size()];
View Full Code Here

Examples of org.apache.empire.exceptions.ObjectNotValidException

    public boolean loadFormData()
    {
        try {
            Record record = getRecord();
            if (record.isValid()==false)
                throw new ObjectNotValidException(record);
            // Load Data
            return setUpdateFields(record);

        } catch(Exception e) {
            // Action failed
View Full Code Here

Examples of org.apache.empire.exceptions.ObjectNotValidException

        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
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.