Package org.apache.wicket.markup.html.panel

Examples of org.apache.wicket.markup.html.panel.ComponentFeedbackPanel


  {
    
      public HotelBookingForm(String id)
      {
         super(id);
         add(new ComponentFeedbackPanel("messages", this));
         add(new FormInputBorder("checkinDateBorder", "Check in date", new DateField("checkinDate").setRequired(true), new PropertyModel(booking, "checkinDate"), false));
         add(new FormInputBorder("checkoutDateBorder", "Check out date", new DateField("checkoutDate").setRequired(true), new PropertyModel(booking, "checkoutDate"), false));
         add(new FormInputBorder("bedsBorder", "Room Preference", new DropDownChoice("beds", bedOptions, new IChoiceRenderer()
         {
View Full Code Here


         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

 
  public Register()
    {
      Form registerForm = new RegisterForm("registration")
       add(registerForm);
       registerForm.add(new ComponentFeedbackPanel("messages", this));
    }
View Full Code Here

    private void buildGui() {
        final WebMarkupContainer markupContainer = new WebMarkupContainer(ID_COLLECTION);
        collectionContents = getComponentFactoryRegistry().addOrReplaceComponent(markupContainer, ComponentType.COLLECTION_CONTENTS, getModel());

        addOrReplace(new ComponentFeedbackPanel(ID_FEEDBACK, collectionContents));
        addOrReplace(markupContainer);
    }
View Full Code Here

    form.setOutputMarkupPlaceholderTag(true);
    TextArea<String> messageField = new TextArea<String>("message");
    messageField.setRequired(true);
    form.add(messageField);
    form.add(new FormComponentLabel("messageLabel", messageField));
    final FeedbackPanel feedbackPanel = new ComponentFeedbackPanel("feedbackPanel", form);
    feedbackPanel.setOutputMarkupPlaceholderTag(true);
    form.add(feedbackPanel);
    AjaxSubmitLink sendLink = new AjaxSubmitLink("send") {
      private static final long serialVersionUID = 1L;

      @Override
View Full Code Here

        requestRepaintPanel(target);
    }

    private void addFeedbackGui(MarkupContainer markupContainer) {
        feedback = new ComponentFeedbackPanel(ID_FEEDBACK, this);
        feedback.setOutputMarkupPlaceholderTag(true);
        markupContainer.addOrReplace(feedback);
        feedback.setEscapeModelStrings(false);

        final ObjectAdapter adapter = getEntityModel().getObject();
View Full Code Here

                }

            };
            final Image image = new Image(ID_SCALAR_VALUE, imageResource);
            addOrReplace(image);
            addOrReplace(new ComponentFeedbackPanel(ID_FEEDBACK, image));
        } else {
            permanentlyHide(ID_SCALAR_VALUE, ID_FEEDBACK);
        }
    }
View Full Code Here

    private void buildGui() {
        final WebMarkupContainer markupContainer = new WebMarkupContainer(ID_COLLECTION);
        collectionContents = getComponentFactoryRegistry().addOrReplaceComponent(markupContainer, ComponentType.COLLECTION_CONTENTS, getModel());

        addOrReplace(new ComponentFeedbackPanel(ID_FEEDBACK, collectionContents));
        addOrReplace(markupContainer);
    }
View Full Code Here

    protected abstract FormComponentLabel addComponentForRegular();

    protected abstract Component addComponentForCompact();

    protected void addFeedbackTo(MarkupContainer markupContainer, Component component) {
        markupContainer.addOrReplace(new ComponentFeedbackPanel(ID_FEEDBACK, component));
    }
View Full Code Here

        cancelButton.setVisible(true);
        requestRepaintPanel(target);
    }

    private void addFeedbackGui(MarkupContainer markupContainer) {
        feedback = new ComponentFeedbackPanel(ID_FEEDBACK, this);
        feedback.setOutputMarkupPlaceholderTag(true);
        markupContainer.addOrReplace(feedback);
        feedback.setEscapeModelStrings(false);

        final ObjectAdapter adapter = getEntityModel().getObject();
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.panel.ComponentFeedbackPanel

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.