Ryan Lubke píše v Út 07. 04. 2009 v 09:56 -0700:
> On 4/7/09 5:44 AM, Martin Kočí wrote:
> > Hi,
> >
> > I'm trying Flash scope for passing objects to the next faces view, but
> > there is a curious problem:
> >
> > -- Java docs say that new flash map is started in render response phase
> > and propagated over next lifecycle without render response;
> > implmentation has that behaviour
> >
> > -- but in code is a comment:
> >
> > If we're ***invoke-application*** or render-response phase...,
> > // or this is an initial request (not a postback),
> > // or this is the get from the redirect after post...
> > if (currentPhase == PhaseId.RENDER_RESPONSE ||
> > (!context.isPostback()) ||
> > this.isRedirect()) {
> > // make operations go to the next request Map.
> > result = getNextRequestMap(context);
> > }
> >
> > but in if() is no check for application phase.
> >
> > Which case is the right one? I think many users will put objects into
> > flash in invoke aplication phase - so flash should start in invoke
> > apllication.
> >
> The change was prompted by issue 982.
> The comment was overlooked when making the change.
I understand.
Comment for class ELFlash is wrong too because is says: "For
invoke-application and beyond, all operations are directed to an
internal Map that will be accessible for all lifecycle phases on the
<b>next</b> request on this session, up to, but not including,
invoke-application"
> >
> >
> > Regards,
> >
> > Martin
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> > For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>
>