Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4351

In wicket 1.5 in ListView bookmarkable links with labels behave differently than in 1.4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.5.4
    • None
    • wicket
    • Windows XP

    Description

      We have a two link components that both point to the same page. We want the title to be a link plus at the end we want a 'read more' link to point to the exact same URL.

      // Link with Title as text:
      BookmarkablePageLink link = new BookmarkablePageLink("newsLink", OtherPage.class);
      listItem.add(link);
      link.add(new Label("newsTitle", news.getTitle()));

      // Link with 'Read more' as text
      listItem.add(new Label("newsTitle", news.getTitle()));

      This works fine outside of a list view as the quickstart shows.
      This worked find for in and out of a ListView in wicket 1.4.

      In wicket 1.5 the second link is a duplicate of the first, ignoring the markup's 'read me' link.

      I have attached a quickstart that demonstrates this.

      Note: we use:
      getDebugSettings().setComponentUseCheck(false);

      Attachments

        1. LinkMarkupError.zip
          25 kB
          Chris Colman

        Activity

          People

            Unassigned Unassigned
            chrisc Chris Colman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: