Possibly you should put the event you'd like the user to go to in a hidden field. (Or a cookie, session variable, whatever makes sense for your application)
Then, use event.forward() in a controller to send the user there. Make sense? ------Original Message------ From: Jeremy Rottman Sender: [email protected] To: model-glue ReplyTo: [email protected] Subject: [Model-Glue] Handling Forms and Sent: Dec 21, 2009 11:37 AM Within my application I have 2 different templates setup. 1 handles the initial landing page and the other handles the reset of the content for the application. One element of the "other" template is a form that must be displayed on all pages. Hence the reason it is in this template. When this form is submitted it fires off the event below. The issue I am having is that when this form is submitted I am not sure how to keep the user on same page they are on. So if a user is viewing the page contact us (event=page.contact) how do I dynamically set the result of the event below? Or is there a better way to handle this issue? Any information anyone can give me is greatly appreciated. <event-handler name="action.votePollContent"> <broadcasts> <message name="votePoll" /> </broadcasts> <results> <result do="page.articles.featured"/> </results> </event-handler> -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en Sent from my Verizon Wireless BlackBerry -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
