Would move extended Growl, Message(s) to PF core

Community Driven Extensions Project
Post Reply
User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

13 Feb 2012, 17:38

Hello Cagatay,

We would like to donate additional features in extended Growl, Message(s) to see these in PrimeFaces core project. These are:

1) TargetableFacesMessage. The TargetableFacesMessage extends from the normal FacesMessage and can be used to set a target component for notification. Current notification targets are: message, messages or growl.
2) level, minLevel, maxLevel. These attributes filter messages (to be rendered by notification component) by severities. Many users asked this by the way.
3) Content escaping (I think PF has this feature in the meantime as well, but not sure).

We would like to move such extensions to PrimeFaces from our "sandbox". I could give you proper links to the code. You have less effort then by copy-&-paste because mentioned extensions are up-to-date and based on current PF code. What do you think? Waiting for your reply.

Thanks in advance.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

14 Feb 2012, 09:37

Hi Oleg,

Still busy with trainings other stuff, I'll be free next week and bump this up.

I've rewritten growl recently as a native widget instead of jquery gritter plugin, would be good to add these extra new features as well.

Cheers,

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

14 Feb 2012, 13:29

I thought that you're busy, Cagatay. Yes, we know about rewritten native growl. Extended growl uses the same script, nothing specific except these three features. It really makes sense to move them to the core project. They all are driven by real use cases. Sometimes you have growl and message(s) on a page and want to display only growl or only message(s) dependent on use case. And sometimes you want to filter displayed notifications by severity. Escaping allows to display HTML content instead of plain text. All these features were asked many times by PF community.

Here links to the extended FacesMessage, base AbstractNotification and Growl. Message / Messages are similar, they extends AbstractNotification as Growl.

TargetableFacesMessage.java
AbstractNotification.java
Growl.java
GrowlRenderer.java

Cheers.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

fenoloco
Posts: 53
Joined: 23 Aug 2011, 23:25
Location: Uruguay
Contact:

14 Feb 2012, 22:59

Would be nice if this functionality is part of the core!
Im using at least in 2 proyect

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

15 Feb 2012, 17:47

Hi Cagatay,

Another internal feature for the PrimeFaces project would be automatic reading of current project version. We have removed e.g. Constants.VERSION from PF Extensions project. I have tried to describe here how this works: Inject Maven project informations into Java application In the next post I plan to describe how to extract SVN revision, build time, JSF-impl. version, Server info, etc. at the build time and make these infos available in the running showcase! All automatic with no effort to adjust java constants somewhere in the future.

If you will consider this for the main project, we will provide more features for you like @Option Annotation, WidgetRenderer, asynch. resource loading and more. You can decide then - accept or not. But that all possible only if you're ready to do first step in this direction :-) Thanks.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: Bogdantbr and 21 guests