growl

How to handle error in Primefaces lazy load?

感情迁移 提交于 2019-12-22 07:54:12
问题 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. 回答1: It doesn't work because load() method is invoked during Render Response phase (you can check this by printing

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

与世无争的帅哥 提交于 2019-12-21 18:07:29
问题 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) 回答1: This link provides information about "translucent shaped Windows" using Swing, though it does not

Growl Notifications: How to push Growl notifications from a website?

。_饼干妹妹 提交于 2019-12-13 16:11:20
问题 I'm wondering how I can push desktop Growl notifications from my web application to the user of my web application. I would like to use javascript, if possible, otherwise a language like Ruby or PHP would be my second choice. Have you implemented something like this before? How can it be done? 回答1: I figured out how to use Ruby to push Growl notifications. I would still like to find a JavaScript solution, but if there is no way to use JavaScript, then here is a Ruby solution: Use the ruby

Monitoring Spotify track change in Applescript?

时间秒杀一切 提交于 2019-12-13 13:06:52
问题 I'm trying to figure out the best way via Spotify's Applescript library to detect a track change. So far, I've tried checking player position -- if it equals 0 it is a new track and the Growl notification appears again. (This didn't work mostly if someone started a song over, etc.) I'm wondering if the more plausible method is having an idle iTunes script running and checking the current track name for change every couple seconds. I'm worried this might be a bit of a hog memory-wise. I can't

is possible use two growls in one page

为君一笑 提交于 2019-12-13 05:24:25
问题 I want to use two growls in one page. One use to show success message that do auto hide ( sticky="false") , the other one use to show failed messages that do not auto hide ( sticky="true" ): <p:growl id="globalSuccessMessageGrowl" showDetail="false" showSummary="true" life="3000" /> <p:growl id="globalFailedMessageGrowl" showDetail="false" showSummary="true" sticky="true" /> public static void globalSuccessMessage(String message, FacesMessage.Severity severity) { FacesContext

Display p:fileUpload invalidFileMessage outside component inside e.g. p:messages or p:growl

一个人想着一个人 提交于 2019-12-12 18:06:27
问题 I have Facelets file: <h:body> <ui:composition template="...."> <h:form id="templateEditor"> <p:growl id="growl" sticky="true" showDetail="true" autoUpdate="true" widgetVar="growl"/> <h:outputScript library="js" name="ckeditor.js" target="head" /> <body onload="onloadInput();"/> <p:tabView> <p:tab title="...." > <p:datagrid id="..." /> <p:fileUpload id="fileUpload" skinSimple="true" label="..." auto="true" allowTypes="/(\.|\/)(jpg|jpeg|png|bmp)$/" sizeLimit="5000000" invalidFileMessage="#..."

display growl when page is loaded primefaces jsf2

自闭症网瘾萝莉.ら 提交于 2019-12-12 12:26:03
问题 I have this commandButton : <p:commandButton value="Enregistrer" action="#{reglementClientMB.ajouter}" process="@this @form" update="@form" > <f:setPropertyActionListener target="#{reglementClientMB.est_ajouter}" value="false" /> </p:commandButton> the action method return to another page , I want to display one p:growl when the next page is loaded I tested to put that is the constructor of its managed bean but the growl is displayed below data in the page FacesContext.getCurrentInstance()

Update p:growl from @ApplicationScoped bean listening on p:socket

夙愿已清 提交于 2019-12-12 06:17:19
问题 I have application scoped bean that is listening to web-socket. When message is received I would like to update growl. But something like below doesn't work because it is not in request / response time. It is possible to do this? RequestContext.getCurrentInstance().update("growl"); FacesContext context = FacesContext.getCurrentInstance(); context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, "Message", "value")); 回答1: What you need to do is send a PrimeFaces push event from

Get domain user from IPAddress or Hostname in .Net

情到浓时终转凉″ 提交于 2019-12-12 06:01:41
问题 We're trying to implement a custom solution for Growl for Windows. We tell the Growl client to subscribe to notifications from our server. The server then gets a message from the client via the GNTP (Growl messaging protocol). We require the name of the user logged into the client machine in order to do database lookups. The GNTP does not provide this information. So, we have a connected client socket (and thus, IP address) and a message from this client containing its machine name. Is there

Modify shell script to monitor/ping multiple ip addresses

核能气质少年 提交于 2019-12-11 08:51:51
问题 Alright so I need to constantly monitor multiple routers and computers, to make sure they remain online. I have found a great script here that will notify me via growl(so i can get instant notifications on my phone) if a single ip cannot be pinged. I have been attempting to modify the script to ping multiple addresses, with little luck. I'm having trouble trying to figure out how to ping a down server while the script keeps watching the online servers. any help would be greatly appreciated. I