protected void addComponents()
        throws EFapsException
    {
        final UIForm uiForm = (UIForm) super.getDefaultModelObject();

        if (!uiForm.isInitialized()) {
            uiForm.execute();
        }

        final FormContainer form = new FormContainer("form");
        this.add(form);
        form.add(AttributeModifier.append("class", uiForm.getMode().toString()));
        if (uiForm.isMultiPart() && (uiForm.isCreateMode() || uiForm.isEditMode())) {
            form.setMultiPart(true);
            form.setMaxSize(this.getApplication().getApplicationSettings().getDefaultMaximumUploadSize());
        }

        super.addComponents(form);

        final WebMarkupContainer script = new WebMarkupContainer("selectscript");
        this.add(script);
        script.setVisible(uiForm.isCreateMode() || uiForm.isEditMode() || uiForm.isSearchMode());
        FormPage.updateFormContainer(this, form, uiForm);
    }
protected void addComponents()
        throws EFapsException
    {
        final UIForm uiForm = (UIForm) super.getDefaultModelObject();

        if (!uiForm.isInitialized()) {
            uiForm.execute();
        }

        final FormContainer form = new FormContainer("form");
        this.add(form);
        form.add(AttributeModifier.append("class", uiForm.getMode().toString()));
        if (uiForm.isMultiPart() && (uiForm.isCreateMode() || uiForm.isEditMode())) {
            form.setMultiPart(true);
            form.setMaxSize(this.getApplication().getApplicationSettings().getDefaultMaximumUploadSize());
        }

        super.addComponents(form);

        final WebMarkupContainer script = new WebMarkupContainer("selectscript");
        this.add(script);
        script.setVisible(uiForm.isCreateMode() || uiForm.isEditMode() || uiForm.isSearchMode());
        FormPage.updateFormContainer(this, form, uiForm);
    }
protected void addComponents ( ) throws EFapsException { final UIForm uiForm = ( UIForm ) super . getDefaultModelObject ( ) ; if ( ! uiForm . isInitialized ( ) ) { uiForm . execute ( ) ; } final FormContainer form = new FormContainer ( "form" ) ; this . add ( form ) ; form . add ( AttributeModifier . append ( "class" , uiForm . getMode ( ) . toString ( ) ) ) ; if ( uiForm . isMultiPart ( ) && ( uiForm . isCreateMode ( ) || uiForm . isEditMode ( ) ) ) { form . setMultiPart ( true ) ; form . setMaxSize ( this . getApplication ( ) . getApplicationSettings ( ) . getDefaultMaximumUploadSize ( ) ) ; } super . addComponents ( form ) ; final WebMarkupContainer script = new WebMarkupContainer ( "selectscript" ) ; this . add ( script ) ; script . setVisible ( uiForm . isCreateMode ( ) || uiForm . isEditMode ( ) || uiForm . isSearchMode ( ) ) ; FormPage . updateFormContainer ( this , form , uiForm ) ; }
Method to add the components to this page.

@throws EFapsException on error
Method to add the components to this page .