Well, by nature, the last example is asking coldfusion to evaluate a
variable based on the typical scope lookup chain. Maybe there is another
syntax that would work, but I pretty much do what your first 2 example lines
of code show.

DW

On Tue, Jul 21, 2009 at 4:04 PM, Gareth Cole <[email protected]> wrote:

>  I've got it working by using the following code:
>
>
>
> <cfset event.copyToScope(variables, "xe.forgotPassword") />
>
> …
>
> <a href="#event.linkTo(xe.forgotPassword)#">Forgot Password?</a>
>
>
>
> However, it would be cool if I could just do:
>
> <a href="#event.linkTo(xe.forgotPassword)#">Forgot Password?</a>
>
>
>
> The last example doesn't work now though, and I'm not sure how easy it
> would be to implement
>
>
>
> -----Original Message-----
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Charlie Griefer
> *Sent:* 21 July 2009 20:55
> *To:* [email protected]
> *Subject:* [Model-Glue] Re: Are eXit Events still recommended in MG3?
>
>
>
> +1 Dan.
>
> When I was first learning Fusebox, the concept of why XFA's were needed was
> hard for me to grasp.  It seemed like unnecessary abstraction just for the
> sake of abstraction.
>
> But as I started using them, I did find it somewhat comforting that I could
> look at my circuit.xml file and know exactly what was going on in any given
> place, all centrally located in one file.  Same with MG and MG.xml.
> Especially with the cfeclipse frameworks plugin.
>
> I don't think it would be terrible to forego them in favor of
> event.linkTo() with a hard-coded event-handler argument.  But my preference
> would be to keep that info in the MG.xml, where I can peruse the
> event-handler names easily, and just add/modify an XE values right there as
> needed.
>
> Like so many other things, I think it just comes down to personal
> preference.  I can't think of any compelling reason why I'd call either way
> "bad".
>
>  On Tue, Jul 21, 2009 at 12:47 PM, Dan Wilson <[email protected]> wrote:
>
> The nice thing about XEs is the ModelGlue.xml files become a very easy to
> read blueprint of how the application flows. I ensure all applications I
> design and architect use XEs.
>
>
>
> There is no reason why event.linkTo() should get in the way of using XEs,
> since XEs are simple event parameters.
>
>
>
>
>
>
> DW
>
>
>
>
>
> On Tue, Jul 21, 2009 at 3:43 PM, Doug Hughes <[email protected]> wrote:
>
> I was going to give a quick "no" for the answer here....  but now that I
> think about it, the answer might be yes.  You still have to define where
> that link will go and, like with XEs, making that configurable is nice.
>
> So, I'm not convinced it's a terribly important thing to do, but if you
> feel compelled to do it then great!
>
> In my experience, I haven't found much value in XEs.
>
> Doug Hughes, President
> Alagad Inc.
> [email protected]
> 888 Alagad4 (x300)
> Office: 919-550-0755
> Fax: 888-248-7836
>
>
>
>  On Tue, Jul 21, 2009 at 3:41 PM, Gareth Cole <[email protected]> wrote:
>
> Hi,
>
>
>
> I've been looking at the new linkTo() function. Is it still best practice
> to set exit events e.g. xe.submit in the modelglue.xml file?
>
> All the documentation examples seem to hardcode the exit event into the
> view e.g.* *<a href="#event.linkTo("user.profile", "userId")#">
> Example Link</a>
>
>
>
> Thanks,
>
>
>
> Gareth
>
>
>
>
>
>
>
>
>
>
> --
>
> “Come to the edge, he said. They said: We are afraid. Come to the edge, he
> said. They came. He pushed them and they flew.”
>
> Guillaume Apollinaire quotes
>
>
>
>
>
>
> --
> I have failed as much as I have succeeded. But I love my life. I love my
> wife. And I wish you my kind of success.
>
>
> >
>


-- 
“Come to the edge, he said. They said: We are afraid. Come to the edge, he
said. They came. He pushed them and they flew.”

Guillaume Apollinaire quotes

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

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to