Reputation: 2183
Here is code
<h:outputLink styleClass="button" value="javascript:void(0);">
Text
<f:ajax execute="@form" event="click" listener="#{commentView.saveComment}" render="main_form" />
</h:outputLink>
My commentView bean is @ViewScoped.
Works in Chrome as i expected but in IE only once.
Thanks for any idea.
EDIT:
it behaves like it is ok by changing render="main_form"
to render=":main_form"
but the problem continues in eclipse's browser.
Upvotes: 3
Views: 1057
Reputation: 31
I had the same problem, in my case it worked fine in all browsers except that in IE9 the ajax was fired only once .
I was using render="@form"
and when I changed it to render="@all"
, it worked fine. I dunno why, since I only have one Form in that page, and all my components are in that form, anyway, I hope this is useful.
Upvotes: 2
Reputation: 13931
Reason may be stopping script in the middle because of error. Use Developer Tools (F12 key in IE), there is script debugger that can help with bug tracking.
Upvotes: 2