4 Replies Latest reply on Dec 21, 2010 8:05 AM by benothman

    Reduce Richfaces validation log

    benothman

      Hi,

      I am using JSF1.2 & Richfaces 3.3.3 in my application. I am using ajax validation ( <rich:ajaxValidator>). The problem is when trying to validate inputs it generates a huge log messages. Is this configurable with richfaces? How can I reduce them ?

       

      Thanks in advance.

        • 1. Re: Reduce Richfaces validation log
          nbelaevski

          Hi Nabil,

           

          Please post log snippet containing these messages.

          • 2. Re: Reduce Richfaces validation log
            benothman

            Hi Nick,

            thank you for your response, you find below some examples of validation log messages :

             

            N.B: I run my application under GateIn Portal., so it is a Faces Portlet.

             

            Thanks in advance.

             

             

            Examples without errors :

             

            09:55:23,690 INFO  [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:confirmPassword[severity=(INFO 0), summary=(The two values are identical and accepted), detail=(The two values are identical and accepted)]
            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:captcha-verification[severity=(INFO 0), summary=(The text is correct), detail=(The text is correct)]
            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:email[severity=(INFO 0), summary=(E-mail address well formed!), detail=(E-mail address well formed!)]
            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:password[severity=(INFO 0), summary=(Password value accepted), detail=(Password value accepted)]
            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:username[severity=(INFO 0), summary=(The username is accepted!), detail=(The username is accepted!)]
            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:lastname[severity=(INFO 0), summary=(The introduced value is accepted), detail=(The introduced value is accepted)]
            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:firstname[severity=(INFO 0), summary=(The introduced value is accepted), detail=(The introduced value is accepted)]
            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:zipCode[severity=(INFO 0), summary=(Value accepted!), detail=(Value accepted!)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:confirmPassword[severity=(INFO 0), summary=(The two values are identical and accepted), detail=(The two values are identical and accepted)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:captcha-verification[severity=(INFO 0), summary=(The text is correct), detail=(The text is correct)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:email[severity=(INFO 0), summary=(E-mail address well formed!), detail=(E-mail address well formed!)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:password[severity=(INFO 0), summary=(Password value accepted), detail=(Password value accepted)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:username[severity=(INFO 0), summary=(The username is accepted!), detail=(The username is accepted!)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:lastname[severity=(INFO 0), summary=(The introduced value is accepted), detail=(The introduced value is accepted)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:firstname[severity=(INFO 0), summary=(The introduced value is accepted), detail=(The introduced value is accepted)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:zipCode[severity=(INFO 0), summary=(Value accepted!), detail=(Value accepted!)]

             

             

            Examples with errors:

             

            09:57:41,690 INFO  [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:password[severity=(ERROR 2), summary=(Value is required!), detail=(Value is required!)]

            09:57:41,808 INFO  [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:confirmPassword[severity=(ERROR 2), summary=(Value is required!), detail=(Value is required!)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:captcha-verification[severity=(ERROR 2), summary=(Value is required!), detail=(Value is required!)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:email[severity=(ERROR 2), summary=(Invalid email format!), detail=(Invalid email format!)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:password[severity=(ERROR 2), summary=(Value is required!), detail=(Value is required!)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:username[severity=(ERROR 2), summary=(Value is required!), detail=(Value is required!)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:lastname[severity=(ERROR 2), summary=(Value is required!), detail=(Value is required!)]

            sourceId=pbG38d7ee6f_2d14f4_2d46c9_2d8f56_2d9cd1009cbc34:_viewRoot:register:include:firstname[severity=(INFO 0), summary=(The introduced value is accepted), detail=(The introduced value is accepted)]

            • 3. Re: Reduce Richfaces validation log
              nbelaevski

              You have a number of generated messages (validation & custom) not being rendered. Add rich:message(s) components to the page to render them.

              • 4. Re: Reduce Richfaces validation log
                benothman

                I have already rich:message components in my page for all inputs and all validation messages are displayed correctly.

                 

                These problems occurs even when I test the application without the portal environment but they disappears when I changed the facelet context param "facelets.DEVELOPMENT" and set it to false. The problem still the same under the portal environment.