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

Sven Meier commented on WICKET-4859:
------------------------------------

Well, for RepeatingView the ids have to be unique for all components inside the 
repeater only.
The toolbars needs globally unique ids because it's not sure in which dataTable 
the toolbar is going to be put in.

Regarding long running systems:
Actually you'd have to create a lot of toolbars *and* put them in a single 
dataTable to run into duplicate ids. Apart from that there's no problem if the 
counter overflows - you'll just get negative ids.
                
> Integer overflow in AbstractToolbar
> -----------------------------------
>
>                 Key: WICKET-4859
>                 URL: https://issues.apache.org/jira/browse/WICKET-4859
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 6.2.0, 1.5.9
>            Reporter: count negative
>            Assignee: Sven Meier
>             Fix For: 6.3.0, 1.5.9
>
>
> private static int counter = 0;
> This counter will overflow anytime... Please remove static.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to