I like the idea of supporting wicket:id='username'. Is that possible at all? I thought namespaces could only be used with elements?
Eelco -----Original Message----- From: Cameron Braid [mailto:[EMAIL PROTECTED] Sent: Sat 3/12/2005 1:17 PM To: [email protected] Cc: Subject: RE: [Wicket-develop] Wicket prefix > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:wicket-develop- > [EMAIL PROTECTED] On Behalf Of Gili > Sent: Saturday, 12 March 2005 4:48 PM > To: [email protected] > Subject: RE: [Wicket-develop] Wicket prefix > > On Sat, 12 Mar 2005 15:33:19 +1000, Cameron Braid wrote: > > >These ID attribues can be strpped by wicket because the developer has > added > >them solely for binding components to. However, without using a prefix, > >wicket can't know which ID attributes to remove. Wicket could be > configured > >that id='wicket-*' attributes get stripped. > > Sure it can! Wicket can strip the ID from components add()ed on > the Java end. Secondly, I think we just finished saying that won't need > to remove IDs from wicket components withing a Page, because those are > guaranteed to be unique. I am only proposing we strip them from within > non-Page components. > I still believe that any IDs added by a html designer should not be touched. It is their responsibility to ensure that they are unique for the document. This is why I feel that wicket should only remove wicket ids. > Wicket can already augment tags by surrounding them with > <wicket:XXX> tags -- such as <wicket:panel> and <wicket:remove>. These > are "safe" according to the XHTML standard because they exist outside > the XHTML namespace. What is unsafe is adding "wicket" attributes to > XHTML tags. As such, I don't see any case where you'd want to use the > "wicket" attribute and can't use the "id" attribute instead. It is the > standard, why not use it? Both HTML designers and Java developers > should be refering to the same element by the same name. That's just my > view. I've yet to run into a compeling use-case for doing otherwise. > Is it not possible to use a namespace with attributes. For example wicket:id='username' could be used. It's a wicket specific attribute - and is compatible with xhtml because it is in another namespace. ------------------------------------------------------- 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
<<winmail.dat>>
