In my action, I would like to update a component if the form is accepted. The component is a comments list and the form is a comment creation form. The problem is, the component does update, but does not show the new comment created. I suspect that the component is updating too quickly. I know this for sure as in the background I am updating the comments component at regular intervals. So the component gets updated on the next background refresh.
#process form create comments if comments_form.accepts(request.vars, session): response.flash = 'Comment created' response.js = "web2py_component('/roverus/comment/read.load? current_conversation=1');"