You need to sign in to do that
Don't have an account?
Bakul Patel 9
commandlink and rerender inside VF component
Can anybody spot a problem in following link?
When I click on this link, it shows javascript error : actionUrl.indexOf is not a function or something like that.
If I remove rerender from link, it works fine.
I have used command link and rerender, but never faced this problem.
Just as an additional info, this link is inside a VF component.
<apex:commandLink action="{!showTimeEntries}" reRender="panel11" value="Show Time Entries" />
When I click on this link, it shows javascript error : actionUrl.indexOf is not a function or something like that.
If I remove rerender from link, it works fine.
I have used command link and rerender, but never faced this problem.
Just as an additional info, this link is inside a VF component.
The problem was because of Dropbox component included the page. There is something in that component which was causing problem for all ajax actions on that page. When I removed that component, all worked fine. So, I just got that component into another page, and now it seems ok.
All Answers
Perhaps showTimeEntries method signature is not correct, if return type is void, try using pageReference and return null
The problem was because of Dropbox component included the page. There is something in that component which was causing problem for all ajax actions on that page. When I removed that component, all worked fine. So, I just got that component into another page, and now it seems ok.