You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2008/09/15 06:51:44 UTC

[jira] Resolved: (WICKET-1818) wicket:id attribute with a value containing spaces generates invalid markup

     [ https://issues.apache.org/jira/browse/WICKET-1818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-1818.
-----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.3.6)
                       (was: 1.5-M1)
         Assignee: Igor Vaynberg

> wicket:id attribute with a value containing spaces generates invalid markup
> ---------------------------------------------------------------------------
>
>                 Key: WICKET-1818
>                 URL: https://issues.apache.org/jira/browse/WICKET-1818
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>            Reporter: Kare Nuorteva
>            Assignee: Igor Vaynberg
>            Priority: Trivial
>             Fix For: 1.3.5, 1.4-M4
>
>         Attachments: MarkupIdTestPage.html, MarkupIdTestPage.java, MarkupIdTestPageExpectedResult.html, patch-1818.diff
>
>
> HTML:
> <span wicket:id="foo bar"></span>
> Java:
> Label label = new Label("foo bar", "lol");
> label.setOutputMarkupId(true);
> Generates markup:
> <span id="foo bar">lol</span>
> Expected:
> <span id="foo_bar">lol</span>
> When wicket generates wicket:id attributes it should replace spaces with some appropriate valid character (like underscore "_").

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.