Spark theme severity message icons all the same

jcpearce2005
Posts: 23
Joined: 06 Feb 2015, 20:34

27 Apr 2015, 18:27

In my app as on the spark demo at http://www.primefaces.org/spark/messages.xhtml all the messages, info, warn etc.. have the same triangle icon with an exclamation. This causes confusion when one does a correct action and an you get a warning icon. Any workaround, fix?

Thanks
JP

jcpearce2005
Posts: 23
Joined: 06 Feb 2015, 20:34

27 Apr 2015, 18:43

More detail: Regardless of the severity the triangle and exclamation symbol always show. However under <p:messages> the color of the severity does change, however with <p:growl> it is always red.
JP

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

27 Apr 2015, 22:04

You can override background image of message and growl icons.

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

28 Apr 2015, 12:01

These are by design. You can override icons, e.g. for warning;

Code: Select all

.ui-messages-warn-icon {
   background-image: ...
}
Theme manages icons of messages component, not layout.

User avatar
rmruss
Posts: 19
Joined: 17 Apr 2015, 16:40
Location: Brazil

19 May 2015, 00:53

Hi, everyone.

I'm getting the same problem. In live demo it doesn't happen. I think it's a issue. Can you fix it for us?

Thanx,

Ricardo.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

20 May 2015, 09:15

I don't understand this sentence;
In live demo it doesn't happen.
Can you please give me details? and Could you attach your screenshot ?

User avatar
rmruss
Posts: 19
Joined: 17 Apr 2015, 16:40
Location: Brazil

01 Jul 2015, 16:54

Hi!!

Let me explain better....

At our .xhtml page we have this:

Code: Select all

<p:growl life="12000" showDetail="true" />
And at our .java ManagedBean we have this:

Code: Select all

public void save() {
	if (getUnitOfMeasure().getId() == null) {
			unitOfMeasureService.add(unitOfMeasure);

	FacesContext.getCurrentInstance().addMessage(
			null,
			new FacesMessage(FacesMessage.SEVERITY_INFO, "Sucesso",
			"Unidade de Medida cadastrada!"));
}
The code above supposed to print a blue INFO Message, right?

But the image below is what we get. A red FATAL Message. It is wrong, right?

Image

The Growl is receiving all kinds of severity messages because I setted severity="WARN" and the Growl didn't show the INFO Message up.

Code: Select all

<p:growl life="12000" showDetail="true" severity="WARN" />
So we conclude that Spark has something wrong, once ALL FacesMassages are printing FATAL Messages skin.

In live preview, when we click at de Messages Buttons, it works well, showing all types of Severity Messages with the right colors and icons.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

02 Jul 2015, 09:22

Thanks for the detailed description. We will add different colors for next release.

Reinaldo
Posts: 6
Joined: 06 Jul 2015, 20:50

31 Aug 2015, 19:51

there is some new release forecast?

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

01 Sep 2015, 08:49

Premium Layouts-Themes Upgraded; http://blog.primefaces.org/?p=3609

new releases; Sentinel-1.3.1, Rio 2.0.1, Spark 1.3.1, Modena 1.0.2 and Ronin 1.2

Locked

Return to “Spark”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests