PDA

View Full Version : How to modify an object in webflow through ajax?



Adam B
May 2nd, 2012, 01:55 PM
Hi all,

I'm having trouble understanding how ajax, a controller, and web-flow can interact.

As of right now, my project moves from page to page from different view states through the flow.

However, on some of these different pages, I have a few ajax calls that get directed to various controllers for server processing on a "currentObject". The services return an object, which I need to put back into the web-flow as my "currentObject".

Just to make things clear: I want to associate object A with object B, which object A is associated to the "currentObject". I do my server processing and complete the association(so "currentObject" is associated to object A which is associated to object B) and save the object to database. When I click on "create new object", web-flow still has the "currentObject" where object A is NOT associated with object B.

I want to put my updated "currentObject" into web-flow from my controller, so what is the best approach to modifying the object in web-flow through an ajax call?

Adam

Adam B
May 8th, 2012, 08:29 AM
Any comments or ideas please?