On Wed, 16 Feb 2005 09:26:22 +0100, Maurice Marrink wrote:

>Generating id's will come back later to bite you.
>For example if I have a list with 7 items and wicket will generate id's
>for it like item_0, item_1, etc what are you going to when the user
>reorders the list? Are you going to rename item_0 to say item_2 or just
>change the order in which they are rendered, giving a list that might
>look like this: item_5, item_0, item_1, item_4, item_2, item_6, item_3.
>Both solutions could cause problems the first solution with
>javascripting the second with a style that depends on even and odd item
>id's.

        Reordering components without a page does not change their IDs.
This is because we do not generate IDs on behalf of the user for Wicket
components. The only time we would do it is if you have a Table
component and within it you have say 10 rows, the rows would get
automatic IDs. Reordering in the context of table rows is irrelevant
because CSS applies to the table "look", not to specific contents of
specific rows. At least, it doesn't make sense to me for it to be so.
I've never seen it done that way.

Gili



-------------------------------------------------------
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

Reply via email to