In your view, for example, instead of:
<cfset variables.var1 = viewState.getValue("var1") />
<cfset variables.var2 = viewState.getValue("var2") />
<cfset variables.var3 = viewState.getValue("var3") />
You can always use this alternate syntax:
<cfset variables.state = viewState.getAll() />
and then you can reference var1, var2 and var3 in your code like this: variables.state.var1, variables.state.var1 and variables.state.var1
Possibly related:
Tagged model-glue | Post a Comment


















Home > About This Post
This entry was posted by Eddie Awad on Thursday, June 16th, 2005, at 3:14 pm, and was filed in ColdFusion.
Subscribe to the
RSS 2.0 feed for all comments to this post.
Post a Comment