You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Chris Colman (Created) (JIRA)" <ji...@apache.org> on 2012/01/23 06:43:41 UTC

[jira] [Created] (WICKET-4351) In wicket 1.5 in ListView bookmarkable links with labels behave differently than in 1.4

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

                 Key: WICKET-4351
                 URL: https://issues.apache.org/jira/browse/WICKET-4351
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.5.4
         Environment: Windows XP
            Reporter: Chris Colman


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);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (WICKET-4351) In wicket 1.5 in ListView bookmarkable links with labels behave differently than in 1.4

Posted by "Sven Meier (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sven Meier closed WICKET-4351.
------------------------------

    Resolution: Invalid
    
> In wicket 1.5 in ListView bookmarkable links with labels behave differently than in 1.4
> ---------------------------------------------------------------------------------------
>
>                 Key: WICKET-4351
>                 URL: https://issues.apache.org/jira/browse/WICKET-4351
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.4
>         Environment: Windows XP
>            Reporter: Chris Colman
>              Labels: wicket
>         Attachments: LinkMarkupError.zip
>
>
> 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);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WICKET-4351) In wicket 1.5 in ListView bookmarkable links with labels behave differently than in 1.4

Posted by "Chris Colman (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Colman updated WICKET-4351:
---------------------------------

    Attachment: LinkMarkupError.zip

Quickstart to demonstrate the problem.
                
> In wicket 1.5 in ListView bookmarkable links with labels behave differently than in 1.4
> ---------------------------------------------------------------------------------------
>
>                 Key: WICKET-4351
>                 URL: https://issues.apache.org/jira/browse/WICKET-4351
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.4
>         Environment: Windows XP
>            Reporter: Chris Colman
>              Labels: wicket
>         Attachments: LinkMarkupError.zip
>
>
> 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);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WICKET-4351) In wicket 1.5 in ListView bookmarkable links with labels behave differently than in 1.4

Posted by "Sven Meier (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13191968#comment-13191968 ] 

Sven Meier commented on WICKET-4351:
------------------------------------

You're not allowed to reuse a component instance several times. Your usage might have worked with 1.4, but it was not supposed to work and it's definitely not supported in 1.5.

In your application you have turned off component use check (getDebugSettings().setComponentUseCheck(false)), turn it on an you'll get appropriate error messages.

For your example just create a separate link for each occurrance in the markup and everything should work smoothly.

                
> In wicket 1.5 in ListView bookmarkable links with labels behave differently than in 1.4
> ---------------------------------------------------------------------------------------
>
>                 Key: WICKET-4351
>                 URL: https://issues.apache.org/jira/browse/WICKET-4351
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.4
>         Environment: Windows XP
>            Reporter: Chris Colman
>              Labels: wicket
>         Attachments: LinkMarkupError.zip
>
>
> 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);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira