If I remove the autosubmit and add a submit button everything works fine. 
But according to the design I have to implement, it is required to make the 
selection when a radiobutton is selected and without a submit button.

-----Original Message-----
From: Vinod Krishnan [mailto:[email protected]] 
Sent: 05 Май 2010 г. 15:44
To: MyFaces Discussion
Subject: Re: [TRINIDAD] a dialog is not closed with returnFromDialog

Could you please remove the autoSubmit=true and try

On Wed, May 5, 2010 at 4:32 PM, Iva Ivanova <[email protected]> wrote:

> Hallo,
> I have a popup dialog which contains a single selection table and when a
> row is selected I want to return the value to the calling jsp and close the
> dialog.
>
>   <tr:table
>    ...
>    rowSelection="single"
>    selectionListener="#{medicine.selectCode}"
>    autoSubmit="true"
>    ...
>
> in the backing bean I have the
>
> public void selectCode(SelectionEvent ev) {
> ...
>  RequestContext.getCurrentInstance()
>                    .returnFromDialog(selectedCode, null);
> ...
> }
>
> returnFromDialog is supposed to close the dialog but what actually happens
> is that the dialog is reloaded and remains open. Is there another way to
> close the dialog?
>
>

Reply via email to