>.. Google isn't very helpful tonight.

Signature
Andrew Thompson
http://www.physci.org/
>>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