Just as another thought: Would it not be better for someone to override getMarkupId() and return whatever id he pleases. Surely you don't want to have to go through the html or javascript files when you add another WebMarkupContainer or Panel to your component hierarchy, as would be the case if you used the default implementation of getMarkupId().
The only thing to remember is that all the id's have to be unique, which should not be such a big problem because you only have to overwrite getMarkupId for those components you reference through javascript. Even for list items this should be feasible by using there index. Just my 2 cents. Maurice On 7/21/06, Al Maw <[EMAIL PROTECTED]> wrote: > I don't think periods will work in IDs, surely? > They'd interfere with CSS syntax - would: > > #foo.bar { } > > ...refer to an element with id="foo.bar" or an element with id="foo" and > class="bar" ? > > Hyphens probably aren't usable either. You can't use hyphens in your > class/field names, but I guess people might be using them in their > wicket:ids already. > > So how about using multiple chars for the separator? "-_-" or something, > and String#split() on that? > > Al > > Eelco Hillenius wrote: > > Yes, and also about a year ago we switched to _ for outputting as we > > had actual experience with javascript troubles. : is not a useable for > > external purposes. > > > On 7/21/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > >> ID and NAME tokens must begin with a letter ([A-Za-z]) and may be > >> followed by any number of letters, digits ([0-9]), hyphens ("-"), > >> underscores ("_"), colons (":"), and periods ("."). > > >> On 7/21/06, Johan Compagner <[EMAIL PROTECTED]> wrote: > >>> is there a better seperator that can be used then? > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-develop mailing list > Wicket-develop@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-develop > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop