myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iva Ivanova <I.Ivan...@cnsys.bg>
Subject [TRINIDAD] a dialog is not closed with returnFromDialog
Date Wed, 05 May 2010 10:46:05 GMT
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?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message