Examples of FormComponent


Examples of org.apache.empire.struts2.jsp.components.FormComponent

    }
   
    @Override
    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res)
    {
        return new FormComponent(stack, req, res);
    }
View Full Code Here

Examples of org.apache.empire.struts2.jsp.components.FormComponent

            onsubmit= HtmlTagDictionary.getInstance().FormDefaultOnSubmitScript();
       
        super.populateParams();

        // Form Component
        FormComponent comp = (FormComponent)component;
        comp.setAction(action);
        comp.setName(name);
        comp.setOnsubmit(onsubmit);
        comp.setTarget(target);
        comp.setEnctype(enctype);
        comp.setMethod(method);
        comp.setReadOnly(getBoolean(readOnly, false));
    }
View Full Code Here

Examples of org.apache.struts.faces.component.FormComponent

        if ((context == null) || (component == null)) {
            throw new NullPointerException();
        }

        // Calculate and cache the form name
        FormComponent form = (FormComponent) component;
        String action = form.getAction();
        ModuleConfig moduleConfig = form.lookupModuleConfig(context);
        ActionConfig actionConfig = moduleConfig.findActionConfig(action);
        if (actionConfig == null) {
            throw new IllegalArgumentException("Cannot find action '" +
                                               action + "' configuration");
        }
        String beanName = actionConfig.getAttribute();
        if (beanName != null) {
            form.getAttributes().put("beanName", beanName);
        }

        // Look up attribute values we need
        String clientId = component.getClientId(context);
        if (log.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.struts.faces.component.FormComponent

            return;
        }
        String focusIndex =
            (String) component.getAttributes().get("focusIndex");
        writer.writeText("\n", null);
        FormComponent form = (FormComponent) component;
        writer.startElement("script", form);
        writer.writeAttribute("type", "text/javascript", null);
        if (!isXhtml(component)) {
            writer.writeAttribute("language", "JavaScript", null);
        }
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent

      public RegisterForm(String id)
      {
         super(id);
         add(new PageLink("cancel", Main.class));
         FormComponent password = new PasswordTextField("password").setRequired(true);
         FormComponent verify = new PasswordTextField("verify").setRequired(true);
         add(new FormInputBorder("passwordBorder", "Password", password , new PropertyModel(user, "password")));
         add(new FormInputBorder("verifyBorder", "Verify Password", verify, new PropertyModel(this, "verify")));
         add(new ComponentFeedbackPanel("messages", this));
         add(new EqualInputValidator(password, verify));
      }
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent

            public Object getTarget()
            {
               return user;
            }
         }));
         FormComponent password = new PasswordTextField("password").setRequired(true);
         FormComponent verify = new PasswordTextField("verify").setRequired(true);
         add(new FormInputBorder("passwordDecorate", "Password", password , new SeamPropertyModel("password")
         {
            @Override
            public Object getTarget()
            {
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent

            feedback.setOutputMarkupId(true);
            add(feedback);
            this.metaData = jmetaData;
            this.oldMetaData = jmetaData;
            Form metaDataForm = new Form("metaDataForm");
            FormComponent fc;
            fc = new RequiredTextField("name", new PropertyModel(this,
                    "metaData.name"));
            fc.add(StringValidator.minimumLength(2));
            metaDataForm.add(fc);
            metaDataForm.add(new Label("name-label", new ResourceModel(
                    "metedataTab.name")));
            fc = new RequiredTextField("language", new PropertyModel(this,
                    "metaData.language"));
            fc.add(StringValidator.minimumLength(2));
            metaDataForm.add(fc);
            metaDataForm.add(new Label("language-label", new ResourceModel(
                    "metedataTab.language")));
            fc = new RequiredTextField("metaValue", new PropertyModel(this,
                    "metaData.value"));
            fc.add(StringValidator.minimumLength(2));
            metaDataForm.add(fc);
            metaDataForm.add(new Label("value-label", new ResourceModel(
                    "metedataTab.value")));
            metaDataForm.add(new AjaxButton("save", new ResourceModel(
                    "common.save"), metaDataForm)
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent

            fragment.add( DateLabel.withConverter("date", model, new InternalDateConverter()) );
        }
        else {
            fragment = new Fragment("frag", "editor");

            FormComponent dateField = DateTextField.withConverter("dateTextField", model, new InternalDateConverter());
            setFieldParameters(dateField);
            fragment.add(dateField);
           
            dateField.add(new DatePicker() {
                private static final long serialVersionUID = 1L;
                @Override
                protected boolean enableMonthYearSelection()
                {
                    return false;
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent

            fragment.add(label);
        }
        else {
            fragment = new Fragment("frag", "editor");

            final FormComponent dateField = new DateTextField("dateTextField", model) {
                private static final long serialVersionUID = 1L;
                @Override
                public IConverter getConverter(Class type)
                {
                    return converter;
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent

        if (component instanceof MarkupContainer) {
            MarkupContainer container = (MarkupContainer)component;
            container.visitChildren(FormComponent.class, new IVisitor<Component>() {
                public Object component(Component component)
                {
                    FormComponent formComponent = (FormComponent)component;
                    formComponent.setLabel( new Model(propertyMeta.getLabel()) );
                    formComponent.add( new ErrorHighlightingBehavior() );
                    return IVisitor.CONTINUE_TRAVERSAL;
                }               
            });
        }
    }
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.