Here is my modalwindow code: final ModalWindow mwCreateOrder = new ModalWindow("mwCreateOrder"); > add(mwCreateOrder); > > final CreateOrderPanel createOrderPanel = new > CreateOrderPanel(mwCreateOrder, mwCreateOrder.getContentId(), > shop.getShopNum()); > mwCreateOrder.setContent(createOrderPanel); > mwCreateOrder.setTitle("发起新的团购订单"); > mwCreateOrder.setCookieName("mwCreateOrder"); > mwCreateOrder.setWidthUnit("em"); > mwCreateOrder.setHeightUnit("em"); > mwCreateOrder.setInitialWidth(460); > mwCreateOrder.setInitialHeight(500); > > mwCreateOrder.setCloseButtonCallback(new > ModalWindow.CloseButtonCallback() { > > public boolean onCloseButtonClicked(AjaxRequestTarget target) { > return true; > } > }); > > mwCreateOrder.setWindowClosedCallback(new > ModalWindow.WindowClosedCallback() { > > public void onClose(AjaxRequestTarget target) { > if (createOrderPanel.isModalResult()) { > setResponsePage(page); > } > } > }); > > AjaxLink lnkCreateOrder = new AjaxLink("toCreateOrder") { > > @Override > public void onClick(AjaxRequestTarget target) { > mwCreateOrder.show(target); > } > }; > lnkCreateOrder.setVisible(currentGroup != null); > add(lnkCreateOrder); >
html code <a href="#" wicket:id="toCreateOrder">�_始�F��</a> > <div wicket:id="mwCreateOrder"></div> On Sat, Dec 27, 2008 at 21:16, 新希望软件 -- 俞宏伟 <nhsoft....@gmail.com> wrote: > I hava same problem. > > watch wicket ajax debug windows, response content is empty in IE 6 > > *INFO: *Received ajax response (69 characters) >> *INFO: * >> <?xml version="1.0" encoding="UTF-8"?><ajax-response></ajax-response> >> *INFO: *Response parsed. Now invoking steps... >> > > but response content is correct in FireFox 3.x. > > when debug server side code, i found that the ajax link action code > invoked without error message print both IE and FF. > > > > > > > On Tue, Dec 23, 2008 at 03:00, ecornett <e.corn...@alumni.utexas.net>wrote: > >> >> Here is my Ajax debug output: >> >> INFO: focus set on linkida >> INFO: >> INFO: Initiating Ajax POST request on >> >> ?wicket:interface=:3:reqTabs:panel:insurance-edit-form:primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup:lookup-form:menuBar:menubarlinks:0:menuitemul:menuitemlinks:1:linkid:1:IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true&random=0.8349472295319197 >> INFO: Invoking pre-call handler(s)... >> INFO: Received ajax response (11295 characters) >> INFO: >> <?xml version="1.0" encoding="UTF-8"?><ajax-response><header-contribution >> encoding="wicket1" ><![CDATA[<head >> xmlns:wicket="http://wicket.apache.org"><script type="text/javascript" >> >> src="resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js"></script> >> <script type="text/javascript" >> >> src="resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js"></script> >> <script type="text/javascript" >> >> src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js"></script> >> <script type="text/javascript" >> id="wicket-ajax-debug-enable"><!--/*--><![CDATA[/*><!--*/ >> wicketAjaxDebugEnable=true; >> /*-->]^]^>*/</script> >> >> <script type="text/javascript" >> >> src="resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js"></script> >> <link rel="stylesheet" type="text/css" >> >> href="resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.css" >> /> >> <link rel="stylesheet" type="text/css" >> href="resources/com.agillaire.web.lookup.PopupMenuPanel/lookup.css" /> >> >> <script id="com-agillaire-web-lookup-LookupPanel-LookupForm-1-0" >> language="JavaScript" type="text/javascript"> >> myHover = function() { >> var sfEls = >> document.getElementById("menu").getElementsByTagName("LI"); >> for (var i=0; i<sfEls.length; i++) { >> sfEls[i]^.onmouseover=function() { >> this.className+=" myhover"; >> } >> sfEls[i]^.onmouseout=function() { >> this.className=this.className.replace(new RegExp(" >> myhover\\b"), ""); >> } >> } >> } >> if (window.attachEvent) window.attachEvent("onload", myHover); >> </script> >> </head>]]></header-contribution><component id="insurance_lookup_modal10" >> ><![CDATA[<div id="insurance_lookup_modal10" style="display:none"> >> <div id="content1b"> >> <div class="modal-lookup" >> >> name="primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup-modal:content:insurance-lookup"> >> <div class="lookup-form" id="lookup_form40"> >> <label>Insurance Lookup</label><input >> >> name="primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup-modal:content:insurance-lookup:lookup-form:lookup" >> type="text" value=""/> >> >> <ul id="menu"> >> <li> >> >> >> ?wicket:interface=:3:reqTabs:panel:insurance-edit-form:primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup-modal:content:insurance-lookup:lookup-form:menuBar:menubarlinks:0:linkid:1:ILinkListener:: >> ... >> <ul> >> <li> >> # Practice List >> </li><li> >> # Name >> </li><li> >> # Address >> </li><li> >> # City >> </li><li> >> # State >> </li><li> >> # Zip >> </li><li> >> # P.O. Box >> </li> >> </ul> >> </li> >> </ul> >> >> </div> >> </div> >> <div id="insurance_list48"> >> >> Name >> <div class="page_nav" id="nav49"> >> <em><<</em> <em><</em> >> >> <em>1</em> >> >> <em>></em> <em>>></em> >> </div> >> <table class="list_table"> >> <tr class="list_header"> >> <th>Company Name</th> >> <th>Address 1</th> >> <th>Address 2 Date</th> >> <th>City</th> >> <th>State</th> >> <th>Zip</th> >> </tr> >> >> <tr class="even-row"> >> <td> # Aetna </td> >> <td>111 Main St.</td> >> <td>PO Box 1234</td> >> <td>Chicago</td> >> <td>Illinois</td> >> <td>61234</td> >> </tr><tr class="odd-row"> >> <td> # Aetna </td> >> <td>113 Main Ave.</td> >> <td></td> >> <td>Dallas</td> >> <td>Texas</td> >> <td>75071</td> >> </tr><tr class="even-row"> >> <td> # Blue Cross </td> >> <td>112 Houston Ave.</td> >> <td></td> >> <td>Dallas</td> >> <td>Texas</td> >> <td>75072</td> >> </tr> >> </table> >> </div> >> </div> >> </div>]]></component><evaluate><![CDATA[var element = >> document.getElementById("content1b"); >> var settings = new Object(); >> settings.minWidth=200; >> settings.minHeight=200; >> settings.className="w_blue"; >> settings.width="600"; >> settings.height="400"; >> settings.resizable=true; >> settings.element = element; >> settings.cookieId="insurance-lookup"; >> settings.title="Insurance Lookup Window"; >> settings.mask="semi-transparent"; >> settings.onCloseButton = function() { var >> >> wcall=wicketAjaxGet('?wicket:interface=:3:reqTabs:panel:insurance-edit-form:primaryBillingPanel:billingRecord-edit-form:insuranceLookupPanel:insurance-lookup-modal:1:IBehaviorListener:0:-1',null,null, >> function() {return Wicket.$('insurance_lookup_modal10') != >> null;}.bind(this));return !wcall;}; >> Wicket.Window.create(settings).show(); >> ]]></evaluate></ajax-response> >> ERROR: Error while parsing response: Object required >> INFO: Invoking post-call handler(s)... >> INFO: Invoking failure handler(s)... >> INFO: focus removed from linkida >> >> I found this link to be somewhat helpful, but it didn't solve my problem: >> >> https://issues.apache.org/jira/browse/WICKET-527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel >> >> >> >> Martijn Dashorst wrote: >> > >> > It would help if you post some output of for example the >> > wicket-ajax-debug window, or the firefox console. With the information >> > you have given thus far we can't help you. >> > >> > Martijn >> > >> > On Mon, Dec 15, 2008 at 10:51 PM, ecornett <e.corn...@alumni.utexas.net >> > >> > wrote: >> >> >> >> I have searched everywhere for an answer to this Wicket question with >> no >> >> luck. >> >> >> >> >> >> Martijn Dashorst wrote: >> >>> >> >>> As you come through nabble, I trust you have read and understood the >> >>> text that is shown prominently above the forum? >> >>> >> >>>> Before posting, please read "How to ask questions the smart >> >>>> way" [1] and answer these questions for yourself: >> >>>> >> >>>> * Did you check out our live examples >> >>>> * read our wiki >> >>>> * search using google >> >>>> If these fail to provide an answer, posting to the users list is >> >>>> appropriate. Be sure to include full stack traces and code. Did >> >>>> we mention that you read "How to ask questions the smart way" [1] >> >>>> before posting? >> >>> >> >>> Martijn >> >>> >> >>> [1] >> >>> http://www.catb.org/~esr/faqs/smart-questions.html<http://www.catb.org/%7Eesr/faqs/smart-questions.html> >> >>> >> >>> On Mon, Dec 15, 2008 at 7:18 PM, ecornett < >> e.corn...@alumni.utexas.net> >> >>> wrote: >> >>>> >> >>>> Has anyone else had trouble with modal windows appearing in Firefox >> but >> >>>> not >> >>>> IE and if so, what is a good solution? I can go into more details if >> >>>> necessary. >> >>>> -- >> >>>> View this message in context: >> >>>> >> http://www.nabble.com/Modal-window-not-appearing-in-IE-tp21018938p21018938.html >> >>>> Sent from the Wicket - User mailing list archive at Nabble.com. >> >>>> >> >>>> >> >>>> --------------------------------------------------------------------- >> >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >>>> For additional commands, e-mail: users-h...@wicket.apache.org >> >>>> >> >>>> >> >>> >> >>> >> >>> >> >>> -- >> >>> Become a Wicket expert, learn from the best: >> http://wicketinaction.com >> >>> Apache Wicket 1.3.4 is released >> >>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >> >>> >> >>> --------------------------------------------------------------------- >> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >>> For additional commands, e-mail: users-h...@wicket.apache.org >> >>> >> >>> >> >>> >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Modal-window-not-appearing-in-IE-tp21018938p21022867.html >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> > >> > >> > >> > -- >> > Become a Wicket expert, learn from the best: http://wicketinaction.com >> > Apache Wicket 1.3.4 is released >> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Modal-window-not-appearing-in-IE-tp21018938p21133122.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > 新希望软件---俞宏伟 > Addr:宁波市人民路645弄312号(日湖国贸)1304室 > Site:http://www.nhsoft.cn > gtalk:nhsoft....@gmail.com > Tel: 0574-87280538 > Fax: 0574-27825902 > Mobile:13780081921 > -- 新希望软件---俞宏伟 Addr:宁波市人民路645弄312号(日湖国贸)1304室 Site:http://www.nhsoft.cn gtalk:nhsoft....@gmail.com Tel: 0574-87280538 Fax: 0574-27825902 Mobile:13780081921