You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sam Hough (JIRA)" <ji...@apache.org> on 2007/09/11 19:15:32 UTC

[jira] Commented: (WICKET-758) HTML validation cleanliness

    [ https://issues.apache.org/jira/browse/WICKET-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526527 ] 

Sam Hough commented on WICKET-758:
----------------------------------

In 1.3-beta3 should it be returning "id"+String.valueOf(childIdCounter) now? The comment suggests it is but the code doesn't.

Not sure if it is related but to keep my html monkey happy I changed ours to do "id" + String.valueOf... and ajax updates of that component broke. Claiming on the server side that it couldn't find the matching markup in the parent element. The only thing that had changed was the Component id.

To make it stranger it seems to work (for a single component in the repeater) if I hard code it to any number or the same id as used for the element to be repeated.

Make sense to anybody before I suffer the pain of debugging? Could it really care if the id is [0-9]+ or not?

Cheers

Sam

> HTML validation cleanliness
> ---------------------------
>
>                 Key: WICKET-758
>                 URL: https://issues.apache.org/jira/browse/WICKET-758
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.3.0-beta1, 1.3.0-beta2
>         Environment: osx jvm etc etc
>            Reporter: Victor Igumnov
>            Assignee: Frank Bille Jensen
>            Priority: Trivial
>             Fix For: 1.3.0-beta3
>
>         Attachments: WICKET-758.patch
>
>
> AbstractRepeater generates IDs starting with integers, html ids can't start with a number.
> Modication 
> public String newChildId(); change -> return "id"+String.valueOf(childIdCounter);
> WicketAjaxIndicatorAppender append an alt tag to the indicator, line 74. 
> Thanks

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