Re: [Wicket-user] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
I've done so, with screenshots as well. It's the issue WICKET-461. ZedroS On 4/12/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Alternatively, you can open up an issue in JIRA and attach it there. Eelco On 4/11/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi again I've done a demo application for the issue (bug ?). I've spotted its appear when I add my template page (otherwise it's working). The demo app does 5Mo, so it won't go through the mailing list. So I send it directly to you Igor, I hope you won't mind. If anyone else would like it, just let me know. ZedroS On 4/11/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi Igor I've played with it again regarding the multiple ajax submit buttons and I've noticed the following behavior : - this issue is only happening on Firefox (more precisely : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3). On Internet Explorer 6 SP2 it's working fine. - this issue only appears when I add the panel to my form. I've emptied my panel and it's still the same issue. BTW, I'm working on Wicket 1.3. If needed, I wouldn't mind sending my code to let you play with it. I've started to do a issue demo app but it takes time. ZedroS On 4/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: not really, its a complex hierarchy and if i was going to debug it i would have to recreate it myself. -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: I agree that the current modelisation is quite complex. Quickly, it's the following : my page has a form, let's call it form Form1. This form in fact inherits an Ajax form. This Ajax form add the Ajax submit button, an AjaxIndicator image and define the feedbackpanel. In Form1, I add two textfields with theirs borders and then a panel. This panel, called Panel1, contains a form and, added to this form, the RefreshingView. On the RefreshingView populateItem(...) I add two Labels and then the ActionPanel containing my 2 links. BTW, when the page renders for the first time, the row containing my ajax submit button is black. That's really weird since nowhere I've asked for it to be black... The added ajax submit buttons are added on a line above, one next to the other(s). Does it help you ? I'm going to dig deeper to see if I can do a quickstart for you to reproduce it (or to narrow my issue my removing non necessary stuff). Thanks again igor ZedroS - 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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
Re: [Wicket-user] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
Hi Igor I've played with it again regarding the multiple ajax submit buttons and I've noticed the following behavior : - this issue is only happening on Firefox (more precisely : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3). On Internet Explorer 6 SP2 it's working fine. - this issue only appears when I add the panel to my form. I've emptied my panel and it's still the same issue. BTW, I'm working on Wicket 1.3. If needed, I wouldn't mind sending my code to let you play with it. I've started to do a issue demo app but it takes time. ZedroS On 4/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: not really, its a complex hierarchy and if i was going to debug it i would have to recreate it myself. -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: I agree that the current modelisation is quite complex. Quickly, it's the following : my page has a form, let's call it form Form1. This form in fact inherits an Ajax form. This Ajax form add the Ajax submit button, an AjaxIndicator image and define the feedbackpanel. In Form1, I add two textfields with theirs borders and then a panel. This panel, called Panel1, contains a form and, added to this form, the RefreshingView. On the RefreshingView populateItem(...) I add two Labels and then the ActionPanel containing my 2 links. BTW, when the page renders for the first time, the row containing my ajax submit button is black. That's really weird since nowhere I've asked for it to be black... The added ajax submit buttons are added on a line above, one next to the other(s). Does it help you ? I'm going to dig deeper to see if I can do a quickstart for you to reproduce it (or to narrow my issue my removing non necessary stuff). Thanks again igor ZedroS - 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] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
Hi again I've done a demo application for the issue (bug ?). I've spotted its appear when I add my template page (otherwise it's working). The demo app does 5Mo, so it won't go through the mailing list. So I send it directly to you Igor, I hope you won't mind. If anyone else would like it, just let me know. ZedroS On 4/11/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi Igor I've played with it again regarding the multiple ajax submit buttons and I've noticed the following behavior : - this issue is only happening on Firefox (more precisely : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3). On Internet Explorer 6 SP2 it's working fine. - this issue only appears when I add the panel to my form. I've emptied my panel and it's still the same issue. BTW, I'm working on Wicket 1.3. If needed, I wouldn't mind sending my code to let you play with it. I've started to do a issue demo app but it takes time. ZedroS On 4/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: not really, its a complex hierarchy and if i was going to debug it i would have to recreate it myself. -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: I agree that the current modelisation is quite complex. Quickly, it's the following : my page has a form, let's call it form Form1. This form in fact inherits an Ajax form. This Ajax form add the Ajax submit button, an AjaxIndicator image and define the feedbackpanel. In Form1, I add two textfields with theirs borders and then a panel. This panel, called Panel1, contains a form and, added to this form, the RefreshingView. On the RefreshingView populateItem(...) I add two Labels and then the ActionPanel containing my 2 links. BTW, when the page renders for the first time, the row containing my ajax submit button is black. That's really weird since nowhere I've asked for it to be black... The added ajax submit buttons are added on a line above, one next to the other(s). Does it help you ? I'm going to dig deeper to see if I can do a quickstart for you to reproduce it (or to narrow my issue my removing non necessary stuff). Thanks again igor ZedroS - 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] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
Alternatively, you can open up an issue in JIRA and attach it there. Eelco On 4/11/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi again I've done a demo application for the issue (bug ?). I've spotted its appear when I add my template page (otherwise it's working). The demo app does 5Mo, so it won't go through the mailing list. So I send it directly to you Igor, I hope you won't mind. If anyone else would like it, just let me know. ZedroS On 4/11/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi Igor I've played with it again regarding the multiple ajax submit buttons and I've noticed the following behavior : - this issue is only happening on Firefox (more precisely : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3). On Internet Explorer 6 SP2 it's working fine. - this issue only appears when I add the panel to my form. I've emptied my panel and it's still the same issue. BTW, I'm working on Wicket 1.3. If needed, I wouldn't mind sending my code to let you play with it. I've started to do a issue demo app but it takes time. ZedroS On 4/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: not really, its a complex hierarchy and if i was going to debug it i would have to recreate it myself. -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: I agree that the current modelisation is quite complex. Quickly, it's the following : my page has a form, let's call it form Form1. This form in fact inherits an Ajax form. This Ajax form add the Ajax submit button, an AjaxIndicator image and define the feedbackpanel. In Form1, I add two textfields with theirs borders and then a panel. This panel, called Panel1, contains a form and, added to this form, the RefreshingView. On the RefreshingView populateItem(...) I add two Labels and then the ActionPanel containing my 2 links. BTW, when the page renders for the first time, the row containing my ajax submit button is black. That's really weird since nowhere I've asked for it to be black... The added ajax submit buttons are added on a line above, one next to the other(s). Does it help you ? I'm going to dig deeper to see if I can do a quickstart for you to reproduce it (or to narrow my issue my removing non necessary stuff). Thanks again igor ZedroS - 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
[Wicket-user] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
Hi I'm currently working on a RefreshingView and I got the 2 followings issues : - I've added an ActionPanel like the one in the Wicket Example and when onClick is fired I got the following error : ERROR - RequestCycle - Index: 0 java.lang.IndexOutOfBoundsException: Index: 0 at java.util.Collections$EmptyList.get(Collections.java:2970) at wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:88) at wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:89) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:962) at wicket.RequestCycle.step(RequestCycle.java:1035) at wicket.RequestCycle.steps(RequestCycle.java:1114) at wicket.RequestCycle.request(RequestCycle.java:474) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) 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.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:619) The ActionPanel is define as following : private class ActionPanel extends Panel { public ActionPanel(String id, IModel model) { super(id, model); add(new AjaxLink(+) { @Override public void onClick(AjaxRequestTarget arg0) { System.out.println(increment); } }); } } - the other issue is, I think, easier, but I didn't find how to solve it. In fact, my panel containing the RefreshingView is itself in a form. When the form is submitted and something put on the feedback panel, then the submit button is rendered twice... The button is in fact shown as many times as the form has been submitted. How can I stop that ? I'm using wicket 1.3. Regarding the code, I don't know which part of it would most help you, so I put a few samples but feel free to ask more. Thanks in advance ZedroS - 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] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
try an id that is an alpha string rather then + -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi I'm currently working on a RefreshingView and I got the 2 followings issues : - I've added an ActionPanel like the one in the Wicket Example and when onClick is fired I got the following error : ERROR - RequestCycle - Index: 0 java.lang.IndexOutOfBoundsException: Index: 0 at java.util.Collections$EmptyList.get(Collections.java:2970) at wicket.request.target.component.listener.BehaviorRequestTarget.processEvents (BehaviorRequestTarget.java:88) at wicket.request.AbstractRequestCycleProcessor.processEvents( AbstractRequestCycleProcessor.java:89) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :962) at wicket.RequestCycle.step(RequestCycle.java:1035) at wicket.RequestCycle.steps(RequestCycle.java:1114) at wicket.RequestCycle.request(RequestCycle.java:474) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) 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.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:619) The ActionPanel is define as following : private class ActionPanel extends Panel { public ActionPanel(String id, IModel model) { super(id, model); add(new AjaxLink(+) { @Override public void onClick(AjaxRequestTarget arg0) { System.out.println(increment); } }); } } - the other issue is, I think, easier, but I didn't find how to solve it. In fact, my panel containing the RefreshingView is itself in a form. When the form is submitted and something put on the feedback panel, then the submit button is rendered twice... The button is in fact shown as many times as the form has been submitted. How can I stop that ? I'm using wicket 1.3. Regarding the code, I don't know which part of it would most help you, so I put a few samples but feel free to ask more. Thanks in advance ZedroS - 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] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
Hi igor Thanks a lot, it did solve my first issue. Regarding the other one, the one about the submit button being shown as many times as it has been clicked, what could I do for it ? FYI, this button is added in a global form containing as well the RefreshingView (which itself has its own form, even if I wonder now if it's relevant). Thanks in advance ZedroS On 4/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: try an id that is an alpha string rather then + -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi I'm currently working on a RefreshingView and I got the 2 followings issues : - I've added an ActionPanel like the one in the Wicket Example and when onClick is fired I got the following error : ERROR - RequestCycle - Index: 0 java.lang.IndexOutOfBoundsException: Index: 0 at java.util.Collections$EmptyList.get(Collections.java:2970) at wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:88) at wicket.request.AbstractRequestCycleProcessor.processEvents (AbstractRequestCycleProcessor.java:89) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:962) at wicket.RequestCycle.step(RequestCycle.java:1035) at wicket.RequestCycle.steps (RequestCycle.java:1114) at wicket.RequestCycle.request(RequestCycle.java:474) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) 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.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:619) The ActionPanel is define as following : private class ActionPanel extends Panel { public ActionPanel(String id, IModel model) { super(id, model); add(new AjaxLink(+) { @Override public void onClick(AjaxRequestTarget arg0) { System.out.println(increment); } }); } } - the other issue is, I think, easier, but I didn't find how to solve it. In fact, my panel containing the RefreshingView is itself in a form. When the form is submitted and something put on the feedback panel, then the submit button is rendered twice... The button is in fact shown as many times as the form has been submitted. How can I stop that ? I'm using wicket 1.3. Regarding the code, I don't know which part of it would most help you, so I put a few samples but feel free to ask more. Thanks in advance ZedroS - 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
Re: [Wicket-user] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
that you would have to create a quickstart to reproduce. i cant even start thinking of what weirdness would cause this. -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi igor Thanks a lot, it did solve my first issue. Regarding the other one, the one about the submit button being shown as many times as it has been clicked, what could I do for it ? FYI, this button is added in a global form containing as well the RefreshingView (which itself has its own form, even if I wonder now if it's relevant). Thanks in advance ZedroS On 4/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: try an id that is an alpha string rather then + -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi I'm currently working on a RefreshingView and I got the 2 followings issues : - I've added an ActionPanel like the one in the Wicket Example and when onClick is fired I got the following error : ERROR - RequestCycle - Index: 0 java.lang.IndexOutOfBoundsException: Index: 0 at java.util.Collections$EmptyList.get(Collections.java:2970) at wicket.request.target.component.listener.BehaviorRequestTarget.processEvents (BehaviorRequestTarget.java:88) at wicket.request.AbstractRequestCycleProcessor.processEvents (AbstractRequestCycleProcessor.java:89) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:962) at wicket.RequestCycle.step(RequestCycle.java:1035) at wicket.RequestCycle.steps (RequestCycle.java:1114) at wicket.RequestCycle.request(RequestCycle.java:474) at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) 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.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:619) The ActionPanel is define as following : private class ActionPanel extends Panel { public ActionPanel(String id, IModel model) { super(id, model); add(new AjaxLink(+) { @Override public void onClick(AjaxRequestTarget arg0) { System.out.println(increment); } }); } } - the other issue is, I think, easier, but I didn't find how to solve it. In fact, my panel containing the RefreshingView is itself in a form. When the form is submitted and something put on the feedback panel, then the submit button is rendered twice... The button is in fact shown as many times as the form has been submitted. How can I stop that ? I'm using wicket 1.3. Regarding the code, I don't know which part of it would most help you, so I put a few samples but feel free to ask more. Thanks in advance ZedroS - 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] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
I agree that the current modelisation is quite complex. Quickly, it's the following : my page has a form, let's call it form Form1. This form in fact inherits an Ajax form. This Ajax form add the Ajax submit button, an AjaxIndicator image and define the feedbackpanel. In Form1, I add two textfields with theirs borders and then a panel. This panel, called Panel1, contains a form and, added to this form, the RefreshingView. On the RefreshingView populateItem(...) I add two Labels and then the ActionPanel containing my 2 links. BTW, when the page renders for the first time, the row containing my ajax submit button is black. That's really weird since nowhere I've asked for it to be black... The added ajax submit buttons are added on a line above, one next to the other(s). Does it help you ? I'm going to dig deeper to see if I can do a quickstart for you to reproduce it (or to narrow my issue my removing non necessary stuff). Thanks again igor ZedroS - 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] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
not really, its a complex hierarchy and if i was going to debug it i would have to recreate it myself. -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: I agree that the current modelisation is quite complex. Quickly, it's the following : my page has a form, let's call it form Form1. This form in fact inherits an Ajax form. This Ajax form add the Ajax submit button, an AjaxIndicator image and define the feedbackpanel. In Form1, I add two textfields with theirs borders and then a panel. This panel, called Panel1, contains a form and, added to this form, the RefreshingView. On the RefreshingView populateItem(...) I add two Labels and then the ActionPanel containing my 2 links. BTW, when the page renders for the first time, the row containing my ajax submit button is black. That's really weird since nowhere I've asked for it to be black... The added ajax submit buttons are added on a line above, one next to the other(s). Does it help you ? I'm going to dig deeper to see if I can do a quickstart for you to reproduce it (or to narrow my issue my removing non necessary stuff). Thanks again igor ZedroS - 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