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

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


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

View Full Code Here


   */
  public LeftFrame(BodyFrame index)
  {
    add(new ChangeFramePageLink("linkToPage1", index, Page1.class));
    add(new ChangeFramePageLink("linkToPage2", index, Page2.class));
    BookmarkablePageLink link = new BookmarkablePageLink("directLink", Home.class);
    link.setPageMap(PageMap.forName(BodyFrame.RIGHT_FRAME_NAME));
    add(link);
  }
View Full Code Here

  /**
   * Construct.
   */
  public StatefulPage()
  {
    add(new BookmarkablePageLink("indexLink", Index.class));

    // Action link counts link clicks
    final Link<Void> actionLink = new Link<Void>("actionLink")
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

   *
   * @param pageParameters
   */
  public MockPageParameterPage(PageParameters pageParameters)
  {
    add(new BookmarkablePageLink("link", MockPageParameterPage.class,
      new PageParameters("id=1")));
    add(new Label("label", pageParameters.getString("id")));
  }
View Full Code Here

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

View Full Code Here

  public Index()
  {
    setStatelessHint(true);
    add(new Label("message", new SessionModel()));
    // First a normal bookmarkable link (which is stateless by default)
    add(new BookmarkablePageLink("linkToStatelessPage", StatelessPage.class));
    // The second with a stateless link, so the onclick will be called but on a stateless page.
    add(new StatelessLink("linkToStatefulPage")
    {
      /**
       * @see org.apache.wicket.markup.html.link.Link#onClick()
View Full Code Here

   */
  public StatelessPage()
  {
    setStatelessHint(true);
    add(new Label("message", new SessionModel()));
    add(new BookmarkablePageLink("indexLink", Index.class));

    StatelessForm statelessForm = new StatelessForm("statelessform")
    {
      /**
       * @see org.apache.wicket.markup.html.form.Form#onSubmit()
View Full Code Here

   * Construct.
   */
  public StatefulPage()
  {
    add(new Label("message", new SessionModel()));
    add(new BookmarkablePageLink("indexLink", Index.class));

    // Action link counts link clicks
    final Link actionLink = new Link("actionLink")
    {
      public void onClick()
View Full Code Here

    }
    else
    {
      getGame().newGame(5, new WordGenerator(new String[] { word }));
    }
    add(new BookmarkablePageLink("start", Guess.class));
  }
View Full Code Here

    {
      // Ignore
    }
    add(new PageView("page", entry == null ? null : entry.getPage()));
    add(new Image("bug"));
    add(new BookmarkablePageLink("allsessions",LiveSessionsPage.class));
    add(new Label("wicketVersion", getApplication().getFrameworkSettings().getVersion()));
  }
View Full Code Here

TOP

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

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.