It's not a jquery bug at all. The '.' character is interpreted as a css
class. So, the $("#quantity.noOfUnits1232") translates in element with ID
"quantity" and css class "noOfUnits1232".
Also, I do not see any problem which can be caused by magical handling of
markup id. (at least one core developer was agree with this point of view).
Alex.
Ryan Holmes wrote:
>
> Did you try escaping the '.'? Something like $("#quantity
> \.noOfUnits1232").
>
> I refer to Wicket id's with periods in several CSS rules with no
> problem. The period is a valid character in HTML id's and I strongly
> disagree with the magical id mangling behavior you suggest. If JQuery
> can't handle valid HTML id's, that's a JQuery bug and not a Wicket bug.
>
>
> -Ryan
>
> On Sep 21, 2007, at 4:44 AM, Alex Objelean wrote:
>
>>
>> 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.
>>
>> Thank you!
>>
>> Alex.
>> --
>> View this message in context: http://www.nabble.com/-RFE--
>> getMarkupId%28%29-tf4493344.html#a12815038
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/-RFE--getMarkupId%28%29-tf4493344.html#a12874553
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]