Werner, One question on modal dialog -
Is there a way to show a modal dialog without javascript - "someDialog.show();" I want to call an action method and then display the modal dialog as a popup. The action method will prepare data for the popup. Thanks, madhav > -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Werner Punz > Sent: Thursday, November 09, 2006 3:12 PM > To: [email protected] > Subject: Re: modal dialog help > > Dave schrieb: > > Hello, > > > > Could anyone help me get started with sandbox modal dialog? > > > > How to open a ModalDialog when clicking a button? > > How to get the value(entered in modal dialog) back to the parent > > window? > > > I think the best way to get you kickstarted on that one is to check out > the latest trunk sandbox demo! > To open it you simply have to set a small javascript on an onclick (the > javascript var can be defined, otherwise it is automatically determined) > > > Then you have three ways to get the values back: > > a) either use a form submit (from a form within the dialog) > you can use partial page rendering to avoid page refreshes > > b) move the values from the dialog into the master view, the javascript > way > > c) go the full refresh cycle, by simple using jsfs submit mechanisms > > either way, you have to be aware, that the dialog has to be defined > outside of a form, this is a javascript limitation which is caused by a > severe ie positioning bug (the ie expects floating elements at the end > of the begin of a body otherwise the positioning fails under certain > conditions) > > so you have to embed the form element in the dialog if you want to use it. > > If you have multiple forms on the page, you might consider using the > saveState component or the scope component to preserve the values > outside of the forms affected by the refresh! > > Anyway, if you can wait for a few days I will do a crud example which > utilizes all this (not the dialog but the floating frames which are very > similar) to achieve a rich client behavior within a web ui. > I already have reserved my weekend to do the demo. **************** 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***

