John, you get fixed ids if you assign ids to all namingContainer components, eg if you have a structure like:
<tc:page id="page" > ... <tc:in id="name" .../> ... </tc:page> the input field name will get the id "page:name" which you can pass to the script. If in doubt take a look into the generated html code, if the generated id contains a '_idxx' part then there is a namingcontainer without assigned id involved. BTW: the 'dynamically' generated ids are also fix as long as you don't change the tag structure. Regards, Volker John wrote: > Then if forceId is not supported, how do you use pre-existing javascript > methods that need to be passed an id, since the html Ids are dynamically > generated and fully qualified. > > -----Original Message----- > From: Volker Weber [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 25, 2006 8:28 AM > To: MyFaces Discussion > Subject: Re: forceId not supported in Tobago? > > Just another reason to avoid the IE ;-) > > There is no need for css things in tobago, the theming does this for > you. > > > Regards, > Volker > > Jeff Bischoff wrote: > >>because you can't escape the ':' symbol in IE CSS. So you run into >>trouble with CSS, and potentially make things harder in javascript > > too. > >>Volker Weber wrote: >> >> >>>Hi John, >>> >>>yes, thats correct. And i still can't see any good reason to need it. >>> >>>What is the problem having fully-qualified ids in generated html? >>>You have still full controll over the generated ids by assigning a id > > >>>to each namingContainer component tag. >>> >>>Tobago tags with UIComponents implementing NamingContainer are: >>> sheet, form, page, popup, tree and treeListbox. >>> >>>IMHO using forceId will introduce more problems than it solves. >>> >>> >>>Regards, >>> Volker >>> >>>John wrote: >>> >>> >>>>Is this correct - has some other method been chosen to ensure that >>>>ids are not fully-qualified in the generated HTML? >>>> >>>>John >>>> >>> >>> >> > > -- > Don't answer to From: address! > Mail to this account are droped if not recieved via mailinglist. > To contact me direct create the mail address by concatenating my > forename to my senders domain. > -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.