There are other ways but the proper way would probably be to make the Dialog component a parameter to your login component so it can reference it as a contained child.
On 5/30/07, Heping Zhang <[EMAIL PROTECTED]> wrote:
hi, I have a login pane which embeded in a dojo dialog. And when login successful, I want the dialog close. In my Login.java I wrote public void doLogin() { //... Dialog dlg = (Dialog)getComponent("loginDialog"); dlg.hide(); } <div jwcid="[EMAIL PROTECTED]" hidden="ognl:loginHidden" opacity="0.7" backgroundColor="#cfe1ed"> <div jwcid="@Login" /> </div> Component [EMAIL PROTECTED]/$Border.$Header.$Login] does not contain a component loginDialog. What can I do then? Or can I do something to tell the outer I am success and you handle other thing? Thank you.
-- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com