That's what I did, but after clicking, I can't seems to link it to the component i want to
add( new AjaxSubmitButton("sendemail", this) { protected void onSubmit(AjaxRequestTarget target, Form form) { target.appendJavascript("document.getElementById('" + topCompoent.getMarkupId() + "').focus();"); } }); Tracing back the error, it said "has no properties". what does that mean? Timo Rantalaiho wrote: > > On Mon, 21 May 2007, Lec wrote: >> component. But the thing now is that, button doesn't provide any method >> to >> set an anchor. How do we do that? > > Override Button.onSubmit() > > - Timo > > -- > Timo Rantalaiho +358-45-6709709 > Reaktor Innovations Oy <URL: http://www.ri.fi/ > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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/how-to-use-a-button-to-display-to-another-region-of-a-html-page-upon-clicked--tf3788901.html#a10715599 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user