Hi Alexandre, MyFaces does implement the Flash Scope (every valid JSF 2 implementation has to). Take a look at the standardized class javax.faces.context.Flash.
ELFlash, however, seems to be the internal implementation of the Flash object in Mojarra. This is only an implementation detail and thus MyFaces must not adopt it ;) You can get the valid Flash scope implementation in _every_ JSF 2 implementation (MyFaces or Mojarra) via externalContext.getFlash() (--> this is the standardized way). Thus you're example should look like this: externalContext.getFlash().put( "blog", blog); externalContext.getFlash().get( "blog", blog); Directly using the ELFlash class makes your application dependent on Mojarra internals. If Mojarra decides to change (or rename, delete) the class, you have to adapt your application accordingly and this is hopefully not what you want. Regards, Jakob 2011/1/27 Alexandre Verri <[email protected]>: > Dear developers, > > I would like to request you an important feature that is missing in MyFaces > - the Flash scope. > > Similar to Mojarra, MyFaces could have the ELFlash class with static > methods, to make it possible to store and retrieve objects from flash scope, > like example bellow: > > ELFlash.getFlash().put( "blog", blog); > ELFlash.getFlash().get( "blog", blog); > > Best regards, > Alexandre Verri > -- Jakob Korherr blog: http://www.jakobk.com twitter: http://twitter.com/jakobkorherr work: http://www.irian.at
