John Slave schrieb:
> In bpcatalog tutorial there is a special requirement:
> putting some xml in faces-config.xml to tell jsf servlet to use a
> special phase listener to manage request.
> Why is not this requirement present in myfaces ajax component (for
> example input suggest). 
Something has to answer on the server if you do ajax, since there are as
for now no jsf mechanisms, you have to do it either via a jsp, a servlet
or a phase listener.
The phase listener approach is the one which is the least intrusive for
the end user, because it is sort of plug and play.

Sun chose this approach, others choose to use servlets for answering.

>How can i easily create an ajax custom component
> using myfaces?
>
Check out the sources,  I normally do not push people towards the
sources, but in this case you have to. There are various easy components
which utilize ajax one way or the other in the sandbox.
The newer ones use dojo to reduce the amount of code on the javascript side.

Reply via email to