If you're running Model-Glue 3, check out the event.linkTo() function:

http://docs.model-glue.com/wiki/HowTos/HowToUseSearchEngineSafeUrls#UsingtheEventslinktoFunction

Also, viewstate is deprecated in MG 3, as the event object is now
available in views.

HTH,

--
Ezra Parker


On Mon, Nov 30, 2009 at 10:12 AM, Chuck Savage <[email protected]> wrote:
> Anyone have a good helper that combines 'myself' and other?
>
> I find that I'm writing ...
>
> <cfset loginPage = viewstate.getValue("myself") & viewstate.getValue
> ("xe.Login") />
> <cfset logoutPage = viewstate.getValue("myself") & viewstate.getValue
> ("xe.Logout") />
>  on one page, then another
>
> <cfset myself = viewState.GetValue('myself')>
> <cfset self = myself & viewState.GetValue('event')>
> <cfset resetPage = myself & viewState.GetValue('xe.reset')>
> <cfset deletePage = myself & viewState.GetValue('xe.delete')>
> <cfset ignorePage = myself & viewState.GetValue('xe.ignore')>
> <cfset unignorePage = myself & viewState.GetValue('xe.unignore')>
>
> etc etc.  Its getting old fast.  I need something smoother and less
> verbose.
>
> Related, can helper cfc's get injected with the event scope/bean?
>
> I'm thinking a custom tag that does something like <cf_myself
> variable="loginPage" e="xe.Login">
> 'variable' being optional, otherwise variable would be the value
> passed into e, so internally to the tag would basically be:
>
> <cfparam name="Attributes.e" type="string" />
> <cfparam name="Attributes.variable" type="string"
> default="#Attributes.e#" />
> <cfset "#Attributes.variable#" = viewState.getValue("myself") &
> viewState.getValue(Attributes.e)>
>
> --
> 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
>

-- 
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

Reply via email to