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
Spark theme severity message icons all the same
-
- Posts: 23
- Joined: 06 Feb 2015, 20:34
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
JP
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
You can override background image of message and growl icons.
Github Profile: https://github.com/mertsincan
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
These are by design. You can override icons, e.g. for warning;
Theme manages icons of messages component, not layout.
Code: Select all
.ui-messages-warn-icon {
background-image: ...
}
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
I don't understand this sentence;
Can you please give me details? and Could you attach your screenshot ?In live demo it doesn't happen.
Github Profile: https://github.com/mertsincan
Hi!!
Let me explain better....
At our .xhtml page we have this:
And at our .java ManagedBean we have this:
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?
The Growl is receiving all kinds of severity messages because I setted severity="WARN" and the Growl didn't show the INFO Message up.
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.
Let me explain better....
At our .xhtml page we have this:
Code: Select all
<p:growl life="12000" showDetail="true" />
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!"));
}
But the image below is what we get. A red FATAL Message. It is wrong, right?
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" />
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.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Thanks for the detailed description. We will add different colors for next release.
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
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
new releases; Sentinel-1.3.1, Rio 2.0.1, Spark 1.3.1, Modena 1.0.2 and Ronin 1.2
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests