[
https://issues.apache.org/jira/browse/WICKET-995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530392
]
Alexandru Objelean commented on WICKET-995:
-------------------------------------------
Well, I did bother to read the w3c specification... As you can read above, I
didn't suggest to replace the '.' character with an underscore '_' mandatory,
it could be replaced with a number or another character (anything that is still
valid).
Also, before creating this JIRA issue, I asked Matej if he considered it to be
a bug. Igor also thought that this issue can be fixed without any problems
since he fixed it already.
I'm still not convinced that changing the generated markup id is a dangerous
thing, maybe you can give me an example?
I propose to make a vote between the core developers, since there are two
different points of view.
PS: I do not insist on this issue to be fixed, I just think that it would solve
a real world related problem without causing any troubles to anybody else.
Alex
> getMarkupId generates ID which contains special characters which should be
> escaped or replaced
> ----------------------------------------------------------------------------------------------
>
> Key: WICKET-995
> URL: https://issues.apache.org/jira/browse/WICKET-995
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta3
> Reporter: Alexandru Objelean
> Assignee: Igor Vaynberg
> Fix For: 1.3.0-beta4
>
>
> This is about how wicket generates dynamically markupID.
> I have, for instance, the following markup component:
> <input wicket:id="quantity.noOfUnits" />
> The generated markupId for this component looks like the following:
> quantity.noOfUnits1232 .
> I suggest to escape any css valid specifiers from the generated markupId, by
> replacing them with something else (for instance '_' character).
> The problem appear when I am trying to identify the component by it's id
> using some js library (like jQuery) and as a consequence the result of this
> query: $("#quantity.noOfUnits1232") is invalid.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.