Title: RE: Javascript getElementById Issues

I raised this issue a while back in a previous thread, because our current application contains
a lot of _javascript_ and dhtml. There were no real solutions proposed so we had
to write some really evil code in order to attain dynamic elements in a datatable via
the getElementById function. This code works but will surely not be obvious to
any future maintenance programmers.

As for a solution, how about leaving the id attribute modifiable by the application ?
In other words, if I set the id somewhere in my code, JSF will not mangle it...and if
I don't, then JSF is free to update it ... If somehow the application generates a duplicate
id, then JSF should simply throw an exception.

I haven't looked at the JSF source, is there any reason why this approach will not work ?

...I am glad someone else raised this issue, it was quite a disappointment to have to
write our _javascript_ differently than we have been doing for the last few years.


Mark

Reply via email to