Wel i use wicket 1.2.6 Sadly it seems to be a browser compatibility issue. Default I use firefox but tried it now in IE 6 and IE7 and in firefox there is the problem and in IE it works as expected.
Hmm... Johan Compagner wrote: > > yeah there is already a call happening to the server. But maybe this is a > bug in the wicket javascript code, that it still thinks that the channel > is > busy > what version do you use of wicket? > > johan > > > > On Nov 8, 2007 9:24 AM, serban.balamaci <[EMAIL PROTECTED]> wrote: > >> >> I forgot to look in the ajax console. Here is what it says: >> INFO: Initiating Ajax GET request on >> >> /crm/app/?wicket:interface=:1:myForm:tabs:0:customTablePanel:rows:2:cells:3:cell:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true&random= >> 0.5604639175790322 >> INFO: Invoking pre-call handler(s)... >> INFO: Chanel busy - postponing... >> INFO: Chanel busy - postponing... >> >> I guess that Channel busy must be the culprit. >> >> >> Mr Mean wrote: >> > >> > Not entirely sure about this, but i think this is because wicket is >> > smart enough to figure out it has already sent the header, so it won't >> > send it again. If you want to invoke that script again you should >> > trigger it from your ajax call with target.appendJavaScript(). >> > >> > Maurice >> > >> > On Nov 7, 2007 6:11 PM, serban.balamaci <[EMAIL PROTECTED]> wrote: >> >> >> >> Yes, you must be right, another issue against the modal window is that >> >> the >> >> datepicker does not work inside it, and I pretty much decided to stick >> to >> >> normal popups. >> >> >> >> Well it seems that i may have something here: >> >> >> >> In the parent page: >> >> add(new AbstractDefaultAjaxBehavior() { >> >> protected void respond(AjaxRequestTarget >> ajaxRequestTarget) >> { >> >> System.out.println("Ajax Method invoked"); >> >> } >> >> >> >> protected void onRenderHeadContribution(final Response >> >> response) >> >> { >> >> super.onRenderHeadContribution(response); >> >> StringHeaderContributor header = >> >> new StringHeaderContributor("<script >> >> language=\"javascript\"> " + >> >> "function call() {" + >> >> getCallbackScript(false, true) + "};" + >> >> "</script>"); >> >> ((WebPage)getComponent().getPage()).add(header); >> >> } >> >> }); >> >> >> >> In the popup window we have the link: >> >> >> >> Link link = new Link("addLink") { >> >> public void onClick() { >> >> System.out.println("Ajax Method invoked"); >> >> } >> >> >> >> protected CharSequence getOnClickScript(CharSequence >> >> charSequence) { >> >> CharSequence click = >> >> super.getOnClickScript(charSequence); >> >> if(click == null) { >> >> return "self.opener.call();"; >> >> } >> >> return click + "self.opener.call();"; >> >> } >> >> >> >> }; >> >> >> >> >> >> Current problem is that the method sometimes gets invoked sometimes it >> >> does >> >> not(the text "Ajax Method invoked" apears on the screen). Actually >> only >> >> the >> >> first time in most cases. The problem must be with the ajax call cause >> i >> >> added in the call function a debug message in javascript that gets >> always >> >> called(the call function). >> >> >> >> Anybody has any ideas why this is? >> >> >> >> >> >> >> >> Mr Mean wrote: >> >> > >> >> > if your modal dialog contains ajax tabs it should work, but all your >> >> > user interaction from withing the dialog must be ajax. >> >> > >> >> > Maurice >> >> > >> >> > On Nov 7, 2007 1:50 PM, serban.balamaci <[EMAIL PROTECTED]> >> wrote: >> >> >> >> >> >> I cannot use the modal windows. >> >> >> They are plain popups. I do not know if there is a difference >> beetween >> >> >> modal >> >> >> windows that have a content a panel or a page, but i need to have >> >> tabbed >> >> >> pannels(which are links) inside the popup and by using a modal page >> >> with >> >> >> a >> >> >> panel content when i press on another tab(a link), i get the >> message >> >> that >> >> >> "This action requires to navigate away from this page and the modal >> >> >> window >> >> >> will close" and after pressing it does close the modal window. >> >> >> >> >> >> I am currently trying the 3rd option, i think i can write the >> >> javascript >> >> >> for >> >> >> the ajax request. >> >> >> I will post the solution if i get it working. >> >> >> >> >> >> >> >> >> >> >> >> Mr Mean wrote: >> >> >> > >> >> >> > Are you using the ModalWindow? in that case you need to set the >> >> >> > PageCreator to return your page, don't use panels. Second you >> need >> >> to >> >> >> > set a callbackhandler for the windowclose event. There you must >> >> update >> >> >> > your combo. >> >> >> > >> >> >> > Maurice >> >> >> > >> >> >> > On Nov 7, 2007 12:09 PM, serban.balamaci <[EMAIL PROTECTED]> >> >> wrote: >> >> >> >> >> >> >> >> Hello! >> >> >> >> I have the following problem. I have a parent page, that opens a >> >> popup >> >> >> >> through a PageLink. >> >> >> >> The popup window is a window in which new records can be added, >> but >> >> i >> >> >> >> need a >> >> >> >> combo in the parent page to reflect and contain also the new >> choice >> >> >> added >> >> >> >> in >> >> >> >> the popup. >> >> >> >> >> >> >> >> 1. Reloading the whole parent page at popup close link pressed i >> >> would >> >> >> >> take >> >> >> >> as the last resolve because the user may have introduced data in >> >> the >> >> >> >> controls that would get lost in the reloading process. I could >> get >> >> >> around >> >> >> >> this by adding a submit behaviour to the link and save in >> session >> >> the >> >> >> >> values >> >> >> >> inserted till that moment and rehidrate the model with values >> from >> >> the >> >> >> >> session instead of the database, and so obtain the state that >> the >> >> page >> >> >> >> was >> >> >> >> in before the popup was opened, but i'm wondering if there is >> not >> a >> >> >> >> cleaner >> >> >> >> solution for this. >> >> >> >> >> >> >> >> 2. I also tried(didn't think this would work:) but had to try) >> to >> >> pass >> >> >> >> the >> >> >> >> combo to the popup page and tried to update through the pressing >> of >> >> an >> >> >> >> ajaxlink the combo. It said it could not find the markup id for >> the >> >> >> >> combo(expected since it tried in the popup and not in the >> parent) >> >> so i >> >> >> >> guess >> >> >> >> that this approach could be made valid if the ajax callback >> would >> >> be >> >> >> >> directed at the parent page instead of the popup - i do not know >> >> how >> >> >> to >> >> >> >> do >> >> >> >> this. >> >> >> >> >> >> >> >> 3. Another option I am considering is calling a >> >> self.opener.function >> >> >> in >> >> >> >> which i would have javascript code for the ajax update of the >> combo >> >> in >> >> >> >> the >> >> >> >> parent. What code that is doing the ajax update i still do not >> know >> >> >> where >> >> >> >> to >> >> >> >> find-> maybe on the onselectionchange behaviour would be the way >> to >> >> >> find >> >> >> >> out, or if it breaks something in the way wicket is working. >> >> >> >> >> >> >> >> Anybody has any pointers of what would be the nice way to >> >> implement, >> >> >> >> comments, or other ways to tackle the problem? >> >> >> >> >> >> >> >> Thanks. >> >> >> >> -- >> >> >> >> View this message in context: >> >> >> >> >> >> >> >> >> >> http://www.nabble.com/Popup-parent-comunication-tf4763947.html#a13625027 >> >> >> >> Sent from the Wicket - User mailing list archive at >> Nabble.com<http://nabble.com/> >> . >> >> >> >> >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> >> >> >> >> >> > >> >> >> > >> >> --------------------------------------------------------------------- >> >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> >> > For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > >> >> >> > >> >> >> > >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/Popup-parent-comunication-tf4763947.html#a13626466 >> >> >> >> >> >> Sent from the Wicket - User mailing list archive at >> Nabble.com<http://nabble.com/> >> . >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> >> >> > >> >> > >> --------------------------------------------------------------------- >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> > For additional commands, e-mail: [EMAIL PROTECTED] >> >> > >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Popup-parent-comunication-tf4763947.html#a13631364 >> >> >> >> Sent from the Wicket - User mailing list archive at >> Nabble.com<http://nabble.com/> >> . >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Popup-parent-comunication-tf4763947.html#a13643074 >> Sent from the Wicket - User mailing list archive at >> Nabble.com<http://nabble.com/> >> . >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Popup-parent-comunication-tf4763947.html#a13644769 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]