You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by MarcV <ma...@gmail.com> on 2005/10/07 16:00:44 UTC

Message Panel in JSF/MyFaces

Hello,

we have to implement a "message panel" where the a-synchronous
messages from the server will be displayed in real-time and avoiding
the usual "refresh page".
The messages will be of 3 audience : All, group of user, specific user.

We've saw in the Sandbox the auto-update table with Ajax...

Is it suitable for that ?
Is it compatible with Sun RI
Do you have any other tips/tools/recommendation for that ?

--
A+,
MarcV.

Re: Message Panel in JSF/MyFaces

Posted by Werner Punz <we...@gmx.at>.
Have not checked Martins code yet for this table
but a data table might be overkill for you
a leaner approach might be a simple
to have some kind of ajaxed div tag or
label, nothing is in the sandbox yet for such
a case...

Have in mind that the ajax support in myfaces is
at a very early stage yet.
All the infrastructure is there (the proto lib, the script.aculo.us
lib and some basic patterns and controls)
but the controls are mostly not done yet or at an early stage.



Werner




MarcV wrote:
> Hello,
> 
> we have to implement a "message panel" where the a-synchronous
> messages from the server will be displayed in real-time and avoiding
> the usual "refresh page".
> The messages will be of 3 audience : All, group of user, specific user.
> 
> We've saw in the Sandbox the auto-update table with Ajax...
> 
> Is it suitable for that ?
> Is it compatible with Sun RI
> Do you have any other tips/tools/recommendation for that ?
> 


Re: Message Panel in JSF/MyFaces

Posted by Werner Punz <we...@gmx.at>.
Opening separate browser windows, within the same session
opens a can of
worms of problems you might not really want to tap into.
Opening a message window is a viable approach however which might
not trigger the problems you get with a multi window approach
as long as no application logic is interwoven, however
most common and a generally good design is not to use popups
(I use them myself sometimes, but I probably should beat me for that as well)
You might get more problems than solutions by using popups in the future, and
believe me users hate them.

I usually use a specially marked location within the page
to display error messages or messages generally.
Using something like a fade or another special effect
helps to push the users attention to the message.
That approach works exceptionally well.


Werner


MarcV wrote:
> Thanks for your feedbacks... I will investigate in that direction.
> 
> another little question:
> 
> Is it better to have some kind of message panel inside the page as we
> have first though or should we have to go to a separate browser window
> that will implement Ajax or pure jsf or pure html ?
> 
> 2005/10/7, Richard Wallace <rw...@thewallacepack.net>:


Re: Message Panel in JSF/MyFaces

Posted by MarcV <ma...@gmail.com>.
Thanks for your feedbacks... I will investigate in that direction.

another little question:

Is it better to have some kind of message panel inside the page as we
have first though or should we have to go to a separate browser window
that will implement Ajax or pure jsf or pure html ?

2005/10/7, Richard Wallace <rw...@thewallacepack.net>:
> Have you taken a look at AjaxAnywhere
> (http://ajaxanywhere.sourceforge.net/)?  I haven't used it yet but I
> plan to for all my data tables that will be sortable and pageable etc.
> The basic principal is that you mark "zones" of the page as ajax
> reloadable and then you use javascript to reload whichever zone you want
> whenever you want it reloaded.  They don't have true JSF components yet,
> but you can still use it with JSF.  Here's a demo
> http://ajaxanywhere.sweetdev-labs.org:8080/ajaxAnywhereDemo/facesFrame.jsp.
> They plan on adding more JSF capabilities in the next version AFAIK.
>
> Rich
>
> MarcV wrote:
> > Hello,
> >
> > we have to implement a "message panel" where the a-synchronous
> > messages from the server will be displayed in real-time and avoiding
> > the usual "refresh page".
> > The messages will be of 3 audience : All, group of user, specific user.
> >
> > We've saw in the Sandbox the auto-update table with Ajax...
> >
> > Is it suitable for that ?
> > Is it compatible with Sun RI
> > Do you have any other tips/tools/recommendation for that ?
> >
> > --
> > A+,
> > MarcV.
> >
>
>


--
A+,
MarcV.

Re: Message Panel in JSF/MyFaces

Posted by Richard Wallace <rw...@thewallacepack.net>.
Have you taken a look at AjaxAnywhere 
(http://ajaxanywhere.sourceforge.net/)?  I haven't used it yet but I 
plan to for all my data tables that will be sortable and pageable etc.  
The basic principal is that you mark "zones" of the page as ajax 
reloadable and then you use javascript to reload whichever zone you want 
whenever you want it reloaded.  They don't have true JSF components yet, 
but you can still use it with JSF.  Here's a demo 
http://ajaxanywhere.sweetdev-labs.org:8080/ajaxAnywhereDemo/facesFrame.jsp.  
They plan on adding more JSF capabilities in the next version AFAIK.

Rich

MarcV wrote:
> Hello,
>
> we have to implement a "message panel" where the a-synchronous
> messages from the server will be displayed in real-time and avoiding
> the usual "refresh page".
> The messages will be of 3 audience : All, group of user, specific user.
>
> We've saw in the Sandbox the auto-update table with Ajax...
>
> Is it suitable for that ?
> Is it compatible with Sun RI
> Do you have any other tips/tools/recommendation for that ?
>
> --
> A+,
> MarcV.
>