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. wrote: > I am /very/ impressed with the performance of

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 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 > this time ;) > Have

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
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 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. | http://www.v

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 : > Hello, > > I want to implement my faces messages with > http://codeseven.github.io/toastr/ How can

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