Anissa,
Can you point to any table example code with handler?
thanks
Karam
Anissa Lam wrote:
> Hi Karam,
>
> As Ken suggested, you cannot select multiple entries in a dropdown.
> You can do so with ListBox.
> In your previous email, you mentioned about multiple dropdown in a
> page, and the second dropdown depends on what is selected in the first
> dropdown.
> If thats what you want to see, we have a page like this in the Admin
> Console.
>
> When creating a connector connection pool, user needs to select a
> Resource Adapter, and then select the Connection Definition. The
> available selection in the Connection Definition depends on what is
> selected as the Resource Adapter. You can look at the jsf file under
> admin-gui/admin-jsf/src/docroot/resources/connectorConnectionPoolNew1.jsf.
> Related handler can be found under
> admin-gui/admin-jsf/src/java/com/sun/enterprise/tools/admingui/handler/ConnectorsHandlers.java
>
>
> I implemented the dropdown as as submit. This is not the best
> solution as the page is submitted and redisplayed. But this is the
> quickest way to implement this :-) When time permits, i will go back
> and use AJAX to populate the second dropdown instead.
> Hope this help.
> Anissa.
>
>
>
> Ken Paulsen wrote:
>>
>> 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