Re: Multiple Button Problem in Wicket
Disconsider my last mail, both it was not a bug and I replied in the wrong thread. On Thu, Feb 3, 2011 at 9:02 AM, Pedro Santos wrote: > ops: https://issues.apache.org/jira/browse/WICKET-3417 > > > On Thu, Feb 3, 2011 at 9:02 AM, Pedro Santos wrote: > >> Hi Steven, I opened a ticket to this problem. I would be very helpful if >> you send an quickstart also. >> >> >> On Wed, Feb 2, 2011 at 2:26 PM, sheadley3228 < >> steven.head...@cats.usdoj.gov> wrote: >> >>> >>> Hello All, >>> >>>I have 3 buttons in my form and have read over the documentation >>> concerning multiple buttons but can't get the buttons to work correctly. >>> >>> Here is my Form: >>> >>> public UserVerifyForm(String id) { >>> super(id); >>> >>> add(new Button("retrieveButton") { >>>@Override >>>public void onSubmit() { >>>info("retrieve was pressed!"); >>>} >>> } >>> >>> add(new Button("reportButton"){ >>>public void onSubmit() { >>>info("report was pressed!"); >>>} >>> }); >>> >>> add(new Button("clearButton") >>>.setDefaultFormProcessing(false) >>>.add( new SimpleAttributeModifier("onclick", >>> clearJavascript))); >>> >>> } >>> >>> >>> >>> My html Page looks like: >>> . >>> . >>> . >>> >>>>> class="submit" value="Retrieve" /> >>>>> class="submit" value=Clear /> >>>>> class="submit" value="Report" /> >>> >>> >>> When I try to run with the following I get this error Message: >>> >>> [2/2/11 10:48:35:370 EST] 001c SystemOut O 69728 [WebContainer : >>> 0] >>> ERROR org.apache.wicket.RequestCycle - The component(s) below failed to >>> render. A common problem is that you have added a component in code but >>> forgot to reference it in the markup (thus the component will never be >>> rendered). >>> >>> 1. [MarkupContainer [Component id = reportButton]] >>> >>> any help would be appreciated >>> >>> >>> Thanks, >>> >>> >>> Steven H. >>> >>> >>> >>> -- >>> View this message in context: >>> http://apache-wicket.1842946.n4.nabble.com/Multiple-Button-Problem-in-Wicket-tp3254779p3254779.html >>> Sent from the Users forum mailing list archive at Nabble.com. >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> >> -- >> Pedro Henrique Oliveira dos Santos >> > > > > -- > Pedro Henrique Oliveira dos Santos > -- Pedro Henrique Oliveira dos Santos
Re: Multiple Button Problem in Wicket
ops: https://issues.apache.org/jira/browse/WICKET-3417 On Thu, Feb 3, 2011 at 9:02 AM, Pedro Santos wrote: > Hi Steven, I opened a ticket to this problem. I would be very helpful if > you send an quickstart also. > > > On Wed, Feb 2, 2011 at 2:26 PM, sheadley3228 < > steven.head...@cats.usdoj.gov> wrote: > >> >> Hello All, >> >>I have 3 buttons in my form and have read over the documentation >> concerning multiple buttons but can't get the buttons to work correctly. >> >> Here is my Form: >> >> public UserVerifyForm(String id) { >> super(id); >> >> add(new Button("retrieveButton") { >>@Override >>public void onSubmit() { >>info("retrieve was pressed!"); >>} >> } >> >> add(new Button("reportButton"){ >>public void onSubmit() { >>info("report was pressed!"); >>} >> }); >> >> add(new Button("clearButton") >>.setDefaultFormProcessing(false) >>.add( new SimpleAttributeModifier("onclick", >> clearJavascript))); >> >> } >> >> >> >> My html Page looks like: >> . >> . >> . >> >>> class="submit" value="Retrieve" /> >>> class="submit" value=Clear /> >>> class="submit" value="Report" /> >> >> >> When I try to run with the following I get this error Message: >> >> [2/2/11 10:48:35:370 EST] 001c SystemOut O 69728 [WebContainer : >> 0] >> ERROR org.apache.wicket.RequestCycle - The component(s) below failed to >> render. A common problem is that you have added a component in code but >> forgot to reference it in the markup (thus the component will never be >> rendered). >> >> 1. [MarkupContainer [Component id = reportButton]] >> >> any help would be appreciated >> >> >> Thanks, >> >> >> Steven H. >> >> >> >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/Multiple-Button-Problem-in-Wicket-tp3254779p3254779.html >> Sent from the Users forum mailing list archive at Nabble.com. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Pedro Henrique Oliveira dos Santos > -- Pedro Henrique Oliveira dos Santos
Re: Multiple Button Problem in Wicket
Hi Steven, I opened a ticket to this problem. I would be very helpful if you send an quickstart also. On Wed, Feb 2, 2011 at 2:26 PM, sheadley3228 wrote: > > Hello All, > >I have 3 buttons in my form and have read over the documentation > concerning multiple buttons but can't get the buttons to work correctly. > > Here is my Form: > > public UserVerifyForm(String id) { > super(id); > > add(new Button("retrieveButton") { >@Override >public void onSubmit() { >info("retrieve was pressed!"); >} > } > > add(new Button("reportButton"){ >public void onSubmit() { >info("report was pressed!"); >} > }); > > add(new Button("clearButton") >.setDefaultFormProcessing(false) >.add( new SimpleAttributeModifier("onclick", > clearJavascript))); > > } > > > > My html Page looks like: > . > . > . > > class="submit" value="Retrieve" /> > class="submit" value=Clear /> > class="submit" value="Report" /> > > > When I try to run with the following I get this error Message: > > [2/2/11 10:48:35:370 EST] 001c SystemOut O 69728 [WebContainer : 0] > ERROR org.apache.wicket.RequestCycle - The component(s) below failed to > render. A common problem is that you have added a component in code but > forgot to reference it in the markup (thus the component will never be > rendered). > > 1. [MarkupContainer [Component id = reportButton]] > > any help would be appreciated > > > Thanks, > > > Steven H. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Multiple-Button-Problem-in-Wicket-tp3254779p3254779.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pedro Henrique Oliveira dos Santos
Re: Multiple Button Problem in Wicket
To be honest, I decided to stick this code into my own web page (it has a form), but I put it outside of it without a form, and it works fine Shows up just dandy. I did of course change your retrieveButton code to add an ");". So I presume it is something else in your code stopping your code from compiling or something Perhaps something wrong with UserVerifyForm, not sure what this extends. I assume you edited a lot of your code which was necessary when you put it up on the boards, which you may, but everything works for me What version of Wicket are you using? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multiple-Button-Problem-in-Wicket-tp3254779p3256935.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org