Package org.apache.wicket.markup.html.link

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


{
  private static final long serialVersionUID = 1L;

  public SecondPage(final FirstPage page)
  {
    add(new PageLink("link", new IPageLink()
    {

      private static final long serialVersionUID = 1L;

      public Page getPage()
View Full Code Here


{
  private static final long serialVersionUID = 1L;

  public FirstPage()
  {
    add(new PageLink("link", new IPageLink()
    {

      private static final long serialVersionUID = 1L;

      SecondPage page = new SecondPage(FirstPage.this);
View Full Code Here

  public TestPage()
  {
    current = panel1;
    add(current);

    add(new PageLink("link", new IPageLink()
    {
      private static final long serialVersionUID = 1L;

      public Page getPage()
      {
View Full Code Here

   *            The id of the book that the page will edit
   * @return The page link
   */
  public static PageLink link(final String name, final long id)
  {
    return new PageLink(name, new IPageLink()
    {
      public Page getPage()
      {
        return new EditBook(Book.get(id));
      }
View Full Code Here

   *            The id of the book that the page will edit
   * @return The page link
   */
  public static PageLink link(final String name, final long id)
  {
    return new PageLink(name, new IPageLink()
    {
      public Page getPage()
      {
        return new EditBook(Book.get(id));
      }
View Full Code Here

    // Link to Page3 is an external link which takes a parameter
    add(new BookmarkablePageLink("page3Link", Page3.class).setParameter("bookmarkparameter",
        "3++2 & 5 � >< space + �"));

    // Link to BookDetails page
    add(new PageLink("bookDetailsLink", new IPageLink()
    {
      public Page getPage()
      {
        return new BookDetails(new Book("The Hobbit"));
      }

      public Class getPageIdentity()
      {
        return BookDetails.class;
      }
    }));

    // Delayed link to BookDetails page
    add(new PageLink("bookDetailsLink2", new IPageLink()
    {
      public Page getPage()
      {
        return new BookDetails(new Book("Inside The Matrix"));
      }
View Full Code Here

    // will be kept as session data. Instead, we use the more verbose
    // IPageLink
    // anonymous class, which will create the page instance only when
    // needed.

    add(new PageLink("pageLink", new IPageLink()
    {
      public Page getPage()
      {
        return new NonBookmarkablePage(PageLinkPage.this);
      }
View Full Code Here

    // Add a link to navigate back to the refering page. We now use the
    // PageLink
    // constructor with the Page instance argument, because we allready have
    // a page instance
    // at our disposal
    add(new PageLink("navigateBackLink", referer));

    // Note that this would have had the same effect
    //
    // add(new Link("navigateBackLink")
    // {
View Full Code Here

  public TestPage()
  {
    this.current = panel1;
    add(current);

    add(new PageLink("link", new IPageLink()
    {
      private static final long serialVersionUID = 1L;

      public Page getPage()
      {
View Full Code Here

    // Add a link to navigate back to the refering page. We now use the
    // PageLink
    // constructor with the Page instance argument, because we allready have
    // a page instance
    // at our disposal
    add(new PageLink("navigateBackLink", referer));

    // Note that this would have had the same effect
    //
    // add(new Link("navigateBackLink")
    // {
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.link.PageLink

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.