On 10/11/06, Martin Koci <[EMAIL PROTECTED]> wrote:
I fixed this issue with following:(1) CoreRenderKit.returnFromDialog will render only close(): out.write("<script>"); out.write("top.close()"); out.write("</script>"); (2) FredJSP.service will render call of callback in onunload: String callback = "'ADFDialogReturn[" + returnId + "]();'"; frameSet.setOnunload("_checkUnload(event); window.opener.setTimeout(" + callback + ",0)"); This works for me, but I'm not trinidad dialog expert. Can you review this solution?
Two concerns: First would be verifying that this works across a decent set of browsers - say, Firefox, IE 6, and Safari - because this makes me apprehensive that the window will close before a submission kicked off during onunload. Second would be making sure that you're not breakign any non-dialog cases; FredJSP.java is used by inputColor and inputDate for their popups, and neither of those involve a return method. -- Adam
Btw. what does "Fred" mean? (FredJSP.java)
Fred stands for Frame REDirect... a long story, but we used to have a JSP called frameRedirect.jsp; then a new version, which I wanted to have a short name, so fred.jsp; then we got the code out of the JSPs and into Java, so FredJSP.java; then we moved this to the InternalView API but didn't change the name. ;) -- Adam
