Re: [Wicket-user] add order in AjaxRequestTarget
On 1/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Imo, it would be intuitive to keep the order in which they were added. Unless there is some urgent reason why the ajax engine should want to give components priority over others +1 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] mountBookmarkablePage causing Exception
thats a weird error because looking at the stacktrace you go through WicketServlet.doGet() and this is done there: // First, set the webapplication for this thread Application.set(webApplication); So i have no idea how that then can suddenly be null again. Please set a breakpoint on that line in the doGet method and see if the webApplication is set correctly johan On 1/12/07, Neil Grover [EMAIL PROTECTED] wrote: I would like to clean up my url's and came across a section in the Pro Wicket PDF that said I could accomplish just that by doing the following in my Application class: public void init() { super.init(); // url re-write to make things easier on the eyes mount(/pages, PackageName.forPackage(LandingPage.class.getPackage())); } The problem is, now that I've done that I get an Exception thrown when it forwards to the re-formatted url. The exception is shown below: wicket.WicketRuntimeException: There is no application attached to current thread resin-tcp-connection-*:8080-1 at wicket.Application.get(Application.java:163) at wicket.Session.getApplication(Session.java:289) at wicket.request.compound.DefaultExceptionResponseStrategy.respond( DefaultExceptionResponseStrategy.java:60) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond( AbstractCompoundRequestCycleProcessor.java:76) at wicket.RequestCycle.step(RequestCycle.java:1050) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java :219) at javax.servlet.http.HttpServlet.service(HttpServlet.java:115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at com.caucho.server.dispatch.ServletFilterChain.doFilter( ServletFilterChain.java:106) at com.bci.car.filters.gzip.GZIPFilter.doFilter(GZIPFilter.java :28) at com.caucho.server.dispatch.FilterFilterChain.doFilter( FilterFilterChain.java:70) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java :173) at com.caucho.server.dispatch.ServletInvocation.service( ServletInvocation.java:229) at com.caucho.server.http.HttpRequest.handleRequest( HttpRequest.java:274) at com.caucho.server.port.TcpConnection.run(TcpConnection.java :511) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520) at com.caucho.util.ThreadPool.run(ThreadPool.java:442) at java.lang.Thread.run(Thread.java:619) Is this a Resin problem? A wicket problem? Or am I an idiot problem? Thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket presentation
To my presentation im doing both a jsp version and a wicket version of a very small applikation (might just be a form or two separate pages with forms), btw would it be an idea to put the presentation with examples up somewhere perhaps the wiki (when im done with it?)? However upon doing this I've stumbled into something I find odd, in the below code the label called model are not updatet when it's model are changed, I got the same problem with the dropdown, I fixed that by calling the dropdown.modelchanged() method. But is it really necessary to call modelchanged? I saw the ajax example which is almost identical to this does not call modelchanged. public class IndexPage extends WebPage { public IndexPage() { FormModel formModel = new FormModel(); final PropertyModel carModel = new PropertyModel(formModel, carModel); final PropertyModel carBrand = new PropertyModel(formModel, carBrand); IModel carsFromBrand = new AbstractReadOnlyModel() { public Object getObject(Component arg0) { String selected = (String) carBrand.getObject(null); if (selected != null) { return Offline.getCarsFromBrand(selected); } return Collections.EMPTY_LIST; } }; add(new Label(brand, carBrand)); add(new Label(model, carModel)); Form form = new Form(theform); add(form); final DropDownChoice ddcCarModel = new DropDownChoice(carmodel, carModel, carsFromBrand) { protected boolean wantOnSelectionChangedNotifications() { return true; } }; DropDownChoice ddcCarbrand = new DropDownChoice(carbrand, carBrand, Offline.getCarBrands()) { protected boolean wantOnSelectionChangedNotifications() { return true; } protected void onSelectionChanged(Object arg0) { // TODO Auto-generated method stub super.onSelectionChanged(arg0); ddcCarModel.modelChanged(); } }; form.add(ddcCarbrand); form.add(ddcCarModel); } } From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 4. januar 2007 14:16 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] wicket presentation Hi im doing a wicket presentation for our consultants team, on this first teaser I have about ten minutes. I plan to talk something about markup inheritance(the stuff with panels and borders, which are very nice), and the POJO concept. Also wickets model concept and that you don't have to think about the tedious tasks like printing html and setting the correct radio to be selected. I guess that part will be a big eye opener for some of them:-) Which features should I show? The crowd will maximum have knowledge of struts or simple jsp pages.
Re: [Wicket-user] wicket presentation
Oeh btw this is wicket 1.2.3 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 12. januar 2007 13:27 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] wicket presentation To my presentation im doing both a jsp version and a wicket version of a very small applikation (might just be a form or two separate pages with forms), btw would it be an idea to put the presentation with examples up somewhere perhaps the wiki (when im done with it?)? However upon doing this I've stumbled into something I find odd, in the below code the label called model are not updatet when it's model are changed, I got the same problem with the dropdown, I fixed that by calling the dropdown.modelchanged() method. But is it really necessary to call modelchanged? I saw the ajax example which is almost identical to this does not call modelchanged. public class IndexPage extends WebPage { public IndexPage() { FormModel formModel = new FormModel(); final PropertyModel carModel = new PropertyModel(formModel, carModel); final PropertyModel carBrand = new PropertyModel(formModel, carBrand); IModel carsFromBrand = new AbstractReadOnlyModel() { public Object getObject(Component arg0) { String selected = (String) carBrand.getObject(null); if (selected != null) { return Offline.getCarsFromBrand(selected); } return Collections.EMPTY_LIST; } }; add(new Label(brand, carBrand)); add(new Label(model, carModel)); Form form = new Form(theform); add(form); final DropDownChoice ddcCarModel = new DropDownChoice(carmodel, carModel, carsFromBrand) { protected boolean wantOnSelectionChangedNotifications() { return true; } }; DropDownChoice ddcCarbrand = new DropDownChoice(carbrand, carBrand, Offline.getCarBrands()) { protected boolean wantOnSelectionChangedNotifications() { return true; } protected void onSelectionChanged(Object arg0) { // TODO Auto-generated method stub super.onSelectionChanged(arg0); ddcCarModel.modelChanged(); } }; form.add(ddcCarbrand); form.add(ddcCarModel); } } From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 4. januar 2007 14:16 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] wicket presentation Hi im doing a wicket presentation for our consultants team, on this first teaser I have about ten minutes. I plan to talk something about markup inheritance(the stuff with panels and borders, which are very nice), and the POJO concept. Also wickets model concept and that you don't have to think about
[Wicket-user] error deleting cookie when calling deletWicketCookie
Hi I Get an error when the page are calling this line, on my html : body onunload=deleteWicketCookie('pm-null/jobindsatsViewerComponentServlet'); I think I know why it's failing, it's because the browser does not allow cookie and therefore the cookie cant be deleted.. What can I do about it? Except getting the user to accept cookies? Regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax Behaviour on RadioChoice
Hi Igor, thanks for the hint. This works perfect! I still don't no why it works with the SubmitBehavior, because in my eyes it actually is a change and therefore an update and not a submit, but thanks again. Can I use the same thing for Input validation on an inputfield or something similar? Cliff 2007/1/12, Igor Vaynberg [EMAIL PROTECTED]: im surprised your protected void onUpdate(AjaxRequestTarget target) is even called! try using AjaxFormSubmitBehavior instead of the formcomponentupdating one. -igor On 1/11/07, Cliff Pereira [EMAIL PROTECTED] wrote: ok, so far I managed to change the label without page reload. And without wantonselectionchangednotification! My only problem now is how do I know which of the three radio options is selected? Is there any way to determine that? Thanks in advance once again! Cliff 2007/1/11, Igor Vaynberg [EMAIL PROTECTED]: if he is using wantonselectionchangednotification he is not using ajax :) -igor On 1/11/07, Matej Knopp [EMAIL PROTECTED] wrote: I'm not wrong we don't support (yet) the ajax update on radio selection. -Matej Cliff Pereira wrote: Hello Mailinglist, We just started a project using the wicket framework. It's working so far and we want to add some AJAX behaviour to our project. But nothing really works. I've made an example with a radio choice and a label that should actually change it's content on selectionChange of the radiochoice. So far I tried to solve it using different models or trying to use DOM. I want to achieve that if morning is chosen the label shows Good Morning, if then noon is chosen the label should switch to Good Noon (or something similar) and same with evening. I'm really going mad by the time now. Searched the web but did not find andy examples. Hopefully one of you has done this before or may help me implementing it. Thanks alot in advance! Cliff - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the
Re: [Wicket-user] error deleting cookie when calling deletWicketCookie
This is running wicket 1.2 btw, I'll try to remember version numbers in the original mails from now on. Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 12. januar 2007 13:50 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] error deleting cookie when calling deletWicketCookie Hi I Get an error when the page are calling this line, on my html : body onunload=deleteWicketCookie('pm-null/jobindsatsViewerComponentServlet'); I think I know why it's failing, it's because the browser does not allow cookie and therefore the cookie cant be deleted.. What can I do about it? Except getting the user to accept cookies? Regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] error deleting cookie when calling deletWicketCookie
thats really old... those cookies are not used anymore thats now done based on the window name. johan On 1/12/07, Nino Wael [EMAIL PROTECTED] wrote: This is running wicket 1.2 btw, I'll try to remember version numbers in the original mails from now on. Regards Nino -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Nino Wael *Sent:* 12. januar 2007 13:50 *To:* wicket-user@lists.sourceforge.net *Subject:* [Wicket-user] error deleting cookie when calling deletWicketCookie Hi I Get an error when the page are calling this line, on my html : body onunload=deleteWicketCookie('pm-null/jobindsatsViewerComponentServlet'); I think I know why it's failing, it's because the browser does not allow cookie and therefore the cookie cant be deleted.. What can I do about it? Except getting the user to accept cookies? Regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-user Digest, Vol 8, Issue 98
Frank Bille wrote: On 1/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Imo, it would be intuitive to keep the order in which they were added. Unless there is some urgent reason why the ajax engine should want to give components priority over others +1 Igor's suggestion worked (that is, wrapping all the components inside a container, then adding it to the AjaxRequestTarget), but I think keeping the add order would be a good idea anyway. --Andrés - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] From pop-up, page link to change the parent wihtout changing the popup
It is difficult to explain but the functionality is simple. You got a field to search. and a link to make advanced search. When making an advance search, we want to open a pop-up window to get more searching functionality. When the search is done, we display a list of item corresponding to this search. When clicking the object, we want to change the page that is behind without closing the pop up to be able to modify the search and continue seeing the list of node. Is there something available in the wicket framework to do something like that? I mean, from the pop-p, modifying the page in the background? Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] From pop-up, page link to change the parent wihtout changing the popup
Oh, and thanks in advance if there is an answer to that! Marc On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: It is difficult to explain but the functionality is simple. You got a field to search. and a link to make advanced search. When making an advance search, we want to open a pop-up window to get more searching functionality. When the search is done, we display a list of item corresponding to this search. When clicking the object, we want to change the page that is behind without closing the pop up to be able to modify the search and continue seeing the list of node. Is there something available in the wicket framework to do something like that? I mean, from the pop-p, modifying the page in the background? Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax Behaviour on RadioChoice
there is an example in wicket-examples/ajax that shows ajaxified form validation -igor On 1/12/07, Cliff Pereira [EMAIL PROTECTED] wrote: Hi Igor, thanks for the hint. This works perfect! I still don't no why it works with the SubmitBehavior, because in my eyes it actually is a change and therefore an update and not a submit, but thanks again. Can I use the same thing for Input validation on an inputfield or something similar? Cliff 2007/1/12, Igor Vaynberg [EMAIL PROTECTED]: im surprised your protected void onUpdate(AjaxRequestTarget target) is even called! try using AjaxFormSubmitBehavior instead of the formcomponentupdating one. -igor On 1/11/07, Cliff Pereira [EMAIL PROTECTED] wrote: ok, so far I managed to change the label without page reload. And without wantonselectionchangednotification! My only problem now is how do I know which of the three radio options is selected? Is there any way to determine that? Thanks in advance once again! Cliff 2007/1/11, Igor Vaynberg [EMAIL PROTECTED]: if he is using wantonselectionchangednotification he is not using ajax :) -igor On 1/11/07, Matej Knopp [EMAIL PROTECTED] wrote: I'm not wrong we don't support (yet) the ajax update on radio selection. -Matej Cliff Pereira wrote: Hello Mailinglist, We just started a project using the wicket framework. It's working so far and we want to add some AJAX behaviour to our project. But nothing really works. I've made an example with a radio choice and a label that should actually change it's content on selectionChange of the radiochoice. So far I tried to solve it using different models or trying to use DOM. I want to achieve that if morning is chosen the label shows Good Morning, if then noon is chosen the label should switch to Good Noon (or something similar) and same with evening. I'm really going mad by the time now. Searched the web but did not find andy examples. Hopefully one of you has done this before or may help me implementing it. Thanks alot in advance! Cliff - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash
Re: [Wicket-user] error deleting cookie when calling deletWicketCookie
in 1.2 it was used through, just upgrade to 1.2.4 -igor On 1/12/07, Johan Compagner [EMAIL PROTECTED] wrote: thats really old... those cookies are not used anymore thats now done based on the window name. johan On 1/12/07, Nino Wael [EMAIL PROTECTED] wrote: This is running wicket 1.2 btw, I'll try to remember version numbers in the original mails from now on. Regards Nino -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] * On Behalf Of *Nino Wael *Sent:* 12. januar 2007 13:50 *To:* wicket-user@lists.sourceforge.net *Subject:* [Wicket-user] error deleting cookie when calling deletWicketCookie Hi I Get an error when the page are calling this line, on my html : body onunload=deleteWicketCookie('pm-null/jobindsatsViewerComponentServlet'); I think I know why it's failing, it's because the browser does not allow cookie and therefore the cookie cant be deleted.. What can I do about it? Except getting the user to accept cookies? Regards Nino - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] From pop-up, page link to change the parent wihtout changing the popup
there is no way to communicate between windows in the http spec, so what you have to do is this: when you create the popup, you have to add a parameter to the generated url - and that should be the pagename of the page that is opening the popup. wicket sets window.name=pagemapname, and if you know this you can reference this window through the links target attr afaik. the popup's links should have target set to the passed in pagemap name and should be bookmarkable page links - passing in the criteria on the url through PageParameters. so what happens is that when you click on a link in the popup the page behind reloads from a bookmarkable url and shows the results -igor On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Oh, and thanks in advance if there is an answer to that! Marc On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: It is difficult to explain but the functionality is simple. You got a field to search. and a link to make advanced search. When making an advance search, we want to open a pop-up window to get more searching functionality. When the search is done, we display a list of item corresponding to this search. When clicking the object, we want to change the page that is behind without closing the pop up to be able to modify the search and continue seeing the list of node. Is there something available in the wicket framework to do something like that? I mean, from the pop-p, modifying the page in the background? Marc - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Could not find root ajax-response element with AjaxFormSubmitBehavior+ browser back botton
Hi all, I just found a bug (?) about AjaxFormSubmitBehavior when doing some browser back botton, like: (1) X page has a Form and use AjaxFormSubmitBehavior (2) navigate X to Y by a link (3) browser back to X (4) submit form of X by AjaxFormSubmitBehavior (5) then: *INFO: * *INFO: * Initiating Ajax POST request on /quickstart/app?wicket:interface=:2:form:go:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom= 0.9194877543437688 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (0 characters) *INFO: * *ERROR: * Error while parsing response: Could not find root ajax-response element *INFO: *Invoking post-call handler(s)... *INFO: *Invoking failure handler(s)... I just got Received ajax response (0 characters) and no idea how to investigate futher more. tested with 1.2.3 and 1.2.4 (both in IE and Firefox) attachment is quickstart for 1.2.4 Any help ? -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen quickstart.IamZip Description: Binary data - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] From pop-up, page link to change the parent wihtout changing the popup
Now, my popup code look like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map); } Class pageClass = PagingFactory.getInstance ().getPageClass ( NodeTypeConstants.RULE); add(new BookmarkablePageLink(nodeLink, pageClass).setPageMap ( PageMap.forName (parentPageMap)).setParameter (WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); But it still update only the popup I don't know if it is me that is dumb and don't understand what you are saying, but I though that it should have done the trick. Is it possible to set the pageMap name for the currentSession? Maybe I should do that? I'm downloading wicket code right now to try to understand what window.name was suppose to be! :) On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: gah looks like we have some not-so-good code working here basically the thing that generates the window.name attr does this: String name = getPageMap().getName(); if (name == null) { name = wicket:default; } but wicket:default is not externalized anywhere. so for now you can just use that same trick yourself, wicket:default string should remain pretty stable. and also add an rfe to expose that somehow, perhaps through WebPage.getWindowName() -igor On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: and that should be the pagename of the page that is opening the popup. wicket sets window.name=pagemapname How can I know the pagename of the page opening the popup? getPageMap().getName() return null. On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: To take the PageMap, I'm doing a Page.getPageMap(). Why is this pagemap have a null name? how can I set that name? Thanks in advance. Marc On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I've try what you talk about. I have the impresion that there is only the String representation of the page map that is pass. Should I pass the pageMap Name? and then, how to pass it since it is null? Here is the code and the error generated. yeah just pass the pagemap name. P.S. : Igor, you rock! With you, there is always a way to pass around problems! :) thanks :) -igor Caller PopupSettings popupSettings = new PopupSettings( PageMap.forName (popuppagemap)).setHeight(500).setWidth(500); PageParameters popupparameters = new PageParameters(); popupparameters.put(parent_page_map, getPage().getPageMap ()); System.out.println(popupparameters.get (parent_page_map)); add(new BookmarkablePageLink (basicSearchLink, SearchPopUp.class, popupparameters).setPopupSettings(popupSettings)); PopUp public SearchPopUp (PageParameters pp) { PageMap parentPageMap = (PageMap)pp.get (parent_page_map); Class pageClass = PagingFactory.getInstance().getPageClass ( NodeTypeConstants.RULE); add(new BookmarkablePageLink(nodeLink, pageClass).setPageMap (parentPageMap).setParameter ( WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); } -- The system.out of the pagemap give me this : [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] And when creating the searchPopUp, it generate this error : Can't instantiate page using constructor public com.interfacing.epc.portal.view.search.SearchPopUp( wicket.PageParameters) and argument parent_page_map = [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] wicket.WicketRuntimeException: Can't instantiate page using constructor public com.interfacing.epc.portal.view.search.SearchPopUp( wicket.PageParameters) and argument parent_page_map = [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] at wicket.session.DefaultPageFactory.newPage( DefaultPageFactory.java:175) at wicket.session.DefaultPageFactory.newPage( DefaultPageFactory.java:96) at wicket.request.target.component.BookmarkablePageRequestTarget.newPage( BookmarkablePageRequestTarget.java:271) at wicket.request.target.component.BookmarkablePageRequestTarget.getPage (BookmarkablePageRequestTarget.java:286) at wicket.request.target.component.BookmarkablePageRequestTarget.processEvents( BookmarkablePageRequestTarget.java:205) at wicket.request.compound.DefaultEventProcessorStrategy.processEvents
Re: [Wicket-user] From pop-up, page link to change the parent wihtout changing the popup
you are not adding the target attribute to the link which is what is supposed to redirect the link to the other window String pagemapnameparam=.; String pagemapname=(wicket:default.equals(pagemapnameparam))?null:pagemapnameparam; PageMap pagemap=PageMap.forName(pagemapname); BPL link=new BPL(nodeLink, pageClass); link.setPageMap(pagemap); link.add(new SimpleAttributeModifier(target, pagemapnameparam)); -igor link=new BookmarkablePageLink(nodeLink, pageClass).setPageMap ( PageMap.forName (parentPageMap)).setParameter ( WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); link.add(new SimpleAttributeModifier On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Now, my popup code look like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map); } Class pageClass = PagingFactory.getInstance ().getPageClass ( NodeTypeConstants.RULE); add(new BookmarkablePageLink(nodeLink, pageClass).setPageMap ( PageMap.forName (parentPageMap)).setParameter ( WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); But it still update only the popup I don't know if it is me that is dumb and don't understand what you are saying, but I though that it should have done the trick. Is it possible to set the pageMap name for the currentSession? Maybe I should do that? I'm downloading wicket code right now to try to understand what window.name was suppose to be! :) On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: gah looks like we have some not-so-good code working here basically the thing that generates the window.name attr does this: String name = getPageMap().getName(); if (name == null) { name = wicket:default; } but wicket:default is not externalized anywhere. so for now you can just use that same trick yourself, wicket:default string should remain pretty stable. and also add an rfe to expose that somehow, perhaps through WebPage.getWindowName() -igor On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: and that should be the pagename of the page that is opening the popup. wicket sets window.name=pagemapname How can I know the pagename of the page opening the popup? getPageMap().getName() return null. On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: To take the PageMap, I'm doing a Page.getPageMap(). Why is this pagemap have a null name? how can I set that name? Thanks in advance. Marc On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I've try what you talk about. I have the impresion that there is only the String representation of the page map that is pass. Should I pass the pageMap Name? and then, how to pass it since it is null? Here is the code and the error generated. yeah just pass the pagemap name. P.S. : Igor, you rock! With you, there is always a way to pass around problems! :) thanks :) -igor Caller PopupSettings popupSettings = new PopupSettings( PageMap.forName (popuppagemap)).setHeight(500).setWidth(500); PageParameters popupparameters = new PageParameters(); popupparameters.put(parent_page_map, getPage().getPageMap ()); System.out.println(popupparameters.get (parent_page_map)); add(new BookmarkablePageLink (basicSearchLink, SearchPopUp.class, popupparameters).setPopupSettings(popupSettings)); PopUp public SearchPopUp (PageParameters pp) { PageMap parentPageMap = (PageMap)pp.get (parent_page_map); Class pageClass = PagingFactory.getInstance().getPageClass ( NodeTypeConstants.RULE); add(new BookmarkablePageLink(nodeLink, pageClass).setPageMap (parentPageMap).setParameter ( WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); } -- The system.out of the pagemap give me this : [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] And when creating the searchPopUp, it generate this error : Can't instantiate page using constructor public com.interfacing.epc.portal.view.search.SearchPopUp( wicket.PageParameters) and argument parent_page_map = [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] wicket.WicketRuntimeException: Can't instantiate page using constructor public com.interfacing.epc.portal.view.search.SearchPopUp( wicket.PageParameters) and argument
Re: [Wicket-user] From pop-up, page link to change the parent wihtout changing the popup
In fact, since r462394, bookmarkablepagelinks automatically add an attribute modifier to set the target when you set the page map (if it is not null) on that link. Eelco On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you are not adding the target attribute to the link which is what is supposed to redirect the link to the other window String pagemapnameparam=.; String pagemapname=(wicket:default.equals(pagemapnameparam))?null:pagemapnameparam; PageMap pagemap=PageMap.forName(pagemapname); BPL link=new BPL(nodeLink, pageClass); link.setPageMap(pagemap); link.add(new SimpleAttributeModifier(target, pagemapnameparam)); -igor link=new BookmarkablePageLink(nodeLink , pageClass).setPageMap (PageMap.forName (parentPageMap)).setParameter ( WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); link.add(new SimpleAttributeModifier On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Now, my popup code look like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map); } Class pageClass = PagingFactory.getInstance ().getPageClass (NodeTypeConstants.RULE); add(new BookmarkablePageLink(nodeLink, pageClass).setPageMap (PageMap.forName (parentPageMap)).setParameter ( WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); But it still update only the popup I don't know if it is me that is dumb and don't understand what you are saying, but I though that it should have done the trick. Is it possible to set the pageMap name for the currentSession? Maybe I should do that? I'm downloading wicket code right now to try to understand what window.name was suppose to be! :) On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: gah looks like we have some not-so-good code working here basically the thing that generates the window.name attr does this: String name = getPageMap().getName(); if (name == null) { name = wicket:default; } but wicket:default is not externalized anywhere. so for now you can just use that same trick yourself, wicket:default string should remain pretty stable. and also add an rfe to expose that somehow, perhaps through WebPage.getWindowName() -igor On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: and that should be the pagename of the page that is opening the popup. wicket sets window.name=pagemapname How can I know the pagename of the page opening the popup? getPageMap().getName() return null. On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: To take the PageMap, I'm doing a Page.getPageMap(). Why is this pagemap have a null name? how can I set that name? Thanks in advance. Marc On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I've try what you talk about. I have the impresion that there is only the String representation of the page map that is pass. Should I pass the pageMap Name? and then, how to pass it since it is null? Here is the code and the error generated. yeah just pass the pagemap name. P.S. : Igor, you rock! With you, there is always a way to pass around problems! :) thanks :) -igor Caller PopupSettings popupSettings = new PopupSettings(PageMap.forName (popuppagemap)).setHeight(500).setWidth(500); PageParameters popupparameters = new PageParameters(); popupparameters.put(parent_page_map, getPage().getPageMap ()); System.out.println(popupparameters.get (parent_page_map)); add(new BookmarkablePageLink (basicSearchLink, SearchPopUp.class, popupparameters).setPopupSettings(popupSettings)); PopUp public SearchPopUp (PageParameters pp) { PageMap parentPageMap = (PageMap)pp.get (parent_page_map); Class pageClass = PagingFactory.getInstance ().getPageClass (NodeTypeConstants.RULE); add(new BookmarkablePageLink(nodeLink, pageClass).setPageMap (parentPageMap).setParameter (WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); } -- The system.out of the pagemap give me this : [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] And when creating the searchPopUp, it generate this error : Can't instantiate page using constructor public
Re: [Wicket-user] From pop-up, page link to change the parent wihtout changing the popup
neat! is that in 2.0 or 1.x also? -igor On 1/12/07, Eelco Hillenius [EMAIL PROTECTED] wrote: In fact, since r462394, bookmarkablepagelinks automatically add an attribute modifier to set the target when you set the page map (if it is not null) on that link. Eelco On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you are not adding the target attribute to the link which is what is supposed to redirect the link to the other window String pagemapnameparam=.; String pagemapname=(wicket:default.equals(pagemapnameparam))?null:pagemapnameparam; PageMap pagemap=PageMap.forName(pagemapname); BPL link=new BPL(nodeLink, pageClass); link.setPageMap(pagemap); link.add(new SimpleAttributeModifier(target, pagemapnameparam)); -igor link=new BookmarkablePageLink(nodeLink , pageClass).setPageMap (PageMap.forName (parentPageMap)).setParameter ( WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); link.add(new SimpleAttributeModifier On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Now, my popup code look like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map); } Class pageClass = PagingFactory.getInstance ().getPageClass (NodeTypeConstants.RULE); add(new BookmarkablePageLink(nodeLink, pageClass).setPageMap (PageMap.forName (parentPageMap)).setParameter ( WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); But it still update only the popup I don't know if it is me that is dumb and don't understand what you are saying, but I though that it should have done the trick. Is it possible to set the pageMap name for the currentSession? Maybe I should do that? I'm downloading wicket code right now to try to understand what window.name was suppose to be! :) On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: gah looks like we have some not-so-good code working here basically the thing that generates the window.name attr does this: String name = getPageMap().getName(); if (name == null) { name = wicket:default; } but wicket:default is not externalized anywhere. so for now you can just use that same trick yourself, wicket:default string should remain pretty stable. and also add an rfe to expose that somehow, perhaps through WebPage.getWindowName() -igor On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: and that should be the pagename of the page that is opening the popup. wicket sets window.name=pagemapname How can I know the pagename of the page opening the popup? getPageMap().getName() return null. On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: To take the PageMap, I'm doing a Page.getPageMap(). Why is this pagemap have a null name? how can I set that name? Thanks in advance. Marc On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I've try what you talk about. I have the impresion that there is only the String representation of the page map that is pass. Should I pass the pageMap Name? and then, how to pass it since it is null? Here is the code and the error generated. yeah just pass the pagemap name. P.S. : Igor, you rock! With you, there is always a way to pass around problems! :) thanks :) -igor Caller PopupSettings popupSettings = new PopupSettings(PageMap.forName (popuppagemap)).setHeight(500).setWidth(500); PageParameters popupparameters = new PageParameters(); popupparameters.put(parent_page_map, getPage().getPageMap ()); System.out.println(popupparameters.get (parent_page_map)); add(new BookmarkablePageLink (basicSearchLink, SearchPopUp.class, popupparameters).setPopupSettings(popupSettings)); PopUp public SearchPopUp (PageParameters pp) { PageMap parentPageMap = (PageMap)pp.get (parent_page_map); Class pageClass = PagingFactory.getInstance ().getPageClass (NodeTypeConstants.RULE); add(new BookmarkablePageLink(nodeLink, pageClass).setPageMap (parentPageMap).setParameter (WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); } -- The system.out of the pagemap give me this : [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0]]] And when creating
Re: [Wicket-user] From pop-up, page link to change the parent wihtout changing the popup
both. Eelco On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: neat! is that in 2.0 or 1.x also? -igor On 1/12/07, Eelco Hillenius [EMAIL PROTECTED] wrote: In fact, since r462394, bookmarkablepagelinks automatically add an attribute modifier to set the target when you set the page map (if it is not null) on that link. Eelco On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you are not adding the target attribute to the link which is what is supposed to redirect the link to the other window String pagemapnameparam=.; String pagemapname=(wicket:default.equals(pagemapnameparam))?null:pagemapnameparam; PageMap pagemap=PageMap.forName(pagemapname); BPL link=new BPL(nodeLink, pageClass); link.setPageMap(pagemap); link.add(new SimpleAttributeModifier(target, pagemapnameparam)); -igor link=new BookmarkablePageLink(nodeLink , pageClass).setPageMap (PageMap.forName (parentPageMap)).setParameter ( WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); link.add(new SimpleAttributeModifier On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Now, my popup code look like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map); } Class pageClass = PagingFactory.getInstance ().getPageClass (NodeTypeConstants.RULE); add(new BookmarkablePageLink(nodeLink, pageClass).setPageMap ( PageMap.forName (parentPageMap)).setParameter ( WebPageConstants.PARAM_ID, 4EEFDEDD-D4CB-5CBC-5E95-46DD6FE10B29)); But it still update only the popup I don't know if it is me that is dumb and don't understand what you are saying, but I though that it should have done the trick. Is it possible to set the pageMap name for the currentSession? Maybe I should do that? I'm downloading wicket code right now to try to understand what window.name was suppose to be! :) On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: gah looks like we have some not-so-good code working here basically the thing that generates the window.name attr does this: String name = getPageMap().getName(); if (name == null) { name = wicket:default; } but wicket:default is not externalized anywhere. so for now you can just use that same trick yourself, wicket:default string should remain pretty stable. and also add an rfe to expose that somehow, perhaps through WebPage.getWindowName() -igor On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: and that should be the pagename of the page that is opening the popup. wicket sets window.name=pagemapname How can I know the pagename of the page opening the popup? getPageMap().getName() return null. On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: To take the PageMap, I'm doing a Page.getPageMap(). Why is this pagemap have a null name? how can I set that name? Thanks in advance. Marc On 1/12/07, Igor Vaynberg [EMAIL PROTECTED] wrote: On 1/12/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I've try what you talk about. I have the impresion that there is only the String representation of the page map that is pass. Should I pass the pageMap Name? and then, how to pass it since it is null? Here is the code and the error generated. yeah just pass the pagemap name. P.S. : Igor, you rock! With you, there is always a way to pass around problems! :) thanks :) -igor Caller PopupSettings popupSettings = new PopupSettings(PageMap.forName (popuppagemap)).setHeight(500).setWidth(500); PageParameters popupparameters = new PageParameters(); popupparameters.put(parent_page_map, getPage().getPageMap ()); System.out.println(popupparameters.get (parent_page_map)); add(new BookmarkablePageLink (basicSearchLink, SearchPopUp.class, popupparameters).setPopupSettings(popupSettings)); PopUp public SearchPopUp (PageParameters pp) { PageMap parentPageMap = (PageMap)pp.get (parent_page_map); Class pageClass = PagingFactory.getInstance ().getPageClass (NodeTypeConstants.RULE); add(new
[Wicket-user] AjaxFallbackDefaultDataTable ajax event onclick on a row
Hi, I using an AjaxFallbackDefaultDataTable to show some data. I also need to captura the event onclick on a row and lunch an ajax code. The html code is the following: div span wicket:id=tableTitle[title]/span table class=dataview cellspacing=0 wicket:id=table[table]/table /div So i don't know how to add a wicket.id to the row. The ajax code has to make the same thing as in the wicket examples where there is a column with a select link. Gustavo - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxFallbackDefaultDataTable ajax event onclick on a row
try overriding newrowitem() on the datatable and adding an ajax onclick behavior to the item returned by calling super -igor On 1/12/07, Gustavo Yoshizaki [EMAIL PROTECTED] wrote: Hi, I using an AjaxFallbackDefaultDataTable to show some data. I also need to captura the event onclick on a row and lunch an ajax code. The html code is the following: div span wicket:id=tableTitle[title]/span table class=dataview cellspacing=0 wicket:id=table[table]/table /div So i don't know how to add a wicket.id to the row. The ajax code has to make the same thing as in the wicket examples where there is a column with a select link. Gustavo - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Could not find root ajax-response element with AjaxFormSubmitBehavior+ browser back botton
This is weird. Can you please check if there is no exception in the log? -Matej Ingram Chen wrote: Hi all, I just found a bug (?) about AjaxFormSubmitBehavior when doing some browser back botton, like: (1) X page has a Form and use AjaxFormSubmitBehavior (2) navigate X to Y by a link (3) browser back to X (4) submit form of X by AjaxFormSubmitBehavior (5) then: *INFO: * *INFO: *Initiating Ajax POST request on /quickstart/app?wicket:interface=:2:form:go:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=0.9194877543437688 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (0 characters) *INFO: * *ERROR: *Error while parsing response: Could not find root ajax-response element *INFO: *Invoking post-call handler(s)... *INFO: *Invoking failure handler(s)... I just got Received ajax response (0 characters) and no idea how to investigate futher more. tested with 1.2.3 and 1.2.4 (both in IE and Firefox) attachment is quickstart for 1.2.4 Any help ? -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Help. Have been encountering this error in Wicket 2.0
WicketMessage: Error attaching this container for rendering: [Page class = packedge.EditPage, id = 9] Root cause: java.lang.IllegalStateException: wicket.Component has not been properly attached. Something in the hierarchy of wicket.extensions.ajax.markup.html.modal.ModalWindow has not called super.onAtach() in the override of onAttach() method at wicket.Component.attach(Component.java:2799) at wicket.MarkupContainer.attachChildren(MarkupContainer.java:372) at wicket.Component.attach(Component.java:2807) at wicket.Page.renderPage(Page.java:1082) at wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:229) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:53) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:65) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:944) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:973) at wicket.RequestCycle.step(RequestCycle.java:1054) at wicket.RequestCycle.steps(RequestCycle.java:1125) at wicket.RequestCycle.request(RequestCycle.java:470) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:232) at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Complete stack: wicket.WicketRuntimeException: Error attaching this container for rendering: [Page class = packedge.EditPage, id = 9] at wicket.MarkupContainer.attachChildren(MarkupContainer.java:383) at wicket.Component.attach(Component.java:2807) at wicket.Page.renderPage(Page.java:1082) at wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:229) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:53) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:65) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:944) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:973) at wicket.RequestCycle.step(RequestCycle.java:1054) at wicket.RequestCycle.steps(RequestCycle.java:1125) at wicket.RequestCycle.request(RequestCycle.java:470) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:232) at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at
Re: [Wicket-user] Help. Have been encountering this error in Wicket 2.0
extensions has been aligned with wicket refactorings, so it looks like you got a new wicket jar, but not a new extensions jar. update your extensions. -igor On 1/12/07, Otan [EMAIL PROTECTED] wrote: WicketMessage: Error attaching this container for rendering: [Page class = packedge.EditPage, id = 9] Root cause: java.lang.IllegalStateException: wicket.Component has not been properly attached. Something in the hierarchy of wicket.extensions.ajax.markup.html.modal.ModalWindow has not called super.onAtach() in the override of onAttach() method at wicket.Component.attach(Component.java:2799) at wicket.MarkupContainer.attachChildren (MarkupContainer.java:372) at wicket.Component.attach(Component.java:2807) at wicket.Page.renderPage(Page.java:1082) at wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java :229) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:53) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java :65) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:944) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:973) at wicket.RequestCycle.step(RequestCycle.java:1054) at wicket.RequestCycle.steps(RequestCycle.java:1125) at wicket.RequestCycle.request(RequestCycle.java:470) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:232) at wicket.protocol.http.WicketFilter.doFilter (WicketFilter.java:122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :173) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java :684) at java.lang.Thread.run(Thread.java:595) Complete stack: wicket.WicketRuntimeException: Error attaching this container for rendering: [Page class = packedge.EditPage, id = 9] at wicket.MarkupContainer.attachChildren (MarkupContainer.java:383) at wicket.Component.attach(Component.java:2807) at wicket.Page.renderPage(Page.java:1082) at wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java :229) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:53) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java :65) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:944) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:973) at wicket.RequestCycle.step(RequestCycle.java:1054) at wicket.RequestCycle.steps(RequestCycle.java:1125) at wicket.RequestCycle.request(RequestCycle.java:470) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:232) at wicket.protocol.http.WicketFilter.doFilter (WicketFilter.java:122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :173) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke
Re: [Wicket-user] AjaxFallbackDefaultDataTable - Markup with path 'label' not found
Thank you much. igor.vaynberg wrote: fixed -igor On 1/8/07, De Soca [EMAIL PROTECTED] wrote: Hello, I receive the following error when attempting to run an app with the AjaxFallbackDefaultDataTable in 2.0. Replacing that component with the non-Ajax version DefaultDataTable, the same code works perfectly: WicketMessage: jar:file:/x/exploded/WEB-INF/lib/wicket- extensions-2.0-SNAPSHOT.jar!/wicket/extensions/ajax/markup/html/repeater/data/sort/AjaxFallbackOrderByBorder.html: Markup with path 'label' not found in fragment: null Root cause: wicket.markup.MarkupException: jar:file:/x/exploded/WEB-INF/lib/wicket- extensions-2.0-SNAPSHOT.jar!/wicket/extensions/ajax/markup/html/repeater/data/sort/AjaxFallbackOrderByBorder.html: Markup with path 'label' not found in fragment: null at wicket.markup.MarkupFragment.getChildFragment(MarkupFragment.java:265) at wicket.markup.MarkupFragment.getChildFragment(MarkupFragment.java:181) at wicket.markup.html.border.Border.getMarkupFragment(Border.java :229) at wicket.Component.getMarkupFragment(Component.java:746) at wicket.Component.init(Component.java:637) at wicket.markup.html.WebComponent.init(WebComponent.java:55) at wicket.markup.html.basic.Label.init(Label.java:111) at wicket.extensions.markup.html.repeater.data.table.AbstractColumn.getHeader (AbstractColumn.java:87) at wicket.extensions.markup.html.repeater.data.table.HeadersToolbar$1.populateItem (HeadersToolbar.java:102) at wicket.markup.repeater.RefreshingView$1.newItem(RefreshingView.java:103) at wicket.markup.repeater.DefaultItemReuseStrategy$1.next( DefaultItemReuseStrategy.java:75) at wicket.markup.repeater.DefaultItemReuseStrategy$1.next( DefaultItemReuseStrategy.java:71) at wicket.markup.repeater.RefreshingView.addItems(RefreshingView.java:208) at wicket.markup.repeater.RefreshingView.onAttach(RefreshingView.java:114) snip -- Thanks. -- View this message in context: http://www.nabble.com/AjaxFallbackDefaultDataTable---Markup-with-path-%27label%27-not-found-tf2938511.html#a8215485 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/AjaxFallbackDefaultDataTable---Markup-with-path-%27label%27-not-found-tf2938511.html#a8310619 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Could not find root ajax-response element with AjaxFormSubmitBehavior+ browser back botton
I turn on log4j.logger.wicket=DEBUG and only see one message: DEBUG - Session- wicket.Session=updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0], [Access id=2, version=0]]] and no exception. It doesn't go to further steps like: Getting page [path = 1:form:go, versionNumber = -1]... either. On 1/13/07, Matej Knopp [EMAIL PROTECTED] wrote: This is weird. Can you please check if there is no exception in the log? -Matej Ingram Chen wrote: Hi all, I just found a bug (?) about AjaxFormSubmitBehavior when doing some browser back botton, like: (1) X page has a Form and use AjaxFormSubmitBehavior (2) navigate X to Y by a link (3) browser back to X (4) submit form of X by AjaxFormSubmitBehavior (5) then: *INFO: * *INFO: *Initiating Ajax POST request on /quickstart/app?wicket:interface=:2:form:go:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom= 0.9194877543437688 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (0 characters) *INFO: * *ERROR: *Error while parsing response: Could not find root ajax-response element *INFO: *Invoking post-call handler(s)... *INFO: *Invoking failure handler(s)... I just got Received ajax response (0 characters) and no idea how to investigate futher more. tested with 1.2.3 and 1.2.4 (both in IE and Firefox) attachment is quickstart for 1.2.4 Any help ? -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user