imo the event-style fits for PostConstructApplicationEvent (instead of
@Startup), because you have usually one per application (or module) and
it's easy enough for that.

however, we have 2 approaches which can be used for pre-render-view logic
(@PreRenderView and @BeforePhase) - both are in for a good reason.
such a 3rd approach would make sense if you need it outside of a
view-controller -> i'm not sure if we should support it.

regards,
gerhard



2013/11/27 Thomas Andraschko <andraschko.tho...@gmail.com>

> Gerhard, one question about the system events.
> We could also do somelike like (@Observers @ViewRef(config = MyView.class)
> PreRenderViewEvent event) but the #config in ViewRef has a @NonBinding.
> Is this by design?
>
>
> 2013/11/27 Gerhard Petracek <gerhard.petra...@gmail.com>
>
> > yes - you are very welcome to do it (don't forget to use Deactivatable)
> >
> > regards,
> > gerhard
> >
> >
> >
> > 2013/11/27 Thomas Andraschko <andraschko.tho...@gmail.com>
> >
> > > How is it handled it DS?
> > > Should i just create a issue + providing a patch or something?
> > >
> > >
> > > 2013/11/27 Gerhard Petracek <gerhard.petra...@gmail.com>
> > >
> > > > yes - we can do that.
> > > >
> > > > regards,
> > > > gerhard
> > > >
> > > >
> > > >
> > > > 2013/11/27 Thomas Andraschko <andraschko.tho...@gmail.com>
> > > >
> > > > > What about providing a CDI Event for such events?
> > > > >
> > > > > (@Observers PostConstructApplicationEvent event) would be a great
> > > thing.
> > > > >
> > > > >
> > > > > 2013/11/27 Thomas Andraschko <andraschko.tho...@gmail.com>
> > > > >
> > > > > > Is a SystemEventListener CDI-aware with DS?
> > > > > >
> > > > > >
> > > > > > 2013/11/27 Gerhard Petracek <gerhard.petra...@gmail.com>
> > > > > >
> > > > > >> with jsf2+ you can use PostConstructApplicationEvent
> > > > > >>
> > > > > >> regards,
> > > > > >> gerhard
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> 2013/11/27 Thomas Andraschko <andraschko.tho...@gmail.com>
> > > > > >>
> > > > > >> > Hi,
> > > > > >> >
> > > > > >> > is there any to plan to port @Startup for JSF Applications?
> > > > > >> >
> > > > > >> > Regards,
> > > > > >> > Thomas
> > > > > >> >
> > > > > >>
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to