class Error implements Serializable { String msg; String url; } class MyFeedbackPanel() { @Override protected Component newMessageDisplayComponent(String id, FeedbackMessage fm) {
Serializable ser = fm.getMessage(); if (ser instanceof Error) { Error err = ser; return new ExternalLink(id, err.url).setBody(Model.of(msg)) } else { return super.newMessageDisplayComponent(id, fm); } } } error(new Error(msg, url)); On Mon, Sep 3, 2012 at 1:29 PM, chaitanya b <harikaareddyit...@gmail.com> wrote: > I didnt get u exactly.. can you please provide me some sample example > > My problem is basically, i have to generate the link in the error message > it self when the condition is true. > > i want like this error("please * contact admin *"); > > > if i click the link , it navigates to another page. (onclick functionality > will be executed).. > > but i am unable to create the link in the message. > > > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-to-create-the-achor-in-wicket-java-class-without-using-wicket-id-tp4651707p4651712.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 > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org