Re: javascript problem with commandlink and onclick after update to JSF 1.2

2010-01-14 Thread Jakob Korherr
That's also an option! 2010/1/14 Mike Kienenberger > Wow. I just saw this, and it's really ugly. I wonder if some of my > app's code is mysteriously breaking now. > > Why couldn't you do something like Michael's workaround instead of > trying to replace "this" with "document.getElementById('.

Re: javascript problem with commandlink and onclick after update to JSF 1.2

2010-01-14 Thread Mike Kienenberger
Wow. I just saw this, and it's really ugly. I wonder if some of my app's code is mysteriously breaking now. Why couldn't you do something like Michael's workaround instead of trying to replace "this" with "document.getElementById('...')". Ie, pass "this" as an argument to the intermediate fun

RE: javascript problem with commandlink and onclick after update to JSF 1.2

2010-01-04 Thread Michael Heinen
From: sethfromaust...@gmail.com [mailto:sethfromaust...@gmail.com] On > Behalf Of Jakob Korherr > Sent: Montag, 4. Januar 2010 16:05 > To: MyFaces Discussion > Subject: Re: javascript problem with commandlink and onclick after update > to JSF 1.2 > > Hi Michael, > &

Re: javascript problem with commandlink and onclick after update to JSF 1.2

2010-01-04 Thread Jakob Korherr
n > Behalf Of Jakob Korherr > Sent: Montag, 4. Januar 2010 16:05 > To: MyFaces Discussion > Subject: Re: javascript problem with commandlink and onclick after update > to JSF 1.2 > > Hi Michael, > > Unfortunately I don't think it is possible to refer to the clicked link

RE: javascript problem with commandlink and onclick after update to JSF 1.2

2010-01-04 Thread Michael Heinen
t problem with commandlink and onclick after update to JSF 1.2 Hi Michael, Unfortunately I don't think it is possible to refer to the clicked link inside the function definition. The only way I know is to use document.getElementById('...'). »How is the id of the commandLink placed i

Re: javascript problem with commandlink and onclick after update to JSF 1.2

2010-01-04 Thread Jakob Korherr
Hi Michael, Unfortunately I don't think it is possible to refer to the clicked link inside the function definition. The only way I know is to use document.getElementById('...'). »How is the id of the commandLink placed into oamSubmitForm as parameter?« The renderer of the command link generates t

javascript problem with commandlink and onclick after update to JSF 1.2

2010-01-04 Thread Michael Heinen
Hi, I have another problem after my update from myfaces 1.1.5 to 1.2.8. I cannot use "this" anymore in onclick attributes of commandLinks due to changed rendering of commandLinks. Instead of the link the outer form is accessed via "this". sample: output with 1.1.5: tabTemplates output with 1