Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

JSF Phaselisteners

Thread view: 
Steve Sobol - 24 Dec 2007 03:17 GMT
Can someone give me a pointer to a good tutorial explaining the use of
PhaseListeners in JSF? Google isn't very helpful tonight.

Signature

Steve Sobol, Victorville, CA     PGP:0xE3AE35ED  www.SteveSobol.com
Geek-for-hire. Details: http://www.linkedin.com/in/stevesobol

Andrew Thompson - 24 Dec 2007 03:49 GMT
>Can someone give me a pointer to a good tutorial explaining the use of
>PhaseListeners in JSF?..

<speculative*>
<https://blueprints.dev.java.net/bpcatalog/ee5/ajax/phaselistener.html>
<http://java.sun.com/javaee/javaserverfaces/ajax/tutorial.jsp>
</speculative>

* Speculative based of the facts(s) that..
- Definitions of 'good' differ.
- I have not followed them through to check if the authors
are speaking nonsense.
- I do not work in JSF, and had never heard of a PhaseListener
till right about now.

>.. Google isn't very helpful tonight.

Neither is my crystal ball.  

Those links were gleaned from the first two pages of
hits for the term 'jsf+phaselistener+tutorial'.  What
was your search term?  Did you find those two
mentioned above?  If they were 'found and found
wanting', leads to, what is your definition of 'good'?

Signature

Andrew Thompson
http://www.physci.org/

Steve Sobol - 24 Dec 2007 05:50 GMT
>>Can someone give me a pointer to a good tutorial explaining the use of
>>PhaseListeners in JSF?..
>
><speculative*>

Sorry, you can't use that tag anymore, it's deprecated. :)

><https://blueprints.dev.java.net/bpcatalog/ee5/ajax/phaselistener.html>

Pretty comprehensive, but also a little more advanced than what I want. I'm
looking for the whys and hows. I am getting into JSF pretty heavily now and
I think implementing a PhaseListener in one of my apps may be the way to go,
but it's hard to know when I'm not sure exactly what purpose a PhaseListener
serves. :)

><http://java.sun.com/javaee/javaserverfaces/ajax/tutorial.jsp>

Also more advanced than what I need.

>>.. Google isn't very helpful tonight.
>
[quoted text clipped - 3 lines]
> mentioned above?  If they were 'found and found
> wanting', leads to, what is your definition of 'good'?

A basic explanation of what a PhaseListener does, for starters, so I can
decide whether I want to try implementing one. That's my main requirement.

I tried +jsf +phaselistener +tutorial on Google, just now. Before posting, I
entered those exact keywords separated by spaces, but without the plus signs.
My Google-fu is good enough that I should have known to use the plusses the
first time... Using the plusses does help, it seems to have returned several
relevant results. Time to go surf...

Thanks,
 Steve

Signature

Steve Sobol, Victorville, CA     PGP:0xE3AE35ED  www.SteveSobol.com
Geek-for-hire. Details: http://www.linkedin.com/in/stevesobol

Andrew Thompson - 24 Dec 2007 06:21 GMT
>>>Can someone give me a pointer to a good tutorial explaining the use of
>>>PhaseListeners in JSF?..
>>
>><speculative*>
>
>Sorry, you can't use that tag anymore, it's deprecated. :)

No problem, specify the -supressWAGwarnings switch
and continue..  ;-)

>>>.. Google isn't very helpful tonight.
..
>> ...what is your definition of 'good'?
>
>A basic explanation of what a PhaseListener does, for starters,

OK, unfortunately..
<http://www.google.com/search?as_q=definition+phaselistener>
..seems less useful than the other 'tutorial' search.

BTW. ..

>..so I can
>decide whether I want to try implementing one. That's my main requirement.
>
>I tried +jsf +phaselistener +tutorial on Google, just now.

..when I writ 'a+b+c' as the search string, I simply meant use
those three words 'a b c', in the search box.  I get used to
*representing* them in the a+b+c form, since that is how
they end up as a link (see above).

>... Time to go surf...

Hang ten.

Signature

Andrew Thompson
http://www.physci.org/

Lew - 24 Dec 2007 16:16 GMT
>>> ...what is your definition of 'good'?

Steve Sobol wrote:
>> A basic explanation of what a PhaseListener does, for starters,

<http://java.sun.com/javaee/5/docs/api/javax/faces/event/PhaseListener.html>
PhaseListener is the interface for objects that are called as a request moves
through the standard phases of its processing.  It's a kind of EventListener,
linked also from the Javadocs.

Signature

Lew

Steve Sobol - 24 Dec 2007 20:42 GMT
><http://java.sun.com/javaee/5/docs/api/javax/faces/event/PhaseListener.html>
> PhaseListener is the interface for objects that are called as a request moves
> through the standard phases of its processing.  It's a kind of EventListener,
> linked also from the Javadocs.

Lovely! Thank you.

Signature

Steve Sobol, Victorville, CA     PGP:0xE3AE35ED  www.SteveSobol.com
Geek-for-hire. Details: http://www.linkedin.com/in/stevesobol

Lew - 24 Dec 2007 20:57 GMT
Lew wrote:
>> <http://java.sun.com/javaee/5/docs/api/javax/faces/event/PhaseListener.html>
>> PhaseListener is the interface for objects that are called as a request moves
>> through the standard phases of its processing.  It's a kind of EventListener,
>> linked also from the Javadocs.

> Lovely! Thank you.

As a general rule, if there's a java or javax TLD in the package name, there's
a decent Javadoc for it.  I didn't even need a search engine to direct me
there; I keep hotlinks in my browser for both Java SE and Java EE API docs.

Oh, and the list of "known subinterfaces" for java.util.EventListener is a
cautionary example for those who want to "list all subtypes of a given type".
 There will always be a latency between when or where such a list is
generated and "outside" libraries that add to them.  EventListener lists all
the core Java subinterfaces that it can, but could not know about the Java EE
types that extend it.

OTOH, it is very useful to read the Javadocs in the other direction.  Linking
back to EventListener's description from PhaseListener's is very instructive.
 It also teaches much about JSF to follow the links thence through to
PhaseEvent and PhaseId,

Interesting that PhaseId is a typesafe enumeration rather than an enum.

Signature

Lew

Steve Sobol - 24 Dec 2007 21:33 GMT
> As a general rule, if there's a java or javax TLD in the package name,
> there's
> a decent Javadoc for it.  I didn't even need a search engine to direct me
> there; I keep hotlinks in my browser for both Java SE and Java EE API docs.

I have Firefox set up with the DocJar search plugin, and at some point I'm
eventually going to install the DocJar Eclipse plugin. I <heart> DocJar! I'll
keep your comments in mind about the java.* and javax.* packages.

Thanks for all of your advice. Merry Christmas, if you celebrate Christmas.

Signature

Steve Sobol, Victorville, CA     PGP:0xE3AE35ED  www.SteveSobol.com
Geek-for-hire. Details: http://www.linkedin.com/in/stevesobol

Steve Sobol - 24 Dec 2007 20:42 GMT
>>decide whether I want to try implementing one. That's my main requirement.
>>
[quoted text clipped - 4 lines]
> *representing* them in the a+b+c form, since that is how
> they end up as a link (see above).

Ah, URL encoded. Yes. The + operator has special meaning to Google, though.
abc +keyword def means your search must include "keyword" and may include
"abc" or "def."

Signature

Steve Sobol, Victorville, CA     PGP:0xE3AE35ED  www.SteveSobol.com
Geek-for-hire. Details: http://www.linkedin.com/in/stevesobol



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.