catch faces message with js?

2014-10-21 Thread Karl Kildén
Hello, I want to implement my faces messages with http://codeseven.github.io/toastr/ How can I best do this? can I listen to some js event or server side event? cheers

Re: catch faces message with js?

2014-10-21 Thread Thomas Andraschko
Hi Karl, just have a look at p:growl - we use an own renderer there. You can also overwrite the h:message/h:messages renderer of course. Regards, Thomas 2014-10-21 13:26 GMT+02:00 Karl Kildén karl.kil...@gmail.com: Hello, I want to implement my faces messages with

Understanding page lifecycle on return from a faces flow

2014-10-21 Thread Alexander Wise
Greetings, I am trying to use a viewAction as a mechanism to enforce pre-conditions on pages, and am using faces flows to present any interaction required to enforce the preconditions. For example, imagine a “one click” ordering scheme, where clicking on a link takes you to the confirmation

Re: catch faces message with js?

2014-10-21 Thread Kito Mann
Hello Karl, As Thomas said, it's just a rendering issue, and writing a Renderer is pretty simple (at least for Messages). PimeFaces is open source so you can even look at their Growl component renderer for an example. ___ Kito D. Mann | @kito99 | Author, JSF in Action Virtua, Inc. |

Re: catch faces message with js?

2014-10-21 Thread Karl Kildén
Ah, Good idea. I was hooked on jacking myself in to the faces message event life cycle somehow but this is a better way. Primefaces growl is very close to what I want but it performed bad on safari for touch and seem very hard to center. Centering a growl does not make full sense to me personally

Re: catch faces message with js?

2014-10-21 Thread Howard W. Smith, Jr.
On Tue, Oct 21, 2014 at 2:44 PM, Karl Kildén karl.kil...@gmail.com wrote: Primefaces growl is very close to what I want but it performed bad on safari for touch and seem very hard to center. Centering a growl does not make full sense to me personally but it's out of my reach to decide that

Re: catch faces message with js?

2014-10-21 Thread Howard W. Smith, Jr.
I am /very/ impressed with the performance of PrimeFaces (5.x) Mobile. very very fast, much faster than PrimeFaces HTML_BASIC Renderer. that's just my opinion. On Tue, Oct 21, 2014 at 2:47 PM, Howard W. Smith, Jr. smithh032...@gmail.com wrote: On Tue, Oct 21, 2014 at 2:44 PM, Karl Kildén

Re: catch faces message with js?

2014-10-21 Thread Karl Kildén
Hi, Not a fan of a mobile versions of the same content. For my app tablets and desktops have one interface. Then for phones the normal ui kinda works but frequent users go for the app instead. On 21 October 2014 20:56, Howard W. Smith, Jr. smithh032...@gmail.com wrote: I am /very/ impressed