growl

How to handle error in Primefaces lazy load?

隐身守侯 提交于 2019-12-05 16:40:25
I have problem to let user know about exceptions occurred in PrimeFaces LazyDataModel#load method. I am loading there data from database and when an exception is raised, I have no idea how to inform the user about it. I tried to add FacesMessage to FacesContext , but message is not shown on the Growl component, even if Growl is set to autoUpdate="true" . Using PrimeFaces 3.3 . It doesn't work because load() method is invoked during Render Response phase (you can check this by printing FacesContext.getCurrentInstance().getCurrentPhaseId() ), when all messages have already been processed. The

Growl Notifications from a Web Server

前提是你 提交于 2019-12-05 09:59:49
I notice that Growl allows for the possibility of Growl notifications from a website. Has anyone tried implementing this? If so, what form did it take? Did you implement multi user support? And, can you provide any code examples (C# or Objective-C would preferable but I'm not that fussed)? Rich There are GNTP (Growl Network Transport Protocol) bindings for various languages, a list of bindings can be found here - these allow you to send notifications from, say, a PHP script. I wouldn't trust Growl's UDP system directly, but rather write a server that receives and stores notifications (maybe as

How to close GROWL Message on click anywhere on the message? (JSF,Primefaces)

淺唱寂寞╮ 提交于 2019-12-04 12:51:04
I need to close the growl messages in my UI, if the user clicks anywhere on the message . That is required, because the close button of the default growl messages in Primefaces is difficult to find for the user. Is there a way of doing that? What about solve it via CSS: .ui-growl-icon-close { width: 100%; height: 100%; background-image: none!important; } Put this into your CSS file. 来源: https://stackoverflow.com/questions/15710079/how-to-close-growl-message-on-click-anywhere-on-the-message-jsf-primefaces

Equivalent to Android's Toast or Mac OSX Growl in Java Swing?

蓝咒 提交于 2019-12-04 09:28:47
Looking for a means of displaying transient, non-modal dialogs in a Swing application. In other words, I'd like to pop up a semi-transparent box with some text in it that can be immediately dismissed, or will fade away in a set amount of time. Is there a library to do this? I don't want to reinvent the wheel if it already exists. Growl screenshot: Android Toast screenshot: (source: devx.com ) This link provides information about "translucent shaped Windows" using Swing, though it does not provide the full sourcecode (but slides explaining what has to be done in order to achieve this). He

Primefaces custom positioning for a specific p:growl

◇◆丶佛笑我妖孽 提交于 2019-12-04 02:11:59
I am using PrimeFaces 3.3.1. I can customize growls by: .ui-growl { position:absolute; top:50%; left:50%; z-index:9999; } But it customizes all growls. I need to customize just one specific <p:growl> . I mean, I want to place just one growl to the center and all the rest to the top right corner. How to do that? Thanks. Akos K As you can see from the generated HTML the growl component isn't holding your actual growl data. The message which is appearing in the corner is hold by a div element: <div id="your_growl_id + _container"> so the correct css selector for growl would be: div[id="growlForm1

PrimeFaces growl change color dynamically

微笑、不失礼 提交于 2019-12-01 08:17:34
Is there a way to change dynamically the background of the PrimeFaces growl component? I want to be able to show a red background when it's an error and a green background when is a success. Thanks in advance. <style> div[id="forma:growl-error_container"] > div { background-color: red !important; } div[id="forma:growl-success_container"] > div{ background-color: green !important; } </style> <h:form id="forma"> <p:growl id="growl-error" showDetail="true" sticky="true" rendered="#{facesContext.maximumSeverity.ordinal eq 2}"/> <p:growl id="growl-success" showDetail="true" sticky="true" rendered="

push-style notifications similar to Facebook with Rails and jQuery

与世无争的帅哥 提交于 2019-11-30 05:23:21
I want to create a push notification system like Facebook. Whenever Facebook wants to tell you something (like that someone commented on a post, tagged you, etc), you'll see a small notification show up in the bottom left corner of the screen. It fades in and fades out. How do I build a system like this with jQuery and Rails? How does it even work? Does JS constantly ask the server, "is there a new notification?" or does the server somehow push to this service. Right now, if a user sends another user a message (for example), I can add a notification to the user's queue saying "you have a new

Cross-platform desktop notifier in Python

你。 提交于 2019-11-28 15:43:21
I am looking for Growl -like, Windows balloon-tip-like notifications library in Python. Imagine writing code like: >>> import desktopnotifier as dn >>> dn.notify('Title', 'Long description goes here') .. and that would notify with corresponding tooltips on Mac, Windows and Linux. Does such a library exist? If not, how would I go about writing one myself? Does Mac come with a default notifier? Is Growl something that I should install separately? On Windows, I assume this may require pywin32 ? On Linux, assuming GNOME, is there a GNOME API (using gnome-python) that does this? Can I make

Cross-platform desktop notifier in Python

走远了吗. 提交于 2019-11-27 09:21:59
问题 I am looking for Growl-like, Windows balloon-tip-like notifications library in Python. Imagine writing code like: >>> import desktopnotifier as dn >>> dn.notify('Title', 'Long description goes here') .. and that would notify with corresponding tooltips on Mac, Windows and Linux. Does such a library exist? If not, how would I go about writing one myself? Does Mac come with a default notifier? Is Growl something that I should install separately? On Windows, I assume this may require pywin32? On

How to use Primefaces' p:growl and redirect to a page

泪湿孤枕 提交于 2019-11-26 23:21:31
问题 hi im kind of new at jsf enviroment, im trying to update a primefaces growl and then redirect to a page from a commandButton action. <p:commandButton value="Guardar" action="#{AgendamientoMBean.procesaAgendamientoJ()}" update="growlDetalle" /> The managed bean code its FacesContext context = FacesContext.getCurrentInstance(); context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, descripcion, detalle)); .... .... return "agp_bandeja_citas_llamadas?faces-redirect=true"; This