Examples of ForwardModel


Examples of org.apache.beehive.netui.compiler.model.ForwardModel

            addSimpleActions( mca.getSimpleActions() );
            setMultipartHandler( mca.getMultipartHandler() );
            GenForwardModel.addForwards( mca.getForwards(), this, _jclass, this, null );
           
            // TODO: comment
            addForward( new ForwardModel( "_auto", "", this ) );
           
            GenExceptionModel.addCatches( mca.getCatches(), this, _jclass, this, this );
            addTilesDefinitionsConfigs( mca.getTilesDefinitionsConfigs() );
            setAdditionalValidatorConfigs( mca.getCustomValidatorConfigs() );
View Full Code Here

Examples of org.apache.beehive.netui.compiler.model.ForwardModel

        //
        AnnotationInstance validateErrFwd = CompilerUtils.getAnnotation( annotation, VALIDATION_ERROR_FORWARD_ATTR, true );
        boolean doValidation = false;
        if ( validateErrFwd != null )
        {
            ForwardModel fwd = new GenForwardModel( parentApp, validateErrFwd, jclass, " (validationErrorForward)" );
            addForward( fwd );
            setInput( fwd.getName() );
            doValidation = true;
        }
       
        //
        // validate
View Full Code Here

Examples of org.apache.beehive.netui.compiler.model.ForwardModel

            addSimpleActions( mca.getSimpleActions() );
            setMultipartHandler( mca.getMultipartHandler() );
            GenForwardModel.addForwards( mca.getForwards(), this, _jclass, this, null );
           
            // TODO: comment
            addForward( new ForwardModel( "_auto", "", this ) );
           
            GenExceptionModel.addCatches( mca.getCatches(), this, _jclass, this, this );
            addTilesDefinitionsConfigs( mca.getTilesDefinitionsConfigs() );
            setAdditionalValidatorConfigs( mca.getCustomValidatorConfigs() );
View Full Code Here

Examples of org.apache.beehive.netui.compiler.model.ForwardModel

        String forwardRef = CompilerUtils.getString( annotation, FORWARD_REF_ATTR, true );
       
        if ( forwardRef == null )
        {
            forwardRef = DEFAULT_SIMPLE_ACTION_FORWARD_NAME;
            ForwardModel fwd = new SimpleActionForward( forwardRef, parentApp, annotation, jclass );
           
            if ( fwd.getPath() != null || fwd.isReturnToAction() || fwd.isReturnToPage() || fwd.isNestedReturn() )
            {
                addForward( fwd );
            }
        }
       
        setDefaultForwardName( forwardRef );
       
        List conditionalFwdAnnotations =
                CompilerUtils.getAnnotationArray( annotation, CONDITIONAL_FORWARDS_ATTR, true );
       
        if ( conditionalFwdAnnotations != null )
        {
            int anonCount = 0;
           
            for ( Iterator ii = conditionalFwdAnnotations.iterator(); ii.hasNext();
            {
                AnnotationInstance conditionalFwdAnnotation = ( AnnotationInstance ) ii.next();
                ForwardModel conditionalFwd = new SimpleActionForward( parentApp, conditionalFwdAnnotation, jclass );
                String expression = CompilerUtils.getString( conditionalFwdAnnotation, CONDITION_ATTR, true );
                assert expression != null;
               
                if ( conditionalFwd.getName() == null ) conditionalFwd.setName( "_anon" + ++anonCount );
                addForward( conditionalFwd );
                addConditionalForward( expression, conditionalFwd.getName() );
            }
        }
    }
View Full Code Here

Examples of org.apache.beehive.netui.compiler.model.ForwardModel

            addSimpleActions( mca.getSimpleActions() );
            setMultipartHandler( mca.getMultipartHandler() );
            GenForwardModel.addForwards( mca.getForwards(), this, _jclass, this, null );
           
            // TODO: comment
            addForward( new ForwardModel( "_auto", "", this ) );
           
            GenExceptionModel.addCatches( mca.getCatches(), this, _jclass, this, this );
            addTilesDefinitionsConfigs( mca.getTilesDefinitionsConfigs() );
            setAdditionalValidatorConfigs( mca.getCustomValidatorConfigs() );
            addActionMethods();
View Full Code Here

Examples of org.apache.beehive.netui.compiler.model.ForwardModel

        //
        AnnotationInstance validateErrFwd = CompilerUtils.getAnnotation( annotation, VALIDATION_ERROR_FORWARD_ATTR, true );
        boolean doValidation = false;
        if ( validateErrFwd != null )
        {
            ForwardModel fwd = new GenForwardModel( parentApp, validateErrFwd, jclass, " (validationErrorForward)" );
            addForward( fwd );
            setInput( fwd.getName() );
            doValidation = true;
        }
       
        //
        // validate
View Full Code Here

Examples of org.apache.beehive.netui.compiler.model.ForwardModel

        String forwardRef = CompilerUtils.getString( annotation, FORWARD_REF_ATTR, true );
       
        if ( forwardRef == null )
        {
            forwardRef = DEFAULT_SIMPLE_ACTION_FORWARD_NAME;
            ForwardModel fwd = new SimpleActionForward( forwardRef, parentApp, annotation, jclass );
           
            if ( fwd.getPath() != null || fwd.isReturnToAction() || fwd.isReturnToPage() || fwd.isNestedReturn() )
            {
                addForward( fwd );
            }
        }
       
        setDefaultForwardName( forwardRef );
       
        List conditionalFwdAnnotations =
                CompilerUtils.getAnnotationArray( annotation, CONDITIONAL_FORWARDS_ATTR, true );
       
        if ( conditionalFwdAnnotations != null )
        {
            int anonCount = 0;
           
            for ( Iterator ii = conditionalFwdAnnotations.iterator(); ii.hasNext();
            {
                AnnotationInstance conditionalFwdAnnotation = ( AnnotationInstance ) ii.next();
                ForwardModel conditionalFwd = new SimpleActionForward( parentApp, conditionalFwdAnnotation, jclass );
                String expression = CompilerUtils.getString( conditionalFwdAnnotation, CONDITION_ATTR, true );
                assert expression != null;
               
                if ( conditionalFwd.getName() == null ) conditionalFwd.setName( "_anon" + ++anonCount );
                addForward( conditionalFwd );
                addConditionalForward( expression, conditionalFwd.getName() );
            }
        }
    }
View Full Code Here

Examples of org.apache.beehive.netui.compiler.model.ForwardModel

        String forwardRef = CompilerUtils.getString( annotation, FORWARD_REF_ATTR, true );
       
        if ( forwardRef == null )
        {
            forwardRef = DEFAULT_SIMPLE_ACTION_FORWARD_NAME;
            ForwardModel fwd = new SimpleActionForward( forwardRef, parentApp, annotation, jclass );
           
            if ( fwd.getPath() != null || fwd.isReturnToAction() || fwd.isReturnToPage() || fwd.isNestedReturn() )
            {
                addForward( fwd );
            }
        }
       
        setDefaultForwardName( forwardRef );
       
        List conditionalFwdAnnotations =
                CompilerUtils.getAnnotationArray( annotation, CONDITIONAL_FORWARDS_ATTR, true );
       
        if ( conditionalFwdAnnotations != null )
        {
            int anonCount = 0;
           
            for ( Iterator ii = conditionalFwdAnnotations.iterator(); ii.hasNext();
            {
                AnnotationInstance conditionalFwdAnnotation = ( AnnotationInstance ) ii.next();
                ForwardModel conditionalFwd = new SimpleActionForward( parentApp, conditionalFwdAnnotation, jclass );
                String expression = CompilerUtils.getString( conditionalFwdAnnotation, CONDITION_ATTR, true );
                assert expression != null;
               
                if ( conditionalFwd.getName() == null ) conditionalFwd.setName( "_anon" + ++anonCount );
                addForward( conditionalFwd );
                addConditionalForward( expression, conditionalFwd.getName() );
            }
        }
    }
View Full Code Here

Examples of org.apache.beehive.netui.compiler.model.ForwardModel

            addSimpleActions( mca.getSimpleActions() );
            setMultipartHandler( mca.getMultipartHandler() );
            GenForwardModel.addForwards( mca.getForwards(), this, _jclass, this, null );
           
            // TODO: comment
            addForward( new ForwardModel( "_auto", "", this ) );
           
            GenExceptionModel.addCatches( mca.getCatches(), this, _jclass, this, this );
            addTilesDefinitionsConfigs( mca.getTilesDefinitionsConfigs() );
            setAdditionalValidatorConfigs( mca.getCustomValidatorConfigs() );
            addActionMethods();
View Full Code Here

Examples of org.apache.beehive.netui.compiler.model.ForwardModel

        //
        AnnotationInstance validateErrFwd = CompilerUtils.getAnnotation( annotation, VALIDATION_ERROR_FORWARD_ATTR, true );
        boolean doValidation = false;
        if ( validateErrFwd != null )
        {
            ForwardModel fwd = new GenForwardModel( parentApp, validateErrFwd, jclass, " (validationErrorForward)" );
            addForward( fwd );
            setInput( fwd.getName() );
            doValidation = true;
        }
       
        //
        // validate
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.