-
1. Re: a4j:support onchange event does not work in IE
ilya_shaikovsky May 25, 2009 5:32 AM (in response to coolrb)IE fires the event after change and blur. and FF fires just after change. We could not influence this anyhow. Just replace support with simple alert to check this.
Usually I propose using onclick to avoid this instead of onchange. -
2. Re: a4j:support onchange event does not work in IE
coolrb May 25, 2009 6:50 AM (in response to coolrb)Thanks for quick reply. I can understand the way events are handled in FF and IE but the same code works perfectly in another page. I have just copied the portion of code.
Again, I changed the event to onclick but still no luck. -
3. Re: a4j:support onchange event does not work in IE
ilya_shaikovsky May 25, 2009 8:33 AM (in response to coolrb)how about the form element?
-
4. Re: a4j:support onchange event does not work in IE
coolrb May 26, 2009 4:48 AM (in response to coolrb)There are no form elements in the page.
-
5. Re: a4j:support onchange event does not work in IE
ilya_shaikovsky May 26, 2009 4:54 AM (in response to coolrb)but the form should present around the action components and a4j action components is not an exception.
-
6. Re: a4j:support onchange event does not work in IE
coolrb May 26, 2009 5:08 AM (in response to coolrb)The whole page has top panel(contains the list box) and a bottom panel contains some more controls. The bottom panel is a form but the top panle does not have any form. Do you think the whole panel should be inside the form?
-
7. Re: a4j:support onchange event does not work in IE
coolrb May 26, 2009 5:11 AM (in response to coolrb)I removed the <h:form> element from the page and it started working. BTW, why IE gives error when there is a form in sub-panel?
-
8. Re: a4j:support onchange event does not work in IE
ilya_shaikovsky May 26, 2009 5:13 AM (in response to coolrb)You are free to have one form for the page or multiple forms for its parts(without nesting which is restricted in JSF).. but any ajax action component should be inside the form element because support and the other components works using the same form POSTs as JSF components.
-
9. Re: a4j:support onchange event does not work in IE
nbelaevski May 26, 2009 5:42 AM (in response to coolrb)Hi,
Form is necessary, you should see JS errors in browser console when trying to activate AJAX link not located inside form.