Hi Karam,
For examples, it would be best if you could get the GlassFish source
code, then you could search through it for examples. If you need me to
send you a jar'd version of this, let me know.
Multiple entries (values) from a single component have to be supported
by the component. I don't think DropDown supports this. However,
Listbox does (I believe) -- although I think this component is a little
buggy if I remember correctly. Ana has used it recently and may provide
tips for you. If you just want multiple component values sent back,
then this happens automatically with normal requests and can be
specified during Ajax requests (or you can send all values back w/ Ajax
requests too).
You can still use a handler to process Ajax requests. Since the
dropDown is an ActionSource, you should be able to use a <!command ...
/> event on it to process it. If you have more specific questions, I
can try to answer them. For DynamicFaces info (i.e. documentation on
fireAjaxTransaction), you should look at the DynamicFaces www site:
https://jsf-extensions.dev.java.net
Thanks!
Ken
Karam Singh Badesha wrote:
> Hi,
> I am still confused on handlers. Can someone please take dropdown or
> something of that sort as an example with some hardcoded data and
> explain how it works? What I am confused about is how does multiple
> entries get passed back? Is is different for different
> components(dropbox, textbox etc). And when we have to use dynafaces
> AJAX request, we can still go through handler call to get the required
> data?
>
> thanks,
> Karam