faces icon indicating copy to clipboard operation
faces copied to clipboard

Allow custom FacesMessage Severities

Open commodis opened this issue 4 years ago • 6 comments

There was once an issue regarding the Severity SUCCESS (https://github.com/eclipse-ee4j/faces-api/issues/895 or https://github.com/javaee/javaserverfaces-spec/issues/895) which was just closed for no documented reason.

Even though the class jakarta.faces.application.FacesMessage$Severity is public, its constructor is private which disallows an instantiation.

commodis avatar Aug 31 '21 15:08 commodis

Something in scope of 4.0 for sure. It was likely accidentally closed, as there were so many open issues then.

arjantijms avatar Aug 31 '21 22:08 arjantijms

I guess it did not make the cut for 4.0 😄

thatsIch avatar Jun 05 '24 20:06 thatsIch

That'll be 5.0 then. This is indeed not an uncommon community demand.

BalusC avatar Jun 15 '24 13:06 BalusC

@BalusC @arjantijms i think we can either do this or #1934

tandraschko avatar Jul 08 '24 14:07 tandraschko

An enum would not be extensible. If this is implemented as an enum then the only business requirement I have is to add the SUCCESS. It seems MyFaces has already implemented it (https://github.com/jakartaee/faces/issues/1592).

This is also seen in PrimeNG that this is commonly available (https://www.primefaces.org/primeng-v8-lts/#/messages).

If Mojarra also implements SUCCESS this issue here can be retracted.

commodis avatar Jul 08 '24 14:07 commodis

then i would prefer a ENUM over this ticket as we already have SUCCESS and this was the only requested severity since years.

tandraschko avatar Jul 08 '24 14:07 tandraschko

i will close this for now

tandraschko avatar Jul 31 '24 06:07 tandraschko