Re: [Wicket-user] onSubmit not called in a form
No ideas or further experiments to try to solve this issue ? ;-) Pierre-Yves Pierre-Yves Saumont a écrit : Here is the request parameter object: [RequestParameters parameters={rightColumn_pagePanel_dialogBoxExpiries_tabs_panel_dialogBoxContent_selectExpiriesForm:hf:0=, submit-button=[[ button text ]]} onlyProcessIfPathActive=false] Inside it, all values are null, false or 0, except the parameters map which contains two elements: rightColumn_pagePanel_dialogBoxExpiries_tabs_panel_dialogBoxContent_selectExpiriesForm:hf:0 submit-button=[[ button text ]] DefaultRequestTargetResolverStrategy#resolve returns at: return resolveHomePageTarget(requestCycle, requestParameters); Pierre-Yves Eelco Hillenius a écrit : You can set a break point at the beginning of DefaultRequestTargetResolverStrategy#resolve and see where it returns. In your debugger, you can also look at the RequestParameters object to find out how Wicket interprets the request. Eelco On 10/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I am not sure I understand what you mean. (To be honest, I am sure I don't). From the debugger, how can I find the answer to this question? Pierre-Yves Eelco Hillenius a écrit : So, where does it resolve to then (what is the request target it thinks it has to execute)? Eelco On 10/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I put breakpoints on Form#onFormSubmitted and AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are reached for other forms that I navigate through to reach the page that is causing trouble. In the form that has the problem, AbstractCompoundRequestCycleProcessor#resolve is reached, but not Form#onFormSubmitted. Pierre-Yves Eelco Hillenius a écrit : That's pretty weird yes. Can you confirm the action attribute of the form element is generated correctly? Do you have any validation errors? You could set a break point in Form#onFormSubmitted and see whether the request arrives there at all. If it doesn't, somehow the call back doesn't work (the action attribute of Form might be wrong). In that case, AbstractCompoundRequestCycleProcessor#resolve is a good place to set a break point. If the request does arrive in the form, see what happens there. Eelco On 10/9/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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 -
Re: [Wicket-user] onSubmit not called in a form
Can you give me the complete form tag thats in the html?johanOn 10/11/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:No ideas or further experiments to try to solve this issue ? ;-) Pierre-YvesPierre-Yves Saumont a écrit : Here is the request parameter object: [RequestParameters parameters={rightColumn_pagePanel_dialogBoxExpiries_tabs_panel_dialogBoxContent_selectExpiriesForm:hf:0=, submit-button=[[ button text ]]} > Inside it, all values are null, false or 0, except the parameters map which contains two elements: rightColumn_pagePanel_dialogBoxExpiries_tabs_panel_dialogBoxContent_selectExpiriesForm:hf:0 submit-button=[[ button text ]] DefaultRequestTargetResolverStrategy#resolve returns at: return resolveHomePageTarget(requestCycle, requestParameters); Pierre-Yves Eelco Hillenius a écrit : You can set a break point at the beginning of DefaultRequestTargetResolverStrategy#resolve and see where it returns. In your debugger, you can also look at the RequestParameters object to find out how Wicket interprets the request. Eelco On 10/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I am not sure I understand what you mean. (To be honest, I am sure I don't). From the debugger, how can I find the answer to this question? Pierre-Yves Eelco Hillenius a écrit : So, where does it resolve to then (what is the request target it thinks it has to execute)? Eelco On 10/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I put breakpoints on Form#onFormSubmitted and AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are reached for other forms that I navigate through to reach the page that is causing trouble. In the form that has the problem, AbstractCompoundRequestCycleProcessor#resolve is reached, but not Form#onFormSubmitted. Pierre-Yves Eelco Hillenius a écrit : That's pretty weird yes. Can you confirm the action attribute of the form element is generated correctly? Do you have any validation errors? You could set a break point in Form#onFormSubmitted and see whether the request arrives there at all. If it doesn't, somehow the call back doesn't work (the action attribute of Form might be wrong). In that case, AbstractCompoundRequestCycleProcessor#resolve is a good place to set a break point. If the request does arrive in the form, see what happens there. Eelco On 10/9/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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- Using Tomcat but need to do more? Need to
Re: [Wicket-user] onSubmit not called in a form
Hi Johan, While I was extracting the form tag from the markup, I found the cause of the problem. The form was inside another form (with the opening tag far above, which is why I did not noticed it). The outside form had no wicket id nor even an action tag, and I suppose it had been put there at design time for some reason related to presentation. Basically, the template was: form ... form wicket:id='myForm' ... /form ... /form This cause the application to display the home page without any error message. Pierre-Yves Johan Compagner a écrit : Can you give me the complete form tag thats in the html? johan On 10/11/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: No ideas or further experiments to try to solve this issue ? ;-) Pierre-Yves Pierre-Yves Saumont a écrit : Here is the request parameter object: [RequestParameters parameters={rightColumn_pagePanel_dialogBoxExpiries_tabs_panel_dialogBoxContent_selectExpiriesForm:hf:0=, submit-button=[[ button text ]]} onlyProcessIfPathActive=false] Inside it, all values are null, false or 0, except the parameters map which contains two elements: rightColumn_pagePanel_dialogBoxExpiries_tabs_panel_dialogBoxContent_selectExpiriesForm:hf:0 submit-button=[[ button text ]] DefaultRequestTargetResolverStrategy#resolve returns at: return resolveHomePageTarget(requestCycle, requestParameters); Pierre-Yves Eelco Hillenius a écrit : You can set a break point at the beginning of DefaultRequestTargetResolverStrategy#resolve and see where it returns. In your debugger, you can also look at the RequestParameters object to find out how Wicket interprets the request. Eelco On 10/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I am not sure I understand what you mean. (To be honest, I am sure I don't). From the debugger, how can I find the answer to this question? Pierre-Yves Eelco Hillenius a écrit : So, where does it resolve to then (what is the request target it thinks it has to execute)? Eelco On 10/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I put breakpoints on Form#onFormSubmitted and AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are reached for other forms that I navigate through to reach the page that is causing trouble. In the form that has the problem, AbstractCompoundRequestCycleProcessor#resolve is reached, but not Form#onFormSubmitted. Pierre-Yves Eelco Hillenius a écrit : That's pretty weird yes. Can you confirm the action attribute of the form element is generated correctly? Do you have any validation errors? You could set a break point in Form#onFormSubmitted and see whether the request arrives there at all. If it doesn't, somehow the call back doesn't work (the action attribute of Form might be wrong). In that case, AbstractCompoundRequestCycleProcessor#resolve is a good place to set a break point. If the request does arrive in the form, see what happens there. Eelco On 10/9/06, Pierre-Yves Saumont [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] onSubmit not called in a form
I am testing this on a stripped down version of my app. The java code is: class SelectExpiriesForm extends Form { public SelectExpiriesForm(String id, IModel model) { super(id, model); add(new Button(submit-button, new Model(Submit))); } public void onSubmit() { System.out.println(in onSubmit...); } } and the html is: form wicket:id=selectExpiriesForm input wicket:id=submit-button type=submit class=dialogButton value=[[ button text ]]/ /form I also tested this in a separate quickstart and it works fine. I have no specific error setup (I disabled . So, something else in my app is must be causing this strange behavior. Pierre-Yves Nino Wael a écrit : Sounds strange, could you poste the source? AFAIK, two things should happen either you would get what you wanted or you should get an error. Although this migth be changed if you had special error handling that redirects the user to the home page. -Original Message- From: [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont Sent: Mon 09-10-2006 17:18 To: wicket-user@lists.sourceforge.net Cc: Subject: [Wicket-user] onSubmit not called in a form Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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] onSubmit not called in a form
I havent used buttons with models could you try to strip that and also override your buttons onsubmit also just to see what happens there? which version of wicket are we talking about? regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont Sent: Tue 10-10-2006 10:25 To: wicket-user@lists.sourceforge.net Cc: Subject:Re: [Wicket-user] onSubmit not called in a form I am testing this on a stripped down version of my app. The java code is: class SelectExpiriesForm extends Form { public SelectExpiriesForm(String id, IModel model) { super(id, model); add(new Button(submit-button, new Model(Submit))); } public void onSubmit() { System.out.println(in onSubmit...); } } and the html is: form wicket:id=selectExpiriesForm input wicket:id=submit-button type=submit class=dialogButton value=[[ button text ]]/ /form I also tested this in a separate quickstart and it works fine. I have no specific error setup (I disabled . So, something else in my app is must be causing this strange behavior. Pierre-Yves Nino Wael a écrit : Sounds strange, could you poste the source? AFAIK, two things should happen either you would get what you wanted or you should get an error. Although this migth be changed if you had special error handling that redirects the user to the home page. -Original Message- From: [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont Sent: Mon 09-10-2006 17:18 To: wicket-user@lists.sourceforge.net Cc: Subject: [Wicket-user] onSubmit not called in a form Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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] onSubmit not called in a form
Without a model, the result is the same except that the button text is taken from the html template. If I add an onSubmit handler to the button, the result again is the same. No one of the handlers get called, and the home page is displayed. (No error message on the console, nothing in the server log) With these modifications, it works fine in the quickstart. The button handler is called first and then the form handler. I am using 1.2.2 Pierre-Yves Nino Wael a écrit : I havent used buttons with models could you try to strip that and also override your buttons onsubmit also just to see what happens there? which version of wicket are we talking about? regards Nino -Original Message- From: [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont Sent: Tue 10-10-2006 10:25 To: wicket-user@lists.sourceforge.net Cc: Subject: Re: [Wicket-user] onSubmit not called in a form I am testing this on a stripped down version of my app. The java code is: class SelectExpiriesForm extends Form { public SelectExpiriesForm(String id, IModel model) { super(id, model); add(new Button(submit-button, new Model(Submit))); } public void onSubmit() { System.out.println(in onSubmit...); } } and the html is: form wicket:id=selectExpiriesForm input wicket:id=submit-button type=submit class=dialogButton value=[[ button text ]]/ /form I also tested this in a separate quickstart and it works fine. I have no specific error setup (I disabled . So, something else in my app is must be causing this strange behavior. Pierre-Yves Nino Wael a écrit : Sounds strange, could you poste the source? AFAIK, two things should happen either you would get what you wanted or you should get an error. Although this migth be changed if you had special error handling that redirects the user to the home page. -Original Message- From:[EMAIL PROTECTED] on behalf of Pierre-Yves Saumont Sent:Mon 09-10-2006 17:18 To: wicket-user@lists.sourceforge.net Cc: Subject: [Wicket-user] onSubmit not called in a form Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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] onSubmit not called in a form
That's pretty weird yes. Can you confirm the action attribute of the form element is generated correctly? Do you have any validation errors? You could set a break point in Form#onFormSubmitted and see whether the request arrives there at all. If it doesn't, somehow the call back doesn't work (the action attribute of Form might be wrong). In that case, AbstractCompoundRequestCycleProcessor#resolve is a good place to set a break point. If the request does arrive in the form, see what happens there. Eelco On 10/9/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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] onSubmit not called in a form
I put breakpoints on Form#onFormSubmitted and AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are reached for other forms that I navigate through to reach the page that is causing trouble. In the form that has the problem, AbstractCompoundRequestCycleProcessor#resolve is reached, but not Form#onFormSubmitted. Pierre-Yves Eelco Hillenius a écrit : That's pretty weird yes. Can you confirm the action attribute of the form element is generated correctly? Do you have any validation errors? You could set a break point in Form#onFormSubmitted and see whether the request arrives there at all. If it doesn't, somehow the call back doesn't work (the action attribute of Form might be wrong). In that case, AbstractCompoundRequestCycleProcessor#resolve is a good place to set a break point. If the request does arrive in the form, see what happens there. Eelco On 10/9/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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] onSubmit not called in a form
So, where does it resolve to then (what is the request target it thinks it has to execute)? Eelco On 10/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I put breakpoints on Form#onFormSubmitted and AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are reached for other forms that I navigate through to reach the page that is causing trouble. In the form that has the problem, AbstractCompoundRequestCycleProcessor#resolve is reached, but not Form#onFormSubmitted. Pierre-Yves Eelco Hillenius a écrit : That's pretty weird yes. Can you confirm the action attribute of the form element is generated correctly? Do you have any validation errors? You could set a break point in Form#onFormSubmitted and see whether the request arrives there at all. If it doesn't, somehow the call back doesn't work (the action attribute of Form might be wrong). In that case, AbstractCompoundRequestCycleProcessor#resolve is a good place to set a break point. If the request does arrive in the form, see what happens there. Eelco On 10/9/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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] onSubmit not called in a form
I am not sure I understand what you mean. (To be honest, I am sure I don't). From the debugger, how can I find the answer to this question? Pierre-Yves Eelco Hillenius a écrit : So, where does it resolve to then (what is the request target it thinks it has to execute)? Eelco On 10/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I put breakpoints on Form#onFormSubmitted and AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are reached for other forms that I navigate through to reach the page that is causing trouble. In the form that has the problem, AbstractCompoundRequestCycleProcessor#resolve is reached, but not Form#onFormSubmitted. Pierre-Yves Eelco Hillenius a écrit : That's pretty weird yes. Can you confirm the action attribute of the form element is generated correctly? Do you have any validation errors? You could set a break point in Form#onFormSubmitted and see whether the request arrives there at all. If it doesn't, somehow the call back doesn't work (the action attribute of Form might be wrong). In that case, AbstractCompoundRequestCycleProcessor#resolve is a good place to set a break point. If the request does arrive in the form, see what happens there. Eelco On 10/9/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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] onSubmit not called in a form
You can set a break point at the beginning of DefaultRequestTargetResolverStrategy#resolve and see where it returns. In your debugger, you can also look at the RequestParameters object to find out how Wicket interprets the request. Eelco On 10/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I am not sure I understand what you mean. (To be honest, I am sure I don't). From the debugger, how can I find the answer to this question? Pierre-Yves Eelco Hillenius a écrit : So, where does it resolve to then (what is the request target it thinks it has to execute)? Eelco On 10/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I put breakpoints on Form#onFormSubmitted and AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are reached for other forms that I navigate through to reach the page that is causing trouble. In the form that has the problem, AbstractCompoundRequestCycleProcessor#resolve is reached, but not Form#onFormSubmitted. Pierre-Yves Eelco Hillenius a écrit : That's pretty weird yes. Can you confirm the action attribute of the form element is generated correctly? Do you have any validation errors? You could set a break point in Form#onFormSubmitted and see whether the request arrives there at all. If it doesn't, somehow the call back doesn't work (the action attribute of Form might be wrong). In that case, AbstractCompoundRequestCycleProcessor#resolve is a good place to set a break point. If the request does arrive in the form, see what happens there. Eelco On 10/9/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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
Re: [Wicket-user] onSubmit not called in a form
Here is the request parameter object: [RequestParameters parameters={rightColumn_pagePanel_dialogBoxExpiries_tabs_panel_dialogBoxContent_selectExpiriesForm:hf:0=, submit-button=[[ button text ]]} onlyProcessIfPathActive=false] Inside it, all values are null, false or 0, except the parameters map which contains two elements: rightColumn_pagePanel_dialogBoxExpiries_tabs_panel_dialogBoxContent_selectExpiriesForm:hf:0 submit-button=[[ button text ]] DefaultRequestTargetResolverStrategy#resolve returns at: return resolveHomePageTarget(requestCycle, requestParameters); Pierre-Yves Eelco Hillenius a écrit : You can set a break point at the beginning of DefaultRequestTargetResolverStrategy#resolve and see where it returns. In your debugger, you can also look at the RequestParameters object to find out how Wicket interprets the request. Eelco On 10/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I am not sure I understand what you mean. (To be honest, I am sure I don't). From the debugger, how can I find the answer to this question? Pierre-Yves Eelco Hillenius a écrit : So, where does it resolve to then (what is the request target it thinks it has to execute)? Eelco On 10/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I put breakpoints on Form#onFormSubmitted and AbstractCompoundRequestCycleProcessor#resolve. Those breakpoint are reached for other forms that I navigate through to reach the page that is causing trouble. In the form that has the problem, AbstractCompoundRequestCycleProcessor#resolve is reached, but not Form#onFormSubmitted. Pierre-Yves Eelco Hillenius a écrit : That's pretty weird yes. Can you confirm the action attribute of the form element is generated correctly? Do you have any validation errors? You could set a break point in Form#onFormSubmitted and see whether the request arrives there at all. If it doesn't, somehow the call back doesn't work (the action attribute of Form might be wrong). In that case, AbstractCompoundRequestCycleProcessor#resolve is a good place to set a break point. If the request does arrive in the form, see what happens there. Eelco On 10/9/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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] onSubmit not called in a form
Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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] onSubmit not called in a form
Well, it's a bit tricky without seeing code! Maybe take a look at http://www.wicket-library.com/wicket-examples/compref?wicket:bookmarkablePage=:wicket.examples.compref.FormPage and compare? /Gwyn On 09/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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 -- Download Wicket 1.2.2 now! - http://wicketframework.org - 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] onSubmit not called in a form
Sounds strange, could you poste the source? AFAIK, two things should happen either you would get what you wanted or you should get an error. Although this migth be changed if you had special error handling that redirects the user to the home page. -Original Message- From: [EMAIL PROTECTED] on behalf of Pierre-Yves Saumont Sent: Mon 09-10-2006 17:18 To: wicket-user@lists.sourceforge.net Cc: Subject:[Wicket-user] onSubmit not called in a form Hi, I have a form and on a page and I believe a click on the submit button should cause a call to the onSubmit method. (No onSubmit in the button, all default settings). By default, I suppose after the call to onSubmit Wicket should redisplay the same page. Instead of this, onSubmit is not called and Wicket displays the home page. I am sure I am doing something wrong, but I can't find what. Any hint about where to look for? Pierre-Yves - 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 winmail.dat- 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