There is a problem with Sandbox modal dialog. Consider the following scenario:
The user clicks on a link on a page. The control needs to go to an action method. The action methods gets data from the database and then the fetched data needs to be displayed in the modal dialog. I am trying to use Sandbox modal dialog component to do the same. I have followed the example at: http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/dojoDialog.jsp Instead of calling onclick="dojoDialog.show();" to display the dialog I set the rendered property to true in action method. I have a link which when clicked calls an action method - <t:commandLink value="testing modal dialog" action="#{login.showModalDialog}"/> This action method sets the data for the modal dialog. Modal dialog: ----------------------------------------------------- <s:modalDialog dialogId="test" dialogVar="dojoDialog" hiderIds="close" styleClass="dojoDialog" dialogAttr="bgColor='white' bgOpacity='0.5' toggle='fade' toggleDuration='250'" rendered="#{login.displayModalDialog}"> ... ... </s:modalDialog> It does not work this way!! The dialog is never shown even if the rendered property is set to true. Is there any way I can call an action method before I show the modal dialog? Thanks ~madhav > -----Original Message----- > From: Michael Meierhoff [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 08, 2006 1:16 AM > To: MyFaces Discussion > Subject: Re: popup component > > Yout find a example for using here: > http://example.irian.at/example-sandbox-20061107/dojo/dojoDialog.jsf > > Michael > Am Dienstag, 7. November 2006 15:47 schrieb Madhav Bhargava: > > Googling a bit I found a DOJO component - modal dialog (s:modaldialog) > > which serves the purpose. > > > > Has anyone used this component as I am not able to find any help on > > usage of this component? > > > > > > > > ________________________________ > > > > From: Madhav Bhargava [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, November 07, 2006 6:53 PM > > To: MyFaces Discussion > > Subject: popup component > > > > > > > > Hi All, > > > > > > > > Is there a component for displaying a popup in Myfaces? > > > > I have tried using the popup component - http://www.jenia.org > > <http://www.jenia.org/> > > > > > > > > However I have encountered the following problems: > > > > 1. The popup closes when clicked anywhere else on the screen. This > > does not serve my purpose as the user should respond to the popup before > > he/she does anything else. > > 2. There are some problems when the popup needs to be populated > > with values fetched from a database. > > 3. Not able to get back values to the parent form which are entered > > on the pop-up. > > > > > > > > Is there any other popup component which is available? > > > > > > > > Thanks > > > > ~madhav > > > > **************** CAUTION - Disclaimer ***************** > > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended > > solely for the use of the addressee(s). If you are not the intended > > recipient, please notify the sender by e-mail and delete the original > > message. Further, you are not to copy, disclose, or distribute this > > e-mail or its contents to any other person and any such actions are > > unlawful. This e-mail may contain viruses. Infosys has taken every > > reasonable precaution to minimize this risk, but is not liable for any > > damage you may sustain as a result of any virus in this e-mail. You > > should carry out your own virus checks before opening the e-mail or > > attachment. Infosys reserves the right to monitor and review the content > > of all messages sent to or from this e-mail address. Messages sent to or > > from this e-mail address may be stored on the Infosys e-mail system. > > ***INFOSYS******** End of Disclaimer ********INFOSYS*** > > -- > Michael Meierhoff > -------------------------------------------------------------------------- > -- > Software Architect > > ElitePartner > Mittelweg 22 > 20148 Hamburg > > Tel: +49 (0)40 - 60 00 95 - 15 > Fax: +49 (0)40 - 60 00 95 - 99 > E-Mail: [EMAIL PROTECTED] > > ElitePartner.de - ElitePartner.at - ElitePartner.ch > Die Adresse für Singles mit Niveau > > ------------- Eine Beteiligung der Hubert Burda Media -------------

