You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Karl Kildén <ka...@gmail.com> on 2014/10/21 13:26:40 UTC

catch faces message with js?

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?

Posted by Karl Kildén <ka...@gmail.com>.
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. <sm...@gmail.com>
wrote:

> 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. <
> smithh032772@gmail.com> wrote:
>
> >
> > On Tue, Oct 21, 2014 at 2:44 PM, Karl Kildén <ka...@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
> >> this time ;)
> >>
> >
> > Have you tried PrimeFaces 5.x Mobile, since you are doing touch (a.k.a
> > mobile device) + safari (browser) ?
> >
> >
>

Re: catch faces message with js?

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
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. <
smithh032772@gmail.com> wrote:

>
> On Tue, Oct 21, 2014 at 2:44 PM, Karl Kildén <ka...@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
>> this time ;)
>>
>
> Have you tried PrimeFaces 5.x Mobile, since you are doing touch (a.k.a
> mobile device) + safari (browser) ?
>
>

Re: catch faces message with js?

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Tue, Oct 21, 2014 at 2:44 PM, Karl Kildén <ka...@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
> this time ;)
>

Have you tried PrimeFaces 5.x Mobile, since you are doing touch (a.k.a
mobile device) + safari (browser) ?

Re: catch faces message with js?

Posted by Karl Kildén <ka...@gmail.com>.
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 but
it's out of my reach to decide that this time ;)

thanks / Karl

On 21 October 2014 20:39, Kito Mann <ki...@virtua.com> wrote:

> 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.virtua.com | JSF/Java EE training and consulting
> http://www.JSFCentral.com | @jsfcentral
> +1 203-998-0403
>
> * Listen to the Enterprise Java Newscast: *http://
> <http://blogs.jsfcentral.com/JSFNewscast/>enterprisejavanews.com
> <http://ww.enterprisejavanews.com>*
> * JSFCentral Interviews Podcast:
> http://www.jsfcentral.com/resources/jsfcentralpodcasts/
> * Sign up for the JSFCentral Newsletter:
> http://oi.vresp.com/?fid=ac048d0e17
>
> On Tue, Oct 21, 2014 at 7:29 AM, Thomas Andraschko <
> andraschko.thomas@gmail.com> wrote:
>
> > 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 <ka...@gmail.com>:
> >
> > > 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?

Posted by Kito Mann <ki...@virtua.com>.
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.virtua.com | JSF/Java EE training and consulting
http://www.JSFCentral.com | @jsfcentral
+1 203-998-0403

* Listen to the Enterprise Java Newscast: *http://
<http://blogs.jsfcentral.com/JSFNewscast/>enterprisejavanews.com
<http://ww.enterprisejavanews.com>*
* JSFCentral Interviews Podcast:
http://www.jsfcentral.com/resources/jsfcentralpodcasts/
* Sign up for the JSFCentral Newsletter: http://oi.vresp.com/?fid=ac048d0e17

On Tue, Oct 21, 2014 at 7:29 AM, Thomas Andraschko <
andraschko.thomas@gmail.com> wrote:

> 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 <ka...@gmail.com>:
>
> > 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?

Posted by Thomas Andraschko <an...@gmail.com>.
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 <ka...@gmail.com>:

> 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
>