Thanks you Dan;
first of all, admin.main event is a display event, so i defined it
private;
my original snippets was:
<event-handler name="admin.tryLogin">
<broadcasts>
<message name="admin.tryLogin"/>
</broadcasts>
<results>
<result name="success" do="admin.main" redirect="true"
preserveState="true" />
<result name="fail" do="page.index" redirect="true"
preserveState="false"/>
</results>
causing the error in mg3 final; if i delete the redirect="true" in
success (i.e. if user i logged)
<result name="success" do="admin.main" preserveState="true" />
all is fine.
with mg3 alpha the first version of the snippet, with the redirect
attribute, is ok.
thanks and regards
salvatore
On 4 Set, 17:28, Dan Wilson <[email protected]> wrote:
> Very interesting message.
>
> From my understanding, a redirect is simply a wrapper for a
> cflocation. Thus, the redirection creates a new http request and as
> such will look like a top level event to your model glue application.
>
> Top level events must be public, so i'm surprised to hear your report
> that redirecting to a private event actually worked in a previous
> version.
>
> Would you be able to retest this?
>
> Dan
>
> On 9/4/09, salvatore fusto <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi,
> > in an app i'm converting to mg3 final, i've an event defined as
> > private, and of course i redirect to this event only with a result-do
> > action.
> > with mg3 alpha this works fine, with the public version of the
> > framework i get the error:
> > Oops!
> > Message This event-handler is private.
> > Detail
> > Extended Info
> > Tag Context C:\ColdFusion8\wwwroot\ModelGlue\gesture\eventrequest
> > \phase\Invocation.cfc (48)
> > C:\ColdFusion8\wwwroot\ModelGlue\gesture\eventrequest\EventContext.cfc
> > (155)
> > C:\ColdFusion8\wwwroot\ModelGlue\gesture\ModelGlue.cfc (215)
> > C:\ColdFusion8\wwwroot\ModelGlue\gesture\ModelGlue.cfm (58)
> > C:\ColdFusion8\wwwroot\newArtea\index.cfm (75)
>
> --
> “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- Nascondi testo citato
>
> - Mostra testo citato -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---