1 Reply Latest reply on Dec 3, 2009 8:45 AM by Ilya Shaikovsky

    Dont work rich:calendar and rich:jQuery whith 'jquery.masked

    Ronan Silva Newbie

      Hi,

      I'm problem with this code:

       <script src="../scripts/jquery.maskedinput.js" language="javascript"></script>
      
      <r:jQuery selector="#:sysDateTextFieldInputDate" query="mask('?99/99/9999',{placeholder:''})"/>
       <r:calendar id="sysDateTextField"
       value="#{bean.dateCurrent}"
       status="waitStatus"
       required="true"
       enableManualInput="true"
       datePattern="dd/MM/yyy">
       <a4j:support event="oninputchange" action="#{bean.changeDate}" status="waitStatus" reRender="weekDayTextField"/>
       </r:calendar>
      


      When invoke action '#{bean.changeDate}', this exception occurs:

      12:41:44,660 [0.0-8080-1] WARN org.ajax4jsf.renderkit.AjaxRendererUtils [] - AJAX Status component not found for AjaxComponent with id printButton
      12:41:58,282 [0.0-8080-2] ERROR org.ajax4jsf.webapp.BaseXMLFilter [] - Exception in the filter chain
      javax.servlet.ServletException: javax.crypto.BadPaddingException: Given final block not properly padded
       at javax.faces.webapp._ErrorPageWriter.throwException(_ErrorPageWriter.java:546)
       at javax.faces.webapp.FacesServlet.handleLifecycleException(FacesServlet.java:266)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:160)
       at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:103)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at br.com.ymf.amplis.base.view.AjaxExpiredMessageFilter.doFilter(AjaxExpiredMessageFilter.java:22)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      ...
      
      Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
       at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
       at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
       at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA13*..)
       at javax.crypto.Cipher.doFinal(DashoA13*..)
       at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:452)
       ... 57 more
      12:41:58,282 [0.0-8080-2] ERROR b].[localhost].[/amplis].[Faces Servlet] [] - Servlet.service() for servlet Faces Servlet threw exception
      javax.crypto.BadPaddingException: Given final block not properly padded
       at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
       at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
       at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA13*..)
       at javax.crypto.Cipher.doFinal(DashoA13*..)
       at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:452)
       at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:494)
       at org.apache.myfaces.shared_impl.util.StateUtils.decrypt(StateUtils.java:294)
       at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:243)
       at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getSavedState(HtmlResponseStateManager.java:187)
       at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getTreeStructureToRestore(HtmlResponseStateManager.java:151)
       at org.ajax4jsf.application.AjaxStateManager.restoreLogicalViewId(AjaxStateManager.java:598)
       at org.ajax4jsf.application.AjaxStateManager.restoreStateFromSession(AjaxStateManager.java:479)
       at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:427)
       at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:515)
       at com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:316)
       at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:107)
       at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:85)
       at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
       at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:151)
       at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:103)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      


      someone help me?

      Thank's