Package wicket.markup.html.form

Examples of wicket.markup.html.form.Button


    super(modelContext, viewContext);
    this.modelContext = modelContext;
    this.viewContext = viewContext;
    try {
      remove("cancel");
      add(new Button("cancel") {
        static final long serialVersionUID = 201131L;
        protected void onSubmit() {
          App app = (App) getApplication();
          setResponsePage(app.getHomePage());
        }
View Full Code Here


      add(propertyNameLabelValuePanelListView);
      if (!app.isConceptDisplayAllowed(getAppSession(), conceptConfig)) {
        propertyNameLabelValuePanelListView.setVisible(false);
      }

      add(new Button("cancel") {
        static final long serialVersionUID = 200721L;

        protected void onSubmit() {
          App app = viewContext.getApp();
          ModelContext entityUpdateTablePageModelContext = new ModelContext(
View Full Code Here

        final ViewContext viewContext) {
      super(viewContext.getWicketId());
      this.modelContext = modelContext;
      this.viewContext = viewContext;
      try {
        add(new Button("no") {
          static final long serialVersionUID = 200682L;

          protected void onSubmit() {
            App app = viewContext.getApp();
            ViewContext entityUpdateTablePageContext = new ViewContext(
View Full Code Here

      singleChoice.add(new CategoriesSelectionListView(
          "categoriesSelectionListView", course.getTarifications()
              .getTarificationsOfFemale()));
    }

    this.add(new Button("ajouter")
    {

      private static final long serialVersionUID = 3534043602619164257L;

      @Override
View Full Code Here

        new PropertyModel(this.cart, "clubOid"), this.clubsCtrl
            .getClubs(), new ClubChoiceRender());
    dropDownChoice.setRequired(false);
    this.add(dropDownChoice);

    this.add(new Button("payer")
    {

      private static final long serialVersionUID = 3534043602619164257L;

      @Override
      public void onSubmit()
      {

        /*
         * Vérification si le panier est vide
         */
        if (CartListViewForm.this.cart.getCart().size() < 1)
        {
          final String errmsg = this.getLocalizer().getString(
              "clubError", this, "Le panier est vide");
          this.error(errmsg);
        }
        /*
         * Vérification si un club a été choisi
         */
        else if (clubsCtrl.getClubByOid(CartListViewForm.this.cart
            .getClubOid()) == null)
        {

          final String errmsg = this
              .getLocalizer()
              .getString(
                  "clubError",
                  this,
                  "Vous devez sélectionner un club affilié ou indépendant si vous n'êtes pas affilié à un club");
          this.error(errmsg);
        }
        else
        {

          this.setResponsePage(new HomePage(
              ConfirmationListViewPanel.class, null));
        }

      }

    });

    this.add(new Button("autreCourse")
    {

      private static final long serialVersionUID = 3534043602619164257L;

      @Override
      public void onSubmit()
      {

        this.setResponsePage(new HomePage(
            CoursesSelectionListViewPanel.class, null));

      }

    });

    this.add(new Button("retirer")
    {

      private static final long serialVersionUID = 0L;

      @Override
View Full Code Here

    this.add(new ConfirmationListView("confirmationListView", cart));

    this.add(new Label("prixTotal", new PropertyModel(cart, "prixTotal")));

    this.add(new Button("confirmer")
    {

      private static final long serialVersionUID = 0L;

      @Override
      public void onSubmit()
      {

        final SignInSession session = (SignInSession) this.getSession();
        final Cart cart = session.getCart();

        ConfirmationListViewForm.this.facturationCtrl.inscrire(cart, session.getPersonne());
       
        session.getCart().clearCart();
       
        this.setResponsePage(new HomePage(ConfirmationPanel.class, null));

      }

    });

    this.add(new Button("modifier")
    {

      private static final long serialVersionUID = 3534043602619164257L;

      @Override
View Full Code Here

   
    final PaysDropDownChoice nationalite = new PaysDropDownChoice("nationalite", new PropertyModel(this.personne, "nationalite"));
    nationalite.setLabel(new Model("Nationalite"));
    this.add(nationalite);
   
    this.add(new Button("enregistrer")
    {

      private static final long serialVersionUID = -767241183179219287L;

      @Override
View Full Code Here

TOP

Related Classes of wicket.markup.html.form.Button

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.