Pass Variables within the RenderView call

Hi guys,

I used to have this working just fine in CF9 (Coldbox 3 Beta):
#renderView(view='#theview#',formevent='value1',msg='value2',actiontype='value3')#

Now the variables are lost in Railo 3.2 (Coldbox 3 Final):
#renderView(view='#theview#',formevent='value1',msg='value2',actiontype='value3')#

Any ideas?

Felipe Serrano

if you want to pass these variables to your view, use
Event.setValue("formevent", "value1"); in your Handler
and
Event.getValue("formevent"); in your view

I've just never tried to pass any variables through renderView, and i
didn't find any documentation on that.

hope this helps.

Thank you Daniel,

Since the decision or the values of the variables occur in the view at
the moment I call the "include" function, and not the handler.
(probably bad design) I will review it and re-design it.

you can pass variables to the views now in 3.1 via the “args” argument in the renderView() calls or use the rc

Luis F. Majano
President
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Great Luis,

Where is the download for this update?

Felipe Serrano

In github, development branch. Will be released either this or next week

Luis F. Majano
President
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Thanks :slight_smile: