The downside of this stategy is that if you insert/remove
components around a reference component with the same ID, its ID will
likely change too. As opposed to the original strategy where your ID
changes only if "peer" components are added within your own level of
the hierarchy. That is, changes occur much more rarely "in theory".Gili On Wed, 16 Feb 2005 13:20:41 +0100, Juergen Donnerstag wrote: >On Wed, 16 Feb 2005 13:10:43 +0100, Martijn Dashorst ><[EMAIL PROTECTED]> wrote: >> >> Another ID generating stragegy that is less verbose would be to count >> the number of times an ID is generated, and add an integer to that id: >> >> <span id="wicket-message">foo</span> >> <span id="wicket-message">foo</span> >> <span id="wicket-message">foo</span> >> <span id="wicket-message">foo</span> >> >> would then become when generated: >> <span id="wicket-message">content from java</span> >> <span id="wicket-message-1">content from java</span> >> <span id="wicket-message-2">content from java</span> >> <span id="wicket-message-3">content from java</span> >> > >would that number be unique per page, container or component? In order >to be w3c compliant they'd need to page unique, correct? I guess a >disadvantage would be that you can hardly change your design (you'll >change the numbers) without having to (manually) change you CSS / JS >selectors. Which obviuosly is true for the original naming algorithme >as well. > >Juergen > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Wicket-develop mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/wicket-develop > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
