Hi I am trying to add custom validation error but it is showing some exception . do anybody have an idea. I have added the following code in html
<form jwcid="[EMAIL PROTECTED]" success="listener:onWordSubmit" delegate="bean:delegate"> I have added the following in the page xml <page-specification class="com.kensium.tapestry.first.Home"> <bean name="delegate" class="com.tapestry.core.FPSDeligate" /> </page-specification> The following is the FPSDeligate:- package com.tapestry.core; import org.apache.tapestry.valid.ValidationDelegate; public class FPSDeligate extends ValidationDelegate{ } The java class I wrote is the following public abstract class Home extends FPSBasePage { public abstract String getUserName(); public abstract String getUserPassword(); public String onWordSubmit() { if(getUserName().equals("murali")){ getVisit().setAttribute("org.fps.companyName", "Kensium solutions"); }else{ IValidationDelegate validationDeligate=(IValidationDelegate)getComponent("homeForm").getBeans(). getBean("delegate"); IFormComponent formComp=(IFormComponent)getComponent("userName"); validationDeligate.record(formComp, "Invalid password"); } return "Secret"; } public Date getCurrentDate() { return new Date(); } The exception I am getting is the following Stack Trace: * org.apache.tapestry.bean.BeanProvider.getBean(BeanProvider.java:156) * com.kensium.tapestry.first.Home.onWordSubmit(Home.java:24) * sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) * sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) * sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) * java.lang.reflect.Method.invoke(Method.java:585) * org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeTargetMethod(Li stenerMethodInvokerImpl.java:276) * org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod( ListenerMethodInvokerImpl.java:221) * org.apache.tapestry.listener.ListenerMethodInvokerImpl.searchAndInvoke(Liste nerMethodInvokerImpl.java:157) * org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod( ListenerMethodInvokerImpl.java:80) * org.apache.tapestry.listener.SyntheticListener.actionTriggered(SyntheticList ener.java:52) * org.apache.tapestry.binding.ListenerMethodBinding.actionTriggered(ListenerMe thodBinding.java:77) * org.apache.tapestry.listener.ListenerInvokerTerminator.invokeListener(Listen erInvokerTerminator.java:50) * $ListenerInvoker_11d84db2b3b.invokeListener($ListenerInvoker_11d84db2b3b.jav a) * $ListenerInvoker_11d84db2b3a.invokeListener($ListenerInvoker_11d84db2b3a.jav a) * org.apache.tapestry.form.Form.renderComponent(Form.java:200) * org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724) * org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultRespo nseBuilder.java:187) * org.apache.tapestry.form.Form.rewind(Form.java:269) * org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:469) * org.apache.tapestry.form.Form.trigger(Form.java:280) * org.apache.tapestry.engine.DirectService.triggerComponent(DirectService.java :166) * org.apache.tapestry.engine.DirectService.service(DirectService.java:142) * $IEngineService_11d84db2b95.service($IEngineService_11d84db2b95.java) * org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServ iceOuterProxy.java:72) * org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:241) * org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngin eTerminator.java:54) * $WebRequestServicer_11d84db2b6e.service($WebRequestServicer_11d84db2b6e.java ) * $WebRequestServicer_11d84db2b6a.service($WebRequestServicer_11d84db2b6a.java ) * org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(W ebRequestServicerPipelineBridge.java:61) * $ServletRequestServicer_11d84db2b50.service($ServletRequestServicer_11d84db2 b50.java) * org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInj ector.java:55) * $ServletRequestServicerFilter_11d84db2b4c.service($ServletRequestServicerFil ter_11d84db2b4c.java) * $ServletRequestServicer_11d84db2b52.service($ServletRequestServicer_11d84db2 b52.java) * org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecode rFilter.java:52) * $ServletRequestServicerFilter_11d84db2b4a.service($ServletRequestServicerFil ter_11d84db2b4a.java) * $ServletRequestServicer_11d84db2b52.service($ServletRequestServicer_11d84db2 b52.java) * org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestE ncoding.java:53) * $ServletRequestServicerFilter_11d84db2b4e.service($ServletRequestServicerFil ter_11d84db2b4e.java) * $ServletRequestServicer_11d84db2b52.service($ServletRequestServicer_11d84db2 b52.java) * $ServletRequestServicer_11d84db2b44.service($ServletRequestServicer_11d84db2 b44.java) * org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:126 ) * org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:171) * javax.servlet.http.HttpServlet.service(HttpServlet.java:710) * javax.servlet.http.HttpServlet.service(HttpServlet.java:803) * org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) * org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:188) * org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) * org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:174) * org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127 ) * org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 ) * org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :108) * org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) * org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) * org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC onnection(Http11BaseProtocol.java:665) * org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:528) * org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo rkerThread.java:81) * org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:689) * java.lang.Thread.run(Thread.java:595) Warm regards, Muralidhar Y [EMAIL PROTECTED] US Main: 877 KENSIUM (536.7486) India Main: +91 9949495511 India Fax: +91 9949495522 Kensium 200 S Wacker Dr, Suite 3100 Chicago, IL 60606 Confidentiality Note: ----------------------------- The information contained in this e-mail is strictly confidential and for the intended use of the addressee only. Any disclosure, use or copying of the information by anyone other than the intended recipient is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and securely discard this message. _____