Re: Any plan to port @Startup?
I attached a simple patch for the event bridging. Also reusing ViewRef didn't worked because a binding attribute can't be an array. So i just completely removed the view dependent events. I will create a new issue for @Eager soon 2013/11/27 Gerhard Petracek > afair that's a leftover from codi (where it is needed). > > (we should discuss @Eager based on your patch.) > > regards, > gerhard > > > > 2013/11/27 Thomas Andraschko > > > > 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. > > > > > > > I think not everybody will use JSF, so a @Eager for AppScoped beans would > > be usefull, too. > > And it's only a small extensions + Annotation. > > There are already many people which implemented it in their own apps. > > > > 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. > > > > > > > Thats true. There are currently only 2 other events: > > PostConstructViewMapEvent and PreDestroyViewMapEvent > > I already implemented it but we would need to remove the @Nonbinding - or > > i'm wrong? > > > > So +0 from my side. > > >
Re: Any plan to port @Startup?
afair that's a leftover from codi (where it is needed). (we should discuss @Eager based on your patch.) regards, gerhard 2013/11/27 Thomas Andraschko > > 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. > > > > I think not everybody will use JSF, so a @Eager for AppScoped beans would > be usefull, too. > And it's only a small extensions + Annotation. > There are already many people which implemented it in their own apps. > > 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. > > > > Thats true. There are currently only 2 other events: > PostConstructViewMapEvent and PreDestroyViewMapEvent > I already implemented it but we would need to remove the @Nonbinding - or > i'm wrong? > > So +0 from my side. >
Re: Any plan to port @Startup?
> 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. > I think not everybody will use JSF, so a @Eager for AppScoped beans would be usefull, too. And it's only a small extensions + Annotation. There are already many people which implemented it in their own apps. 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. > Thats true. There are currently only 2 other events: PostConstructViewMapEvent and PreDestroyViewMapEvent I already implemented it but we would need to remove the @Nonbinding - or i'm wrong? So +0 from my side.
Re: Any plan to port @Startup?
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 > 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 > > > yes - you are very welcome to do it (don't forget to use Deactivatable) > > > > regards, > > gerhard > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > How is it handled it DS? > > > Should i just create a issue + providing a patch or something? > > > > > > > > > 2013/11/27 Gerhard Petracek > > > > > > > yes - we can do that. > > > > > > > > regards, > > > > gerhard > > > > > > > > > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > > > > > What about providing a CDI Event for such events? > > > > > > > > > > (@Observers PostConstructApplicationEvent event) would be a great > > > thing. > > > > > > > > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > > > > > > > Is a SystemEventListener CDI-aware with DS? > > > > > > > > > > > > > > > > > > 2013/11/27 Gerhard Petracek > > > > > > > > > > > >> with jsf2+ you can use PostConstructApplicationEvent > > > > > >> > > > > > >> regards, > > > > > >> gerhard > > > > > >> > > > > > >> > > > > > >> > > > > > >> 2013/11/27 Thomas Andraschko > > > > > >> > > > > > >> > Hi, > > > > > >> > > > > > > >> > is there any to plan to port @Startup for JSF Applications? > > > > > >> > > > > > > >> > Regards, > > > > > >> > Thomas > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > >
Re: Any plan to port @Startup?
nevertheless, i think this are 2 different features. I would like to see both in DS and i already have a working implementation for @Eager and a JSF SystemEvent bridge. 2013/11/27 Thomas Andraschko > Is JSF ready in afterdeploymentvalidation? > > > > 2013/11/27 Romain Manni-Bucau > >> Why not just supporting @eager, doing a tostring in >> afterdeploymentvalidation should do the trick >> Le 27 nov. 2013 13:15, "Thomas Andraschko" >> a >> écrit : >> >> > 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 >> > >> > > yes - you are very welcome to do it (don't forget to use >> Deactivatable) >> > > >> > > regards, >> > > gerhard >> > > >> > > >> > > >> > > 2013/11/27 Thomas Andraschko >> > > >> > > > How is it handled it DS? >> > > > Should i just create a issue + providing a patch or something? >> > > > >> > > > >> > > > 2013/11/27 Gerhard Petracek >> > > > >> > > > > yes - we can do that. >> > > > > >> > > > > regards, >> > > > > gerhard >> > > > > >> > > > > >> > > > > >> > > > > 2013/11/27 Thomas Andraschko >> > > > > >> > > > > > What about providing a CDI Event for such events? >> > > > > > >> > > > > > (@Observers PostConstructApplicationEvent event) would be a >> great >> > > > thing. >> > > > > > >> > > > > > >> > > > > > 2013/11/27 Thomas Andraschko >> > > > > > >> > > > > > > Is a SystemEventListener CDI-aware with DS? >> > > > > > > >> > > > > > > >> > > > > > > 2013/11/27 Gerhard Petracek >> > > > > > > >> > > > > > >> with jsf2+ you can use PostConstructApplicationEvent >> > > > > > >> >> > > > > > >> regards, >> > > > > > >> gerhard >> > > > > > >> >> > > > > > >> >> > > > > > >> >> > > > > > >> 2013/11/27 Thomas Andraschko >> > > > > > >> >> > > > > > >> > Hi, >> > > > > > >> > >> > > > > > >> > is there any to plan to port @Startup for JSF Applications? >> > > > > > >> > >> > > > > > >> > Regards, >> > > > > > >> > Thomas >> > > > > > >> > >> > > > > > >> >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> > >
Re: Any plan to port @Startup?
Is JSF ready in afterdeploymentvalidation? 2013/11/27 Romain Manni-Bucau > Why not just supporting @eager, doing a tostring in > afterdeploymentvalidation should do the trick > Le 27 nov. 2013 13:15, "Thomas Andraschko" a > écrit : > > > 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 > > > > > yes - you are very welcome to do it (don't forget to use Deactivatable) > > > > > > regards, > > > gerhard > > > > > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > > > How is it handled it DS? > > > > Should i just create a issue + providing a patch or something? > > > > > > > > > > > > 2013/11/27 Gerhard Petracek > > > > > > > > > yes - we can do that. > > > > > > > > > > regards, > > > > > gerhard > > > > > > > > > > > > > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > > > > > > > What about providing a CDI Event for such events? > > > > > > > > > > > > (@Observers PostConstructApplicationEvent event) would be a great > > > > thing. > > > > > > > > > > > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > > > > > > > > > Is a SystemEventListener CDI-aware with DS? > > > > > > > > > > > > > > > > > > > > > 2013/11/27 Gerhard Petracek > > > > > > > > > > > > > >> with jsf2+ you can use PostConstructApplicationEvent > > > > > > >> > > > > > > >> regards, > > > > > > >> gerhard > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> 2013/11/27 Thomas Andraschko > > > > > > >> > > > > > > >> > Hi, > > > > > > >> > > > > > > > >> > is there any to plan to port @Startup for JSF Applications? > > > > > > >> > > > > > > > >> > Regards, > > > > > > >> > Thomas > > > > > > >> > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Re: Any plan to port @Startup?
Why not just supporting @eager, doing a tostring in afterdeploymentvalidation should do the trick Le 27 nov. 2013 13:15, "Thomas Andraschko" a écrit : > 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 > > > yes - you are very welcome to do it (don't forget to use Deactivatable) > > > > regards, > > gerhard > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > How is it handled it DS? > > > Should i just create a issue + providing a patch or something? > > > > > > > > > 2013/11/27 Gerhard Petracek > > > > > > > yes - we can do that. > > > > > > > > regards, > > > > gerhard > > > > > > > > > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > > > > > What about providing a CDI Event for such events? > > > > > > > > > > (@Observers PostConstructApplicationEvent event) would be a great > > > thing. > > > > > > > > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > > > > > > > Is a SystemEventListener CDI-aware with DS? > > > > > > > > > > > > > > > > > > 2013/11/27 Gerhard Petracek > > > > > > > > > > > >> with jsf2+ you can use PostConstructApplicationEvent > > > > > >> > > > > > >> regards, > > > > > >> gerhard > > > > > >> > > > > > >> > > > > > >> > > > > > >> 2013/11/27 Thomas Andraschko > > > > > >> > > > > > >> > Hi, > > > > > >> > > > > > > >> > is there any to plan to port @Startup for JSF Applications? > > > > > >> > > > > > > >> > Regards, > > > > > >> > Thomas > > > > > >> > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > >
Re: Any plan to port @Startup?
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 > yes - you are very welcome to do it (don't forget to use Deactivatable) > > regards, > gerhard > > > > 2013/11/27 Thomas Andraschko > > > How is it handled it DS? > > Should i just create a issue + providing a patch or something? > > > > > > 2013/11/27 Gerhard Petracek > > > > > yes - we can do that. > > > > > > regards, > > > gerhard > > > > > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > > > What about providing a CDI Event for such events? > > > > > > > > (@Observers PostConstructApplicationEvent event) would be a great > > thing. > > > > > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > > > > > Is a SystemEventListener CDI-aware with DS? > > > > > > > > > > > > > > > 2013/11/27 Gerhard Petracek > > > > > > > > > >> with jsf2+ you can use PostConstructApplicationEvent > > > > >> > > > > >> regards, > > > > >> gerhard > > > > >> > > > > >> > > > > >> > > > > >> 2013/11/27 Thomas Andraschko > > > > >> > > > > >> > Hi, > > > > >> > > > > > >> > is there any to plan to port @Startup for JSF Applications? > > > > >> > > > > > >> > Regards, > > > > >> > Thomas > > > > >> > > > > > >> > > > > > > > > > > > > > > > > > > > >
Re: Any plan to port @Startup?
yes - you are very welcome to do it (don't forget to use Deactivatable) regards, gerhard 2013/11/27 Thomas Andraschko > How is it handled it DS? > Should i just create a issue + providing a patch or something? > > > 2013/11/27 Gerhard Petracek > > > yes - we can do that. > > > > regards, > > gerhard > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > What about providing a CDI Event for such events? > > > > > > (@Observers PostConstructApplicationEvent event) would be a great > thing. > > > > > > > > > 2013/11/27 Thomas Andraschko > > > > > > > Is a SystemEventListener CDI-aware with DS? > > > > > > > > > > > > 2013/11/27 Gerhard Petracek > > > > > > > >> with jsf2+ you can use PostConstructApplicationEvent > > > >> > > > >> regards, > > > >> gerhard > > > >> > > > >> > > > >> > > > >> 2013/11/27 Thomas Andraschko > > > >> > > > >> > Hi, > > > >> > > > > >> > is there any to plan to port @Startup for JSF Applications? > > > >> > > > > >> > Regards, > > > >> > Thomas > > > >> > > > > >> > > > > > > > > > > > > > >
Re: Any plan to port @Startup?
How is it handled it DS? Should i just create a issue + providing a patch or something? 2013/11/27 Gerhard Petracek > yes - we can do that. > > regards, > gerhard > > > > 2013/11/27 Thomas Andraschko > > > What about providing a CDI Event for such events? > > > > (@Observers PostConstructApplicationEvent event) would be a great thing. > > > > > > 2013/11/27 Thomas Andraschko > > > > > Is a SystemEventListener CDI-aware with DS? > > > > > > > > > 2013/11/27 Gerhard Petracek > > > > > >> with jsf2+ you can use PostConstructApplicationEvent > > >> > > >> regards, > > >> gerhard > > >> > > >> > > >> > > >> 2013/11/27 Thomas Andraschko > > >> > > >> > Hi, > > >> > > > >> > is there any to plan to port @Startup for JSF Applications? > > >> > > > >> > Regards, > > >> > Thomas > > >> > > > >> > > > > > > > > >
Re: Any plan to port @Startup?
yes - we can do that. regards, gerhard 2013/11/27 Thomas Andraschko > What about providing a CDI Event for such events? > > (@Observers PostConstructApplicationEvent event) would be a great thing. > > > 2013/11/27 Thomas Andraschko > > > Is a SystemEventListener CDI-aware with DS? > > > > > > 2013/11/27 Gerhard Petracek > > > >> with jsf2+ you can use PostConstructApplicationEvent > >> > >> regards, > >> gerhard > >> > >> > >> > >> 2013/11/27 Thomas Andraschko > >> > >> > Hi, > >> > > >> > is there any to plan to port @Startup for JSF Applications? > >> > > >> > Regards, > >> > Thomas > >> > > >> > > > > >
Re: Any plan to port @Startup?
What about providing a CDI Event for such events? (@Observers PostConstructApplicationEvent event) would be a great thing. 2013/11/27 Thomas Andraschko > Is a SystemEventListener CDI-aware with DS? > > > 2013/11/27 Gerhard Petracek > >> with jsf2+ you can use PostConstructApplicationEvent >> >> regards, >> gerhard >> >> >> >> 2013/11/27 Thomas Andraschko >> >> > Hi, >> > >> > is there any to plan to port @Startup for JSF Applications? >> > >> > Regards, >> > Thomas >> > >> > >
Re: Any plan to port @Startup?
Is a SystemEventListener CDI-aware with DS? 2013/11/27 Gerhard Petracek > with jsf2+ you can use PostConstructApplicationEvent > > regards, > gerhard > > > > 2013/11/27 Thomas Andraschko > > > Hi, > > > > is there any to plan to port @Startup for JSF Applications? > > > > Regards, > > Thomas > > >
Re: Any plan to port @Startup?
with jsf2+ you can use PostConstructApplicationEvent regards, gerhard 2013/11/27 Thomas Andraschko > Hi, > > is there any to plan to port @Startup for JSF Applications? > > Regards, > Thomas >