yeah, bottom line is that if you want to write reusable components, you should use a really unique name...
which seems like a bug (i will open it) in feedback panel and other components in the core. they should really have more qualified names.
the ideal situation seems pretty verbose, but probably the best thing: "wicket_markup_html_panel_FeedbackPanel_message" ;-)
Eelco Hillenius wrote:
You're wrong, it is very common. And when using reusable components like panels and borders, you can't really prevent reusing names. E.g. in FeedbackPanel, a label with the name 'message' is used. So, if you really want all components in your page to have unique id's, you could never name a component 'message'. Same goes for labels, links... well, you get the message.
Eelco
Martijn Dashorst wrote:
Not many people will nest these things using constantly the same name. At least I haven't gotten to that usecase yet. Generating just a number is something we can do before 1.0. Solving the general uniqueness problem is something we can do in 1.1 and possibly backport into 1.0.x.
Martijn
Eelco Hillenius wrote:
Again: what's the use if it does not guarantee elements being unique anyway?
If you have nested components (in panels, listviews, any container really), you will never have a guarantee that your element id's are unique. If you think (as a developer) that it is important to have unique id's (personally, I don't care that much), you can use wicket="" (yes, which is not complient as well). Now, a usefull feature would be to be able to have those attributes removed ('wicket' or 'id' that is), so users end up with valid HTML after rendering.
Eelco
Martijn Dashorst wrote:
He will if he wants to run his HTML pages through a validator!
It should be plugable, but default behaviour should be just to add a number. This will prevent users from using the id as a selector in their css to select all rows.
Martijn
Maurice Marrink wrote:
Ok, since I brought it up, I'll report the bug.
But can we please leave the numbering of id's in lists up to the user himself. Most of the time he won't even need it.
Maurice
-----Oorspronkelijk bericht-----
Van: Jonathan Locke [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 15 februari 2005 16:43
Aan: [email protected]
Onderwerp: Re: [Wicket-develop] id of elemets and listviews
yes, exactly what i was thinking. we should just add an id as we loop through the elements of the list.
but in any case, can we please put this in the bug database? and any other things people are talking
about? we really need to get some discipline on bugs now that feature work is essentially done.
anyone who has an issue should not hesitate to report a bug. if you want to also come talk about it
on the mailing lists, that's great. but please report the bug formally.
thanks,
jon
Gili wrote:
I don't think removing the wicket attribute will make itthe way
compliant with W3. To my understanding, we simply remove the "wicket-"
prefix and then the resulting IDs will still be identical.
This is something the wicket component should simply be smart
enough to handle (guarantee unique IDs based upon its component name).
I don't think it's too hard either, you just add an integer after the
wicket ID name. You'd probably want to ensure, though, that the 1st ID
remains the same for previewability reasons...
Gili
On Tue, 15 Feb 2005 10:23:34 +0100, Juergen Donnerstag wrote:
Until we find the perfect the solution, you still have the option to
remove the wicket attribute from output which makes it compliant with
w3c. Another solution, though not compliant as well, is to use
wicket="myPanel" instead of id="wicket-myPanel".
Juergen
On Tue, 15 Feb 2005 10:15:26 +0100, Maurice Marrink
<[EMAIL PROTECTED]> wrote:
Hi,
Not to be a pain in the ass or anything but I foresee a problem with
"wicket-listitem"id's are used in listviews
Currently if I use a listview I have to specify it the following way
<span id="wiket-list"> <span id="wicket-listitem"><!--content--></span></span>
This generates a number of span's with the same id, namely
causeAgain according to w3c an id should be unique within a document http://www.w3.org/TR/html401/struct/global.html#adef-id
Although most browsers don't seem to have a problem with it, it might
solvedproblems when trying to access the elements from within javascript.
getElementById just to name 1.
I am not sure how this is solved best, but I think it should be
users.sooner or later.
Maurice
-------------------------------------------------------
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_ide95&alloc_id396&opclick
_______________________________________________
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
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&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
-------------------------------------------------------
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_ide95&alloc_id396&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
-------------------------------------------------------
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
------------------------------------------------------- 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
