Examples of BookmarkablePageLink


Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

        form.add(new TextField("publicationYear", new PropertyModel<String>(book, "publicationYear")).setRequired(true));
        form.add(new TextField( "publicationPlace", new PropertyModel<String>(book, "publicationPlace")).setRequired(true));
        form.add(new TextField("publisher", new PropertyModel<String>(book, "publisher")).setRequired(true));
        form.add(new TextField("ISBN", new PropertyModel<String>(book, "ISBN")).setRequired(true));

        BookmarkablePageLink books = new BookmarkablePageLink<>(
                "list", ShowAllBook.class);
        add(books);
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

            item.add(new Label("status", String.valueOf(book.getStatus())));
            item.add(new Label("availability", String.valueOf(book.getAvailability())));           
            repeating.add(item);
      }
       
        BookmarkablePageLink homeLink = new BookmarkablePageLink<>(
                "home", HomePage.class);
        add(homeLink);
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

            item.add(new Label("ISBN", book.getISBN()));
            item.add(new Label("status", String.valueOf(book.getStatus())));
            item.add(new Label("availability", String.valueOf(book.getAvailability())));           
           repeating.add(item);
      }
        BookmarkablePageLink addBookLink = new BookmarkablePageLink<>(
                "addBook", EditBook.class);
        add(addBookLink);
       
        BookmarkablePageLink homeLink = new BookmarkablePageLink<>(
                "home", HomePage.class);
        add(homeLink);
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

        if (!readerId.isEmpty()) {
            readerService.deleteReader(readerService.findReaderById(readerId.toLong()));
            setResponsePage(ShowAllReader.class);
        }

        BookmarkablePageLink addReaderLink = new BookmarkablePageLink<>(
                "addReader", EditReader.class);
        add(addReaderLink);

        BookmarkablePageLink homeLink = new BookmarkablePageLink<>(
                "home", HomePage.class);
        add(homeLink);
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

        form.add(new TextField("address", new PropertyModel<String>(reader, "address")).setRequired(true));
        form.add(new TextField("email", new PropertyModel<String>(reader, "email")).setRequired(true));
        form.add(new TextField("telephoneNumber", new PropertyModel<String>(reader, "telephoneNumber")));
        form.add(new PasswordTextField("password", new PropertyModel<String>(reader, "password")));
       
        BookmarkablePageLink readers = new BookmarkablePageLink<>(
                "list", ShowAllReader.class);
        add(readers);
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

        add(form);
        List<BookTO> books = bookService.findAllAvailableBooks();
        DropDownChoice choiceState = new DropDownChoice("bookTO", new PropertyModel(reservation, "bookTO"), books);
        form.add(choiceState);

        BookmarkablePageLink homeLink = new BookmarkablePageLink<>(
                "list", ShowAllReader.class);
        add(homeLink);
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

        if (!reservationId.isEmpty()) {
            reservationService.deleteReservation(reservationService.findReservationByID(reservationId.toLong()));
            setResponsePage(ShowAllReservation.class);
        }

        BookmarkablePageLink createLink = new BookmarkablePageLink<>(
                "create", ShowAllReader.class);
        add(createLink);
       
        BookmarkablePageLink homeLink = new BookmarkablePageLink<>(
                "home", HomePage.class);
        add(homeLink);
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

       * If the link is a bookmarkable link, then we need to transfer the parameters to the
       * next request.
       */
      if (link instanceof BookmarkablePageLink)
      {
        BookmarkablePageLink bookmarkablePageLink = (BookmarkablePageLink)link;
        try
        {
          Field parametersField = BookmarkablePageLink.class.getDeclaredField("parameters");
          Method getParametersMethod = BookmarkablePageLink.class.getDeclaredMethod(
            "getPageParameters", null);
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

   */
  public StatelessPage()
  {
    setStatelessHint(true);
    add(new Label("message", new SessionModel()));
    add(new BookmarkablePageLink("indexLink", Index.class));
    final TextField field = new TextField("textfield", new PropertyModel(this, "number"));
    field.add(NumberValidator.maximum(20));
    field.setRequired(true);

    StatelessForm statelessForm = new StatelessForm("statelessform")
View Full Code Here

Examples of org.apache.wicket.markup.html.link.BookmarkablePageLink

   *            Name of link
   * @return Link to home page for this application
   */
  protected final BookmarkablePageLink homePageLink(final String id)
  {
    return new BookmarkablePageLink(id, getApplication().getHomePage());
  }
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.