I think you should prevent that SQLException from happening in the first
place by validating the form input.
Then use a FeedbackPanel to display suitable error messages. Just google for
example code with forms, it's basic stuff.

Otherwise, create a FeedbackPanel on your page, put a try .. catch block
around your sql methods and in case of an exception, write to the
FeedbackPanel using error("your message")



Antoine


On Fri, Aug 27, 2010 at 3:02 PM, arunarapole <arunakumm...@gmail.com> wrote:

>
> Thank you for replay i am very glad you have sent me the sample code thank
> you so much
>
> My problem is i have to handle SQLException and only message  to be display
> in hidden field  same webpage
>
> do u have any idea regarding this
>
> Aruna
>
> On Thu, Aug 26, 2010 at 10:14 PM, Nitnatsnok [via Apache Wicket] <
> ml-node+2340562-650873628-136...@n4.nabble.com<ml-node%2b2340562-650873628-136...@n4.nabble.com>
> <ml-node%2b2340562-650873628-136...@n4.nabble.com<ml-node%252b2340562-650873628-136...@n4.nabble.com>
> >
> > wrote:
>
> > Oh, also I set not to show Error Page on exception in WebApplication:
> >
> >
> getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_NO_EXCEPTION_PAGE);
> >
> >
> > ------------------------------
> >  View message @
> >
> http://apache-wicket.1842946.n4.nabble.com/EXception-handling-in-Wicket-tp2340439p2340562.html
> > To unsubscribe from EXception handling in Wicket, click here<
> http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=2340439&code=YXJ1bmFrdW1tYXJpQGdtYWlsLmNvbXwyMzQwNDM5fC00Njg4NjYxODg=
> >.
> >
> >
> >
>
>
> --
>
>
> Regards
> Aruna.R
> 404-988-5562
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/EXception-handling-in-Wicket-tp2340439p2341035.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>

Reply via email to