-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 
Author Message
 Post subject: Validator vs. Spring
PostPosted: Wed May 02, 2012 12:34 am 
Newbie

Joined: Sun Apr 22, 2012 9:06 am
Posts: 10
(sorry for my english)

I've a Pimefaces/Spring/SpringWebflow/Hibernate/HibernateValidator project.
How can I use annotations with HibernateValidator instead Spring.
I've this spring configuration in servlet-context.xml
Code:
   <!-- Hibernate DataSource -->
   <bean id="myDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
      <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
      <property name="url" value="jdbc:mysql://localhost:3306/fill_in_forms?useUnicode=true&amp;autoReconnect=true&amp;characterEncoding=UTF-8"/>
      <property name="username" value="usr"/>
      <property name="password" value="passwd"/>
   </bean>

   <!-- Hibernate Session factory -->
   <bean id="mySessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
      <property name="dataSource" ref="myDataSource" />
      <property name="annotatedClasses">
         <list>
            <value>com.integrity.domain.Request</value>
            <value>com.integrity.domain.ApplicantType</value>
            <value>com.integrity.domain.OperationType</value>
            <value>com.integrity.domain.StartTime</value>
         </list>
      </property>
      
      <property name="hibernateProperties">
         <props>
             <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
            <!-- <prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop> -->
            <prop key="hibernate.show_sql">true</prop>
            <!-- <prop key="hibernate.hbm2ddl.auto">create</prop> -->
         </props>
      </property>
    </bean>


And I've following annotated class:

Code:
package com.integrity.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.FieldMatch;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
/* packages for validateEdit method
import org.springframework.binding.message.MessageBuilder;
import org.springframework.binding.message.MessageContext;
import org.springframework.binding.validation.ValidationContext;
*/

@Entity
@Table(name="request")
@XmlRootElement
//*
@FieldMatch.List({
    @FieldMatch(first = "discount", second = "discoutnReason", message = "discountReason.isEmpty"),
    @FieldMatch(first = "operatoinType", second = "serviceit", message = "serviceid.isEmpty")
})
//*/
public class Request implements Serializable {
    private static final long serialVersionUID = -3828086455549895099L;

    private Long id;
    private String name;
    private String phone;
    private String email;
    private String organization;
    private String subject;
    private String operationType;
    @Transient
    private String operatoinTypeLabel;
    private String serviceId;
    private String homepage;
    private String applicantType;
    @Transient
    private String applicantTypeLabel;
    private String startTime;
    @Transient
    private String startTimeLabel;
    private Boolean discount;
    private String discountReason;
    private String comment;
   
    public static String CONTRACTION_YES = "I";
    public static String CONTRACTION_NO = "N";
    public static String CONTRACTION_TRUE = "true";
    public static String CONTRACTION_FALSE = "false";
    public static String UNIFIED_YES_HU = "Igen";
    public static String UNIFIED_NO_HU = "Nem";
    public static String SERVICE_GROW = "B";
    public static String SERVICE_SWITCH = "L";

    /**
     * @return the id
     */
    @Id
    @GeneratedValue
    @Column(name="ID")
    @XmlAttribute
    public Long getId() {
        return id;
    }
    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }
    /**
     * @return the nev
     */
    @Column(name="name")
    @Length(max = 64)
    @XmlElement
    @NotNull
    @NotEmpty
    public String getName() {
        return name;
    }
    /**
     * @param name the nev to set
     */
    public void setName(String name) {
        this.name = name;
    }
    /**
     * @return the telefonszam
     */
    @Column(name="phone")
    @XmlElement
    @NotNull
    @NotEmpty
    public String getPhone() {
        return phone;
    }
    /**
     * @param phone the telefonszam to set
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }
    /**
     * @return the email
     */
    @Email
    @Column(name="email")
    @XmlElement
    @NotNull
    @NotEmpty
    public String getEmail() {
        return email;
    }
    /**
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }
    /**
     * @return the szervezetnev
     */
    @Column(name="organization")
    @XmlElement
    @NotNull
    @NotEmpty
    public String getOrganization() {
        return organization;
    }
    /**
     * @param szervezetnev the szervezetnev to set
     */
    public void setOrganization(String organization) {
        this.organization = organization;
    }
    /**
     * @return the targy
     */
    @Column(name="subject")
    @XmlElement
    public String getSubject() {
        return subject;
    }
    /**
     * @param subject the targy to set
     */
    public void setSubject(String subject) {
        this.subject = subject;
    }
    /**
     * @return the muveletjelleg
     */
    @Column(name="operation_type")
    @XmlElement
    @NotNull
    @NotEmpty
    public String getOperationType() {
        return operationType;
    }
    /**
     * @param operationType the muveletjelleg to set
     */
    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }
    /**
     * @return the serviceID
     */
    @Column(name="service_id")
    @XmlElement
    public String getServiceId() {
        return serviceId;
    }
    /**
     * @param serviceId the serviceId to set
     */
    public void setServiceId(String service_id) {
        this.serviceId = service_id;
    }
    /**
     * @return the honlap
     */
    @Column(name="homepage")
    @XmlElement
    public String getHomepage() {
        return homepage;
    }
    /**
     * @param homepage the honlap to set
     */
    public void setHomepage(String homepage) {
        this.homepage = homepage;
    }
    /**
     * @return the kerelmezojelleg
     */
    @Column(name="applicant_type")
    @XmlElement
    @NotNull
    @NotEmpty
    public String getApplicantType() {
        return applicantType;
    }
    /**
     * @param applicantType the kerelmezojelleg to set
     */
    public void setApplicantType(String applicantType) {
        this.applicantType = applicantType;
    }
    /**
     * @return the szolgaltatasido
     */
    @Column(name="start_time")
    @XmlElement
    @NotEmpty
    @NotNull
    public String getStartTime() {
        return startTime;
    }
    /**
     * @param startTime the szolgaltatasido to set
     */
    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }
    /**
     * @return the kedvezmeny
     */
    @Column(name="discount")
    @XmlElement
    public Boolean getDiscount() {
        return discount;
    }

    public void setDiscount(Boolean discount) {
        this.discount = discount;
    }

    /**
     * @return the kedvezmenyoka
     */
    @Column(name="discount_reason")
    @XmlElement
    public String getDiscountReason() {
        return discountReason;
    }
    /**
     * @param discountReason the kedvezmenyoka to set
     */
    public void setDiscountReason(String discountReason) {
        this.discountReason = discountReason;
    }
    /**
     * @return the megjegyzes
     */
    @Column(name="comment")
    @XmlElement
    public String getComment() {
        return comment;
    }
    /**
     * @param comment the megjegyzes to set
     */
    public void setComment(String comment) {
        this.comment = comment;
    }
   
    @XmlElement
    @Transient
    public String getOperationTypeLabel() {
        return operatoinTypeLabel;
    }
   
    public void setOperationTypeLabel(String muveletjellegLabel) {
        this.operatoinTypeLabel = muveletjellegLabel;
    }
   
    @XmlElement
    @Transient
    public String getApplicantTypeLabel() {
        return applicantTypeLabel;
    }
   
    public void setApplicantTypeLabel(String applicantTypeLabel) {
        this.applicantTypeLabel = applicantTypeLabel;
    }
   
    @XmlElement
    @Transient
    public String getStartTimeLabel() {
        return startTimeLabel;
    }
   
    public void setStartTimeLabel(String startTimeLabel) {
        this.startTimeLabel = startTimeLabel;
    }
   
    @XmlElement
    @Transient
    public String getDiscountLabel() {
        return ((discount!=null) && discount ? UNIFIED_YES_HU : UNIFIED_NO_HU);
    }

/* NotACleanCode + Annotation isn't called   

    @AssertTrue(message="discountReason.isEmpty")
    public boolean getDiscountReasonEmpty(){
        return ((discount!=null) && discount && discountReason.isEmpty());
    }
   
    public void setDiscountReasonEmpty(boolean value){
       
    }
           
    @AssertTrue(message="serviceid.isEmpty")
    public boolean getServiceIdEmpty(){
       return ((operationType.equals(SERVICE_GROW) || operationType.equals(SERVICE_SWITCH)) && serviceId.isEmpty());
    }
   
    public void setServiceIdEmpty(boolean value){
       
    }
/*/   
/*  NotACleanCode 
    public void validateEdit(ValidationContext validationContext) {
        if ((discount!=null) && discount && discountReason.isEmpty()) {
            MessageContext messageContext = validationContext.getMessageContext();
            messageContext.addMessage(new MessageBuilder().error().code("discountReason.isEmpty").build());
        }
       
        if ((operationType.equals(SERVICE_GROW) || operationType.equals(SERVICE_SWITCH)) && serviceId.isEmpty()) {
            MessageContext messageContext = validationContext.getMessageContext();
            messageContext.addMessage(new MessageBuilder().error().code("serviceid.isEmpty").build());
        }

    }
//*/ 
}


I tired ScriptAssert, too.

Code:
@ScriptAssert.List({
@ScriptAssert(alias="request", lang="javascript", script="(request.serviceId != null) and (request.operationType.equals('L') or request.operationType.equales('B'))", message="{com.integrity.validation.serviceid.empty.message}"),
@ScriptAssert(alias="request", lang="javascript", script="(request.discount == true) and (request.discountReason != null) and !request.discountReason.isEmpty()", message="{com.integrity.validation.discontreason.empty.message}")
})


My problem is: own (like ScriptAssert, too) annotations aren't processed. How can I make annotanion based validation?
How can I expand ValidationMessages_hu_HU.properties with my own annotation based error messages?


Top
 Profile  
 
 Post subject: Re: Validator vs. Spring
PostPosted: Wed May 02, 2012 7:10 am 
Newbie

Joined: Sun Apr 22, 2012 9:06 am
Posts: 10
Used libs are:
Quote:
/home/pzoli/programs/Java/commons-dbcp-1.4/commons-dbcp-1.4-sources.jar
/home/pzoli/programs/Java/commons-pool-1.5.6/commons-pool-1.5.6-sources.jar
/home/pzoli/workspace/webflow-libs/activation-1.1.jar
/home/pzoli/workspace/webflow-libs/antlr-2.7.6.jar
/home/pzoli/workspace/webflow-libs/aopalliance-1.0.jar
/home/pzoli/workspace/webflow-libs/asm-3.1.jar
/home/pzoli/workspace/webflow-libs/aspectjrt-1.6.8.jar
/home/pzoli/workspace/webflow-libs/aspectjweaver-1.6.8.jar
/home/pzoli/workspace/webflow-libs/cglib-2.2.jar
/home/pzoli/workspace/webflow-libs/commons-beanutils-1.8.0.jar
/home/pzoli/workspace/webflow-libs/commons-collections-3.1.jar
/home/pzoli/workspace/webflow-libs/commons-digester-1.8.1.jar
/home/pzoli/workspace/webflow-libs/commons-logging-1.1.1.jar
/home/pzoli/workspace/webflow-libs/dom4j-1.6.1.jar
/home/pzoli/workspace/webflow-libs/hibernate-entitymanager-3.5.0-Final.jar
/home/pzoli/workspace/webflow-libs/hibernate-jpa-2.0-api-1.0.0.Final.jar
/home/pzoli/programs/Java/hibernate-validator-4.2.0.Final/hibernate-validator-4.2.0.Final.jar
/home/pzoli/workspace/webflow-libs/hsqldb-1.8.0.10.jar
/home/pzoli/workspace/webflow-libs/javassist-3.9.0.GA.jar
/home/pzoli/workspace/webflow-libs/jaxb-api-2.1.jar
/home/pzoli/workspace/webflow-libs/jcl-over-slf4j-1.5.10.jar
/home/pzoli/workspace/webflow-libs/joda-time-1.6.jar
/home/pzoli/workspace/webflow-libs/joda-time-jsptags-1.0.2.jar
/home/pzoli/workspace/webflow-libs/jstl-1.2.jar
/home/pzoli/workspace/webflow-libs/jta-1.1.jar
/home/pzoli/workspace/webflow-libs/log4j-1.2.15.jar
/home/pzoli/workspace/webflow-libs/slf4j-api-1.5.10.jar
/home/pzoli/workspace/webflow-libs/slf4j-log4j12-1.5.10.jar
/home/pzoli/workspace/webflow-libs/spring-aop-3.0.5.RELEASE.jar
/home/pzoli/workspace/webflow-libs/spring-asm-3.0.5.RELEASE.jar
/home/pzoli/workspace/webflow-libs/spring-beans-3.0.5.RELEASE.jar
/home/pzoli/workspace/webflow-libs/spring-binding-2.3.0.BUILD-20120110.060659-425.jar
/home/pzoli/workspace/webflow-libs/spring-context-3.0.5.RELEASE.jar
/home/pzoli/workspace/webflow-libs/spring-context-support-3.0.5.RELEASE.jar
/home/pzoli/workspace/webflow-libs/spring-core-3.0.5.RELEASE.jar
/home/pzoli/workspace/webflow-libs/spring-expression-3.0.5.RELEASE.jar
/home/pzoli/workspace/webflow-libs/spring-jdbc-3.0.5.RELEASE.jar
/home/pzoli/workspace/webflow-libs/spring-js-2.3.0.BUILD-SNAPSHOT.jar
/home/pzoli/workspace/webflow-libs/spring-js-resources-2.3.0.BUILD-20120110.060708-425.jar
/home/pzoli/workspace/webflow-libs/spring-orm-3.0.5.RELEASE.jar
/home/pzoli/workspace/webflow-libs/spring-tx-3.0.5.RELEASE.jar
/home/pzoli/workspace/webflow-libs/spring-web-3.0.5.RELEASE.jar
/home/pzoli/workspace/webflow-libs/spring-webflow-2.3.0.BUILD-20120110.060726-425.jar
/home/pzoli/workspace/webflow-libs/spring-webmvc-3.0.5.RELEASE.jar
/home/pzoli/workspace/webflow-libs/stax-api-1.0-2.jar
/home/pzoli/workspace/webflow-libs/tiles-api-2.1.3.jar
/home/pzoli/workspace/webflow-libs/tiles-core-2.1.3.jar
/home/pzoli/workspace/webflow-libs/tiles-jsp-2.1.3.jar
/home/pzoli/workspace/webflow-libs/tiles-servlet-2.1.3.jar
/home/pzoli/programs/Java/commons-dbcp-1.4/commons-dbcp-1.4.jar
/home/pzoli/programs/Java/commons-pool-1.5.6/commons-pool-1.5.6.jar
/home/pzoli/programs/Java/hibernate-distribution-3.3.2.GA/hibernate3.jar
/home/pzoli/programs/Java/mysql-connector-java-5.1.6/mysql-connector-java-5.1.6-bin.jar
/home/pzoli/programs/Java/hibernate-validator-4.2.0.Final/hibernate-validator-annotation-processor-4.2.0.Final.jar
/home/pzoli/workspace/webflow-libs/org.springframework.faces-2.3.0.RELEASE.jar
/home/pzoli/programs/Java/primefaces-themes/cupertino-1.0.4.jar
/home/pzoli/programs/Java/hibernate-annotations-3.4.0.GA/lib/hibernate-commons-annotations.jar
/home/pzoli/programs/Java/hibernate-annotations-3.4.0.GA/hibernate-annotations.jar
/home/pzoli/workspace/webflow-libs/validation-api-1.0.0.GA.jar
/home/pzoli/workspace/webflow-libs/xml-apis-1.0.b2.jar


Top
 Profile  
 
 Post subject: Re: Validator vs. Spring
PostPosted: Wed May 02, 2012 10:07 am 
Newbie

Joined: Sun Apr 22, 2012 9:06 am
Posts: 10
I tried make own annotation.
Code:
package org.hibernate.validator.constraints;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

import org.apache.commons.beanutils.BeanUtils;

import com.integrity.domain.Request;

public class FieldMatchValidator implements ConstraintValidator<FieldMatch, Object> {

    private String firstFieldName;
    private String secondFieldName;

    @Override
    public void initialize(final FieldMatch constraintAnnotation)
    {
        firstFieldName = constraintAnnotation.first();
        secondFieldName = constraintAnnotation.second();
    }

    @Override
    public boolean isValid(final Object value, final ConstraintValidatorContext context)
    {
        try
        {
            final Object firstObj = BeanUtils.getProperty(value, firstFieldName);
            final Object secondObj = BeanUtils.getProperty(value, secondFieldName);
            if (firstObj == null || secondObj == null){
                return false;
            }
            if (firstFieldName.equalsIgnoreCase("operationType")){
              return !secondObj.toString().isEmpty() && (firstObj.equals(Request.SERVICE_SWITCH) || firstObj.equals(Request.SERVICE_GROW)); 
            } else if (firstFieldName.equalsIgnoreCase("discount")) {
              return (!secondObj.toString().isEmpty() && firstObj.toString().equalsIgnoreCase("true"));
            }
        }
        catch (final Exception ignore)
        {
            // ignore
        }
        return true;
    }
   
}


Annotation as interface:

Code:
package org.hibernate.validator.constraints;


import javax.validation.Constraint;
import javax.validation.Payload;

import org.hibernate.validator.constraints.FieldMatchValidator;

import java.lang.annotation.Documented;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.TYPE;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;

@Target({TYPE, ANNOTATION_TYPE})
@Retention(RUNTIME)
@Constraint(validatedBy = FieldMatchValidator.class)
@Documented
public @interface FieldMatch {

    String message() default "{constraints.fieldmatch}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

    String first();

    String second();

    @Target({TYPE, ANNOTATION_TYPE})
    @Retention(RUNTIME)
    @Documented @interface List
    {
        FieldMatch[] value();
    }
   
}


But there is nothing present. Like I do nothing. Why?
I've googled, but no answer is found.


Last edited by pzoli on Thu May 03, 2012 5:15 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Validator vs. Spring
PostPosted: Wed May 02, 2012 11:46 am 
Newbie

Joined: Sun Apr 22, 2012 9:06 am
Posts: 10
Here is my consol log:
Quote:
INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@728edb84: defining beans [org.springframework.web.servlet.config.viewControllerHandlerAdapter,org.springframework.web.servlet.config.viewControllerHandlerMapping,flowExecutor,flowRegistry,org.springframework.faces.model.converter.FacesConversionService#0,org.springframework.webflow.expression.spel.WebFlowSpringELExpressionParser#0,org.springframework.faces.webflow.JsfViewFactoryCreator#0,flowBuilderServices,facesContextListener,org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,jsfResourceRequestHandler,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,org.springframework.faces.webflow.JsfFlowHandlerAdapter#0,org.springframework.webflow.mvc.servlet.FlowHandlerMapping#0,org.springframework.web.servlet.view.UrlBasedViewResolver#0,messageSource,validatorFactory,validator,myDataSource,mySessionFactory,localeBean,myRequestDAO,requestService]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@305e9d7a
INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/home] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Registering flow definition 'ServletContext resource [/WEB-INF/flows/parent-flow.xml]' under id 'parent-flow'
DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Registering flow definition 'ServletContext resource [/WEB-INF/flows/service-request/flow.xml]' under id 'service-request'
DEBUG: org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader - Adding flow execution listener org.springframework.faces.webflow.FlowFacesContextLifecycleListener@3b4d82e1 with criteria *
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Looking for URL mappings in application context: WebApplicationContext for namespace 'Spring MVC Servlet-servlet': startup date [Wed May 02 17:43:43 CEST 2012]; parent: Root WebApplicationContext
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.web.servlet.config.viewControllerHandlerAdapter': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.web.servlet.config.viewControllerHandlerMapping': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'flowExecutor': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'flowRegistry': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.faces.model.converter.FacesConversionService#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.webflow.expression.spel.WebFlowSpringELExpressionParser#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.faces.webflow.JsfViewFactoryCreator#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'flowBuilderServices': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'facesContextListener': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.format.support.FormattingConversionServiceFactoryBean#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.web.servlet.handler.MappedInterceptor#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'jsfResourceRequestHandler': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.faces.webflow.JsfFlowHandlerAdapter#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.webflow.mvc.servlet.FlowHandlerMapping#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'org.springframework.web.servlet.view.UrlBasedViewResolver#0': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'messageSource': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'validatorFactory': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'validator': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'myDataSource': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'mySessionFactory': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'localeBean': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'myRequestDAO': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'requestService': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'servletConfig': no URL paths identified
DEBUG: org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping - Rejected bean name 'applicationEventMulticaster': no URL paths identified
INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/resources/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/javax.faces.resource/**] onto handler 'jsfResourceRequestHandler'
INFO : org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.4.0.GA
INFO : org.hibernate.cfg.Environment - Hibernate 3.3.2.GA
INFO : org.hibernate.cfg.Environment - hibernate.properties not found
INFO : org.hibernate.cfg.Environment - Bytecode provider name : javassist
INFO : org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
INFO : org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.1.0.GA
INFO : org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: com.integrity.domain.Request
INFO : org.hibernate.cfg.annotations.EntityBinder - Bind entity com.integrity.domain.Request on table request
INFO : org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: com.integrity.domain.ApplicantType
INFO : org.hibernate.cfg.annotations.EntityBinder - Bind entity com.integrity.domain.ApplicantType on table applicant_type
INFO : org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: com.integrity.domain.OperationType
INFO : org.hibernate.cfg.annotations.EntityBinder - Bind entity com.integrity.domain.OperationType on table operation_type
INFO : org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: com.integrity.domain.StartTime
INFO : org.hibernate.cfg.annotations.EntityBinder - Bind entity com.integrity.domain.StartTime on table start_time
INFO : org.hibernate.cfg.AnnotationConfiguration - Hibernate Validator not found: ignoring
INFO : org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean - Building new Hibernate SessionFactory
INFO : org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
INFO : org.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
INFO : org.hibernate.cfg.SettingsFactory - RDBMS: MySQL, version: 5.5.22-0ubuntu1
INFO : org.hibernate.cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.6 ( Revision: ${svn.Revision} )
INFO : org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect
INFO : org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
INFO : org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
INFO : org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
INFO : org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
INFO : org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
INFO : org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
INFO : org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
INFO : org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
INFO : org.hibernate.cfg.SettingsFactory - Connection release mode: auto
INFO : org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
INFO : org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
INFO : org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
INFO : org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
INFO : org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled
INFO : org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
INFO : org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
INFO : org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
INFO : org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled
INFO : org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
INFO : org.hibernate.cfg.SettingsFactory - Query cache: disabled
INFO : org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
INFO : org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
INFO : org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
INFO : org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout
INFO : org.hibernate.cfg.SettingsFactory - Statistics: disabled
INFO : org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
INFO : org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
INFO : org.hibernate.cfg.SettingsFactory - Named query checking : enabled
INFO : org.hibernate.impl.SessionFactoryImpl - building session factory
INFO : org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
DEBUG: org.springframework.web.context.support.XmlWebApplicationContext - Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@c1a7553]
DEBUG: org.springframework.web.servlet.DispatcherServlet - Unable to locate MultipartResolver with name 'multipartResolver': no multipart request handling provided
DEBUG: org.springframework.web.servlet.DispatcherServlet - Unable to locate LocaleResolver with name 'localeResolver': using default [org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver@10bb6d85]
DEBUG: org.springframework.web.servlet.DispatcherServlet - Unable to locate ThemeResolver with name 'themeResolver': using default [org.springframework.web.servlet.theme.FixedThemeResolver@4dd6c275]
DEBUG: org.springframework.web.servlet.DispatcherServlet - No HandlerExceptionResolvers found in servlet 'Spring MVC Servlet': using default
DEBUG: org.springframework.web.servlet.DispatcherServlet - Unable to locate RequestToViewNameTranslator with name 'viewNameTranslator': using default [org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator@3a4346cd]
DEBUG: org.springframework.web.servlet.DispatcherServlet - Published WebApplicationContext of servlet 'Spring MVC Servlet' as ServletContext attribute with name [org.springframework.web.servlet.FrameworkServlet.CONTEXT.Spring MVC Servlet]
INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'Spring MVC Servlet': initialization completed in 1395 ms
DEBUG: org.springframework.web.servlet.DispatcherServlet - Servlet 'Spring MVC Servlet' configured successfully
2012.05.02. 17:43:45 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
2012.05.02. 17:43:45 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
2012.05.02. 17:43:45 org.apache.catalina.startup.Catalina start
INFO: Server startup in 4124 ms
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/service-request]
DEBUG: org.springframework.webflow.mvc.servlet.FlowHandlerMapping - Mapping request with URI '/ValidationDemo/app/service-request' to flow with id 'service-request'
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/service-request] is: -1
DEBUG: org.springframework.webflow.executor.FlowExecutorImpl - Launching new execution of flow 'service-request' with input null
DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Getting FlowDefinition with id 'service-request'
DEBUG: org.springframework.webflow.engine.builder.DefaultFlowHolder - Assembling the flow for the first time
INFO : org.springframework.web.context.support.GenericWebApplicationContext - Refreshing Flow ApplicationContext [service-request]: startup date [Wed May 02 17:44:09 CEST 2012]; parent: WebApplicationContext for namespace 'Spring MVC Servlet-servlet'
DEBUG: org.springframework.web.context.support.GenericWebApplicationContext - Bean factory for Flow ApplicationContext [service-request]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6668a2cc: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@728edb84
DEBUG: org.springframework.web.context.support.GenericWebApplicationContext - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@613cc996]
DEBUG: org.springframework.web.context.support.GenericWebApplicationContext - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@5dd6c8b9]
INFO : org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6668a2cc: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@728edb84
DEBUG: org.springframework.web.context.support.GenericWebApplicationContext - Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@401419d0]
DEBUG: org.springframework.webflow.engine.impl.FlowExecutionImplFactory - Creating new execution of 'service-request'
DEBUG: org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader - Loaded [1] of possible 1 listeners for this execution request for flow 'service-request', the listeners to attach are list[org.springframework.faces.webflow.FlowFacesContextLifecycleListener@3b4d82e1]
DEBUG: org.springframework.webflow.engine.impl.FlowExecutionImpl - Starting in org.springframework.webflow.mvc.servlet.MvcExternalContext@4e1f52a with input null
DEBUG: org.springframework.webflow.engine.Flow - Creating [FlowVariable@4079ca2e name = 'serviceRequest', valueFactory = [BeanFactoryVariableValueFactory@7bc8b313 type = Request]]
DEBUG: org.springframework.webflow.engine.Flow - Creating [FlowVariable@7c70bdc6 name = 'languageBean', valueFactory = [BeanFactoryVariableValueFactory@4dbb51fd type = LanguageBean]]
DEBUG: org.springframework.webflow.engine.ViewState - Entering state 'language' of flow 'service-request'
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Putting conversation attribute 'name' with value service-request
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Putting conversation attribute 'caption' with value null
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Putting conversation attribute 'description' with value null
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Putting conversation attribute 'flowExecutionSnapshotGroup' with value org.springframework.webflow.execution.repository.impl.SimpleFlowExecutionSnapshotGroup@2aa89e44
DEBUG: org.springframework.webflow.engine.impl.FlowExecutionImpl - Assigned key e1s1
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Locking conversation 1
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Putting flow execution '[FlowExecutionImpl@361b8504 flow = 'service-request', flowSessions = list[[FlowSessionImpl@48b9e55c flow = 'service-request', state = 'language', scope = map['languageBean' -> com.integrity.domain.LanguageBean@24812051, 'serviceRequest' -> com.integrity.domain.Request@1970b890, 'viewScope' -> map[[empty]]]]]]' into repository
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Adding snapshot to group with id 1
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Putting conversation attribute 'scope' with value map['flashScope' -> map['messagesMemento' -> map[[null] -> list[[empty]]]]]
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Unlocking conversation 1
DEBUG: org.springframework.webflow.mvc.servlet.FlowHandlerAdapter - Sending flow execution redirect to '/ValidationDemo/app/service-request?execution=e1s1'
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/service-request]
DEBUG: org.springframework.webflow.mvc.servlet.FlowHandlerMapping - Mapping request with URI '/ValidationDemo/app/service-request' to flow with id 'service-request'
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/service-request] is: -1
DEBUG: org.springframework.webflow.executor.FlowExecutorImpl - Resuming flow execution with key 'e1s1
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Locking conversation 1
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Getting flow execution with key 'e1s1'
DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Getting FlowDefinition with id 'service-request'
DEBUG: org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader - Loaded [1] of possible 1 listeners for this execution request for flow 'service-request', the listeners to attach are list[org.springframework.faces.webflow.FlowFacesContextLifecycleListener@3b4d82e1]
DEBUG: org.springframework.webflow.engine.impl.FlowExecutionImpl - Resuming in org.springframework.webflow.mvc.servlet.MvcExternalContext@6ad77ed3
DEBUG: org.springframework.webflow.engine.Flow - Restoring [FlowVariable@4079ca2e name = 'serviceRequest', valueFactory = [BeanFactoryVariableValueFactory@7bc8b313 type = Request]]
DEBUG: org.springframework.webflow.engine.Flow - Restoring [FlowVariable@7c70bdc6 name = 'languageBean', valueFactory = [BeanFactoryVariableValueFactory@4dbb51fd type = LanguageBean]]
DEBUG: org.springframework.webflow.engine.ViewState - Rendering + [JSFView = '/WEB-INF/flows/service-request/language.xhtml']
DEBUG: org.springframework.webflow.engine.ViewState - Flash scope = map[[empty]]
DEBUG: org.springframework.webflow.engine.ViewState - Messages = [DefaultMessageContext@7e9a288b sourceMessages = map[[null] -> list[[empty]]]]
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Putting flow execution '[FlowExecutionImpl@14621bd7 flow = 'service-request', flowSessions = list[[FlowSessionImpl@3511cab5 flow = 'service-request', state = 'language', scope = map['languageBean' -> com.integrity.domain.LanguageBean@23134c4b, 'serviceRequest' -> com.integrity.domain.Request@47f5e1ea, 'viewScope' -> map['flowSerializedViewState' -> [FlowSerializedView@5fc2ee8e viewId = '/WEB-INF/flows/service-request/language.xhtml']]]]]]' into repository
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Adding snapshot to group with id 1
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Putting conversation attribute 'scope' with value map['flashScope' -> map['messagesMemento' -> map[[empty]]]]
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Unlocking conversation 1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/theme.css]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/primefaces.js]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/jquery/jquery.js]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/primefaces.js] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/primefaces.css]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/primefaces.js] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/primefaces.css] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/primefaces.css] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/jquery/jquery.js] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/theme.css] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/jquery/jquery.js] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/theme.css] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/primefaces.js] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/jquery/jquery.js] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/primefaces.css] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/theme.css] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/primefaces.js] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/primefaces.css] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/jquery/jquery.js] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/theme.css] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-icons_3d80b3_256x240.png]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-icons_3d80b3_256x240.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png] is: -1
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-icons_3d80b3_256x240.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-icons_3d80b3_256x240.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-icons_3d80b3_256x240.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_50_3baae3_1x400.png]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-bg_glass_50_3baae3_1x400.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-bg_glass_50_3baae3_1x400.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-bg_glass_50_3baae3_1x400.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_50_3baae3_1x400.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing POST request for [/ValidationDemo/app/service-request]
DEBUG: org.springframework.webflow.mvc.servlet.FlowHandlerMapping - Mapping request with URI '/ValidationDemo/app/service-request' to flow with id 'service-request'
DEBUG: org.springframework.webflow.executor.FlowExecutorImpl - Resuming flow execution with key 'e1s1
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Locking conversation 1
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Getting flow execution with key 'e1s1'
DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Getting FlowDefinition with id 'service-request'
DEBUG: org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader - Loaded [1] of possible 1 listeners for this execution request for flow 'service-request', the listeners to attach are list[org.springframework.faces.webflow.FlowFacesContextLifecycleListener@3b4d82e1]
DEBUG: org.springframework.webflow.engine.impl.FlowExecutionImpl - Resuming in org.springframework.webflow.mvc.servlet.MvcExternalContext@4e42751f
DEBUG: org.springframework.webflow.engine.Flow - Restoring [FlowVariable@4079ca2e name = 'serviceRequest', valueFactory = [BeanFactoryVariableValueFactory@7bc8b313 type = Request]]
DEBUG: org.springframework.webflow.engine.Flow - Restoring [FlowVariable@7c70bdc6 name = 'languageBean', valueFactory = [BeanFactoryVariableValueFactory@4dbb51fd type = LanguageBean]]
DEBUG: org.springframework.webflow.engine.ViewState - Event 'next' returned from view [JSFView = '/WEB-INF/flows/service-request/language.xhtml']
DEBUG: org.springframework.webflow.execution.ActionExecutor - Executing [EvaluateAction@5dd22889 expression = localeBean.setLanguage(languageBean.getLanguage()), resultExpression = [null]]
DEBUG: org.springframework.webflow.execution.AnnotatedAction - Putting action execution attributes map[[empty]]
DEBUG: org.springframework.webflow.execution.AnnotatedAction - Clearing action execution attributes map[[empty]]


Top
 Profile  
 
 Post subject: Re: Validator vs. Spring
PostPosted: Wed May 02, 2012 11:47 am 
Newbie

Joined: Sun Apr 22, 2012 9:06 am
Posts: 10
Quote:
DEBUG: org.springframework.webflow.execution.ActionExecutor - Finished executing [EvaluateAction@5dd22889 expression = localeBean.setLanguage(languageBean.getLanguage()), resultExpression = [null]]; result = success
DEBUG: org.springframework.webflow.engine.Transition - Executing [Transition@3107eafc on = next, to = edit]
DEBUG: org.springframework.webflow.engine.Transition - Exiting state 'language'
DEBUG: org.springframework.webflow.engine.ViewState - Entering state 'edit' of flow 'service-request'
DEBUG: org.springframework.webflow.engine.impl.FlowExecutionImpl - Assigned key e1s2
DEBUG: org.springframework.webflow.engine.Transition - Completed transition execution. As a result, the new state is 'edit' in flow 'service-request'
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Putting flow execution '[FlowExecutionImpl@c7cb61 flow = 'service-request', flowSessions = list[[FlowSessionImpl@135ab821 flow = 'service-request', state = 'edit', scope = map['languageBean' -> com.integrity.domain.LanguageBean@1fb93cf8, 'serviceRequest' -> com.integrity.domain.Request@63bc19e, 'viewScope' -> map[[empty]]]]]]' into repository
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Adding snapshot to group with id 2
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Putting conversation attribute 'scope' with value map['flashScope' -> map['messagesMemento' -> map[[null] -> list[[empty]]], 'flowRenderResponse' -> true]]
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Unlocking conversation 1
DEBUG: org.springframework.webflow.mvc.servlet.FlowHandlerAdapter - Sending flow execution redirect to '/ValidationDemo/app/service-request?execution=e1s2'
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/service-request]
DEBUG: org.springframework.webflow.mvc.servlet.FlowHandlerMapping - Mapping request with URI '/ValidationDemo/app/service-request' to flow with id 'service-request'
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/service-request] is: -1
DEBUG: org.springframework.webflow.executor.FlowExecutorImpl - Resuming flow execution with key 'e1s2
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Locking conversation 1
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Getting flow execution with key 'e1s2'
DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Getting FlowDefinition with id 'service-request'
DEBUG: org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader - Loaded [1] of possible 1 listeners for this execution request for flow 'service-request', the listeners to attach are list[org.springframework.faces.webflow.FlowFacesContextLifecycleListener@3b4d82e1]
DEBUG: org.springframework.webflow.engine.impl.FlowExecutionImpl - Resuming in org.springframework.webflow.mvc.servlet.MvcExternalContext@659297ab
DEBUG: org.springframework.webflow.engine.Flow - Restoring [FlowVariable@4079ca2e name = 'serviceRequest', valueFactory = [BeanFactoryVariableValueFactory@7bc8b313 type = Request]]
DEBUG: org.springframework.webflow.engine.Flow - Restoring [FlowVariable@7c70bdc6 name = 'languageBean', valueFactory = [BeanFactoryVariableValueFactory@4dbb51fd type = LanguageBean]]
DEBUG: org.springframework.webflow.engine.ViewState - Rendering + [JSFView = '/WEB-INF/flows/service-request/edit.xhtml']
DEBUG: org.springframework.webflow.engine.ViewState - Flash scope = map['flowRenderResponse' -> true]
DEBUG: org.springframework.webflow.engine.ViewState - Messages = [DefaultMessageContext@40ba3671 sourceMessages = map[[null] -> list[[empty]]]]
Hibernate: select operationt0_.id as id2_, operationt0_.name as name2_ from operation_type operationt0_ order by operationt0_.name
Hibernate: select applicantt0_.id as id1_, applicantt0_.name as name1_ from applicant_type applicantt0_ order by applicantt0_.name
Hibernate: select starttime0_.id as id3_, starttime0_.name as name3_ from start_time starttime0_ order by starttime0_.name
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Putting flow execution '[FlowExecutionImpl@438e9e9 flow = 'service-request', flowSessions = list[[FlowSessionImpl@3484c229 flow = 'service-request', state = 'edit', scope = map['languageBean' -> com.integrity.domain.LanguageBean@77e72cae, 'serviceRequest' -> com.integrity.domain.Request@6a269101, 'viewScope' -> map['flowSerializedViewState' -> [FlowSerializedView@9fa0f19 viewId = '/WEB-INF/flows/service-request/edit.xhtml']]]]]]' into repository
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Adding snapshot to group with id 2
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Putting conversation attribute 'scope' with value map['flashScope' -> map['messagesMemento' -> map[[empty]]]]
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Unlocking conversation 1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/theme.css]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/jquery/jquery.js]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/primefaces.css]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/primefaces.js]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/theme.css] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/primefaces.css] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/jquery/jquery.js] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/primefaces.js] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/primefaces.css] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/jquery/jquery.js] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/theme.css] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/jquery/jquery.js] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/primefaces.js] are {}
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/jquery/jquery.js] is: -1
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/primefaces.js] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/primefaces.css] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/primefaces.js] is: -1
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/theme.css] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/primefaces.css] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/theme.css] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-icons_72a7cf_256x240.png]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-icons_72a7cf_256x240.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-icons_72a7cf_256x240.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-icons_72a7cf_256x240.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-icons_72a7cf_256x240.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-icons_3d80b3_256x240.png]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-icons_3d80b3_256x240.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-icons_3d80b3_256x240.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-icons_3d80b3_256x240.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-icons_3d80b3_256x240.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-icons_2694e8_256x240.png]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-icons_2694e8_256x240.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-icons_2694e8_256x240.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-icons_2694e8_256x240.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-icons_2694e8_256x240.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing POST request for [/ValidationDemo/app/service-request]
DEBUG: org.springframework.webflow.mvc.servlet.FlowHandlerMapping - Mapping request with URI '/ValidationDemo/app/service-request' to flow with id 'service-request'
DEBUG: org.springframework.webflow.executor.FlowExecutorImpl - Resuming flow execution with key 'e1s2
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Locking conversation 1
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Getting flow execution with key 'e1s2'
DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Getting FlowDefinition with id 'service-request'
DEBUG: org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader - Loaded [1] of possible 1 listeners for this execution request for flow 'service-request', the listeners to attach are list[org.springframework.faces.webflow.FlowFacesContextLifecycleListener@3b4d82e1]
DEBUG: org.springframework.webflow.engine.impl.FlowExecutionImpl - Resuming in org.springframework.webflow.mvc.servlet.MvcExternalContext@4332b08d
DEBUG: org.springframework.webflow.engine.Flow - Restoring [FlowVariable@4079ca2e name = 'serviceRequest', valueFactory = [BeanFactoryVariableValueFactory@7bc8b313 type = Request]]
DEBUG: org.springframework.webflow.engine.Flow - Restoring [FlowVariable@7c70bdc6 name = 'languageBean', valueFactory = [BeanFactoryVariableValueFactory@4dbb51fd type = LanguageBean]]
Hibernate: select operationt0_.id as id2_, operationt0_.name as name2_ from operation_type operationt0_ order by operationt0_.name
Hibernate: select operationt0_.id as id2_, operationt0_.name as name2_ from operation_type operationt0_ order by operationt0_.name
Hibernate: select applicantt0_.id as id1_, applicantt0_.name as name1_ from applicant_type applicantt0_ order by applicantt0_.name
Hibernate: select applicantt0_.id as id1_, applicantt0_.name as name1_ from applicant_type applicantt0_ order by applicantt0_.name
Hibernate: select starttime0_.id as id3_, starttime0_.name as name3_ from start_time starttime0_ order by starttime0_.name
Hibernate: select starttime0_.id as id3_, starttime0_.name as name3_ from start_time starttime0_ order by starttime0_.name
DEBUG: org.springframework.webflow.engine.ViewState - Event 'next' returned from view [JSFView = '/WEB-INF/flows/service-request/edit.xhtml']
DEBUG: org.springframework.webflow.execution.ActionExecutor - Executing [EvaluateAction@160d227f expression = myRequestDAO.updateTransients(serviceRequest), resultExpression = [null]]
DEBUG: org.springframework.webflow.execution.AnnotatedAction - Putting action execution attributes map[[empty]]
Hibernate: select applicantt0_.id as id1_, applicantt0_.name as name1_ from applicant_type applicantt0_ where applicantt0_.id='V'
Hibernate: select operationt0_.id as id2_, operationt0_.name as name2_ from operation_type operationt0_ where operationt0_.id='L'
Hibernate: select starttime0_.id as id3_, starttime0_.name as name3_ from start_time starttime0_ where starttime0_.id='48HR'
DEBUG: org.springframework.webflow.execution.AnnotatedAction - Clearing action execution attributes map[[empty]]
DEBUG: org.springframework.webflow.execution.ActionExecutor - Finished executing [EvaluateAction@160d227f expression = myRequestDAO.updateTransients(serviceRequest), resultExpression = [null]]; result = success
DEBUG: org.springframework.webflow.engine.Transition - Executing [Transition@575b2f17 on = next, to = review]
DEBUG: org.springframework.webflow.engine.Transition - Exiting state 'edit'
DEBUG: org.springframework.webflow.engine.ViewState - Entering state 'review' of flow 'service-request'
DEBUG: org.springframework.webflow.engine.impl.FlowExecutionImpl - Assigned key e1s3
DEBUG: org.springframework.webflow.engine.Transition - Completed transition execution. As a result, the new state is 'review' in flow 'service-request'
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Putting flow execution '[FlowExecutionImpl@2370bbcf flow = 'service-request', flowSessions = list[[FlowSessionImpl@5b611c24 flow = 'service-request', state = 'review', scope = map['languageBean' -> com.integrity.domain.LanguageBean@429d8ea9, 'serviceRequest' -> com.integrity.domain.Request@608c3b76, 'viewScope' -> map[[empty]]]]]]' into repository
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Adding snapshot to group with id 3
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Putting conversation attribute 'scope' with value map['flashScope' -> map['messagesMemento' -> map[[null] -> list[[empty]]], 'flowRenderResponse' -> true]]
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Unlocking conversation 1
DEBUG: org.springframework.webflow.mvc.servlet.FlowHandlerAdapter - Sending flow execution redirect to '/ValidationDemo/app/service-request?execution=e1s3'
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/service-request]
DEBUG: org.springframework.webflow.mvc.servlet.FlowHandlerMapping - Mapping request with URI '/ValidationDemo/app/service-request' to flow with id 'service-request'
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/service-request] is: -1
DEBUG: org.springframework.webflow.executor.FlowExecutorImpl - Resuming flow execution with key 'e1s3
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Locking conversation 1
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Getting flow execution with key 'e1s3'
DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Getting FlowDefinition with id 'service-request'
DEBUG: org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader - Loaded [1] of possible 1 listeners for this execution request for flow 'service-request', the listeners to attach are list[org.springframework.faces.webflow.FlowFacesContextLifecycleListener@3b4d82e1]
DEBUG: org.springframework.webflow.engine.impl.FlowExecutionImpl - Resuming in org.springframework.webflow.mvc.servlet.MvcExternalContext@4977e3d4
DEBUG: org.springframework.webflow.engine.Flow - Restoring [FlowVariable@4079ca2e name = 'serviceRequest', valueFactory = [BeanFactoryVariableValueFactory@7bc8b313 type = Request]]
DEBUG: org.springframework.webflow.engine.Flow - Restoring [FlowVariable@7c70bdc6 name = 'languageBean', valueFactory = [BeanFactoryVariableValueFactory@4dbb51fd type = LanguageBean]]
DEBUG: org.springframework.webflow.engine.ViewState - Rendering + [JSFView = '/WEB-INF/flows/service-request/review.xhtml']
DEBUG: org.springframework.webflow.engine.ViewState - Flash scope = map['flowRenderResponse' -> true]
DEBUG: org.springframework.webflow.engine.ViewState - Messages = [DefaultMessageContext@2bb57fd1 sourceMessages = map[[null] -> list[[empty]]]]
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Putting flow execution '[FlowExecutionImpl@77700f3d flow = 'service-request', flowSessions = list[[FlowSessionImpl@5df8ab0d flow = 'service-request', state = 'review', scope = map['languageBean' -> com.integrity.domain.LanguageBean@70a612ad, 'serviceRequest' -> com.integrity.domain.Request@271455a2, 'viewScope' -> map['flowSerializedViewState' -> [FlowSerializedView@280212b9 viewId = '/WEB-INF/flows/service-request/review.xhtml']]]]]]' into repository
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Adding snapshot to group with id 3
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Putting conversation attribute 'scope' with value map['flashScope' -> map['messagesMemento' -> map[[empty]]]]
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Unlocking conversation 1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/primefaces.css]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/primefaces.js]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/theme.css]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/primefaces.css] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/primefaces.js] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/jquery/jquery.js]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/theme.css] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/primefaces.css] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/primefaces.js] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/primefaces.css] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/primefaces.js] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/jquery/jquery.js] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/primefaces.js] is: -1
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/jquery/jquery.js] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/jquery/jquery.js] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/jquery/jquery.js] is: -1
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/theme.css] are {}
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/primefaces.css] is: -1
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/theme.css] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/theme.css] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_80_d7ebf9_1x400.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_100_e4f1fb_1x400.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_50_3baae3_1x400.png]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-bg_glass_50_3baae3_1x400.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-bg_glass_50_3baae3_1x400.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-bg_glass_50_3baae3_1x400.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_glass_50_3baae3_1x400.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing POST request for [/ValidationDemo/app/service-request]
DEBUG: org.springframework.webflow.mvc.servlet.FlowHandlerMapping - Mapping request with URI '/ValidationDemo/app/service-request' to flow with id 'service-request'
DEBUG: org.springframework.webflow.executor.FlowExecutorImpl - Resuming flow execution with key 'e1s3
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Locking conversation 1
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Getting flow execution with key 'e1s3'
DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Getting FlowDefinition with id 'service-request'
DEBUG: org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader - Loaded [1] of possible 1 listeners for this execution request for flow 'service-request', the listeners to attach are list[org.springframework.faces.webflow.FlowFacesContextLifecycleListener@3b4d82e1]
DEBUG: org.springframework.webflow.engine.impl.FlowExecutionImpl - Resuming in org.springframework.webflow.mvc.servlet.MvcExternalContext@19b09c52
DEBUG: org.springframework.webflow.engine.Flow - Restoring [FlowVariable@4079ca2e name = 'serviceRequest', valueFactory = [BeanFactoryVariableValueFactory@7bc8b313 type = Request]]
DEBUG: org.springframework.webflow.engine.Flow - Restoring [FlowVariable@7c70bdc6 name = 'languageBean', valueFactory = [BeanFactoryVariableValueFactory@4dbb51fd type = LanguageBean]]
DEBUG: org.springframework.webflow.engine.ViewState - Event 'exit' returned from view [JSFView = '/WEB-INF/flows/service-request/review.xhtml']
DEBUG: org.springframework.webflow.engine.Transition - Executing [Transition@eee2024 on = exit, to = end]
DEBUG: org.springframework.webflow.engine.Transition - Exiting state 'review'
DEBUG: org.springframework.webflow.engine.EndState - Entering state 'end' of flow 'service-request'
DEBUG: org.springframework.webflow.execution.ActionExecutor - Executing org.springframework.webflow.action.ViewFactoryActionAdapter@490b8a8c
DEBUG: org.springframework.webflow.execution.ActionExecutor - Executing org.springframework.webflow.action.ExternalRedirectAction@54dfd702
DEBUG: org.springframework.webflow.execution.ActionExecutor - Finished executing org.springframework.webflow.action.ExternalRedirectAction@54dfd702; result = success
DEBUG: org.springframework.webflow.execution.ActionExecutor - Finished executing org.springframework.webflow.action.ViewFactoryActionAdapter@490b8a8c; result = success
DEBUG: org.springframework.webflow.engine.Transition - Completed transition execution. As a result, the flow execution has ended
DEBUG: org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository - Removing flow execution '[Ended execution of 'service-request']' from repository
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Ending conversation 1
DEBUG: org.springframework.webflow.conversation.impl.SessionBindingConversationManager - Unlocking conversation 1
DEBUG: org.springframework.webflow.mvc.servlet.FlowHandlerAdapter - Sending external redirect to 'servletRelative:/home'
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/home]
DEBUG: org.springframework.webflow.mvc.servlet.FlowHandlerMapping - No flow mapping found for request with URI '/ValidationDemo/app/home'
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/home] to HandlerExecutionChain with handler [org.springframework.web.servlet.mvc.ParameterizableViewController@339cefd6] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/home] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Rendering view [org.springframework.faces.mvc.JsfView: name 'home'; URL [/WEB-INF/views/home.xhtml]] in DispatcherServlet with name 'Spring MVC Servlet'
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/primefaces.js]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/theme.css]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/primefaces.css]
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/jquery/jquery.js]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/primefaces.js] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/primefaces.css] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/jquery/jquery.js] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/theme.css] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/primefaces.css] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/primefaces.js] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/primefaces.css] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/jquery/jquery.js] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/theme.css] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/jquery/jquery.js] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/primefaces.css] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/jquery/jquery.js] is: -1
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/primefaces.js] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/theme.css] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/primefaces.js] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/theme.css] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'Spring MVC Servlet' processing GET request for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Matching patterns for request [/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] are [/javax.faces.resource/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - URI Template variables for request [/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapping [/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] to HandlerExecutionChain with handler [org.springframework.faces.webflow.JsfResourceRequestHandler@618c5880] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/ValidationDemo/app/javax.faces.resource/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png] is: -1
DEBUG: org.springframework.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'Spring MVC Servlet': assuming HandlerAdapter completed request handling
DEBUG: org.springframework.web.servlet.DispatcherServlet - Successfully completed request


Top
 Profile  
 
 Post subject: Re: Validator vs. Spring
PostPosted: Wed May 02, 2012 2:26 pm 
Newbie

Joined: Sun Apr 22, 2012 9:06 am
Posts: 10
So, I made a modification in spring servlet-context.xml:
Code:
...
<beans>
...   
    <bean id="validatorFactory" class="javax.validation.Validation"
        factory-method="buildDefaultValidatorFactory" />

    <bean id="validator" factory-bean="validatorFactory"
        factory-method="getValidator" />
       
   <!-- Hibernate DataSource -->
   <bean id="myDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
      <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
      <property name="url" value="jdbc:mysql://localhost:3306/fill_in_forms?useUnicode=true&amp;autoReconnect=true&amp;characterEncoding=UTF-8"/>
      <property name="username" value="usr"/>
      <property name="password" value="passwd"/>
   </bean>
   
   <!-- Hibernate Session factory -->
   <bean id="mySessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
      <property name="dataSource" ref="myDataSource" />
      <property name="annotatedClasses">
         <list>
            <value>com.integrity.domain.Request</value>
            <value>com.integrity.domain.ApplicantType</value>
            <value>com.integrity.domain.OperationType</value>
            <value>com.integrity.domain.StartTime</value>
         </list>
      </property>
      
      <property name="hibernateProperties">
         <props>
             <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
            <!-- <prop key="hibernate.dialect">org.hibernate.dialect.HSQLDialect</prop> -->
            <prop key="hibernate.show_sql">true</prop>
            <!-- <prop key="hibernate.hbm2ddl.auto">create</prop> -->
         </props>
      </property>
        </bean>

   <bean id="myRequestDAO" class="com.integrity.dao.RequestDAOImpl">
      <property name="sessionFactory" ref="mySessionFactory"/>
      <property name="myValidator" ref="validator"/>
   </bean>
   
   <bean id="requestService" class="com.integrity.service.RequestServiceImpl">
      <property name="requestDAO" ref="myRequestDAO" />      
   </bean>

</beans>

And I made a modification in RequestDAOImpl.java
Code:

package com.integrity.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import javax.validation.ConstraintViolation;
import javax.validation.Validator;

import org.apache.log4j.Logger;
import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;

import com.integrity.domain.ApplicantType;
import com.integrity.domain.OperationType;
import com.integrity.domain.Request;
import com.integrity.domain.StartTime;

public class RequestDAOImpl implements RequestDAO {

    /*
     * HibernateTemplate for SessionFactory creation
     *
     */
    private HibernateTemplate hibernateTemplate;
     
    private Validator validator;
    /*
     * Logger
     */
    private static Logger log = Logger.getRootLogger();
   
    /*
     * Setter called from spring config dispatche-servlet.xml
     *
     */
    public void setSessionFactory(SessionFactory sessionFactory) {
        this.hibernateTemplate = new HibernateTemplate(sessionFactory);
    }

    public void setMyValidator(Validator validator) {
        this.validator = validator;
    }
    /**
     * @return HibernateTemplate
     *           
     */
    @Override
    public HibernateTemplate getHibernateTemplate() {
        return hibernateTemplate;
    }

    /*
     * Set transient properties
     *
     */
    public void updateTransients(Request request){
        List<ApplicantType> applicantTypeList = getApplicantTypeList(request.getApplicantType());
        if (applicantTypeList.size()==1){
            request.setApplicantTypeLabel(applicantTypeList.get(0).getName());
        } else {
            log.error("No applicantType found with id("+request.getApplicantType()+").");
        }

        List<OperationType> operationTypeList = getOperationTypeList(request.getOperationType());
        if (operationTypeList.size()==1){
            request.setOperationTypeLabel(operationTypeList.get(0).getName());
        } else {
            log.error("No operationType found with id("+request.getOperationType()+").");

        }

        List<StartTime> startTimeList = getStartTimeList(request.getStartTime());
        if (startTimeList.size()==1){
            request.setStartTimeLabel(startTimeList.get(0).getName());
        } else {
            log.error("No startTime found with id("+request.getStartTime()+").");
        }
    }

    /*
     * Request persistence: save or update
     *
     */
    @Override
    public void saveRequest(Request request) {
        //updateTransients(request);
        Set<ConstraintViolation<Request>> constraintViolations = validator.validate(request);
        //validator.validate(request);
        hibernateTemplate.saveOrUpdate(request);
    }

    /*
     * Request persistence: find and list
     *
     */
    @Override
    @SuppressWarnings("unchecked")
    public List<Request> getRequestList(Integer id) {
        return hibernateTemplate.find("from ServiceRequest"+(id!=null?" where id='"+id.toString()+"'":""));
    }


    /*
     * ApplicantType persistence: find and list
     *
     */
    @Override
    public List<ApplicantType> getApplicantTypeList(String id) {
        // TODO Auto-generated method stub
        return hibernateTemplate.find("from ApplicantType"+(id!=null?" where id='"+id+"'":""));
    }

    /*
     * ApplicantType persistence: find and list
     *
     */
    @Override
    public Map<String,String> getApplicantTypes() {
        // TODO Auto-generated method stub
        List<ApplicantType> list = hibernateTemplate.find("from ApplicantType order by name");
        Map<String,String> map = new HashMap<String,String>();
        for (ApplicantType applicantType : list) {
            map.put(applicantType.getName(), applicantType.getId());
        }
        return map;
    }

    /*
     * StartTime persistence: find and list
     *
     */
    @Override
    public List<StartTime> getStartTimeList(String id) {
        // TODO Auto-generated method stub
        return hibernateTemplate.find("from StartTime"+(id!=null?" where id='"+id+"'":""));
    }

    /*
     * ApplicantType persistence: find and list
     *
     */
    @Override
    public Map<String,String> getStartTimes() {
        // TODO Auto-generated method stub
        List<StartTime> list = hibernateTemplate.find("from StartTime order by name");
        Map<String,String> map = new HashMap<String,String>();
        for (StartTime startTime : list) {
            map.put(startTime.getName(), startTime.getId());
        }
        return map;
    }

    /*
     * OperationType persistence: find and list
     *
     */
    @Override
    public List<OperationType> getOperationTypeList(String id) {
        return hibernateTemplate.find("from OperationType"+(id!=null?" where id='"+id+"'":""));
    }

    /*
     * OperationType persistence: find and list
     *
     */
    @Override
    public Map<String,String> getOperationTypes() {
        // TODO Auto-generated method stub
        List<OperationType> list = hibernateTemplate.find("from OperationType order by name");
        Map<String,String> map = new HashMap<String,String>();
        for (OperationType operationType : list) {
            map.put(operationType.getName(),operationType.getId());
        }
        return map;
    }
}

After the modification the validatior noticed my annotations.
Code:
    public void saveRequest(Request request) {
        Set<ConstraintViolation<Request>> constraintViolations = validator.validate(request);
        ...
    }

I think there must be another SessionFactiry class then org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean, because this is descendant from org.springfamework.orm.hibernate3 which is from Spring and not from HibernateValidator.


Top
 Profile  
 
 Post subject: Re: Validator vs. Spring
PostPosted: Thu May 03, 2012 4:05 am 
Newbie

Joined: Sun Apr 22, 2012 9:06 am
Posts: 10
I put this validation into webflow.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd"
   parent="parent-flow">

   <!--
      Also see ../parent-flow.xml.
   -->

   <var name="serviceRequest" class="com.integrity.domain.Request"/>
    <var name="languageBean" class="com.integrity.domain.LanguageBean"/>

    <view-state id="language" model="languageBean">
        <transition on="next" to="edit">
          <evaluate expression="localeBean.setLanguage(languageBean.getLanguage())"/>
        </transition>
    </view-state>

        <view-state id="edit" model="serviceRequest">
                <transition on="back" to="language" validate="false"/>
                <transition on="next" to="review" validate="true">
                  <evaluate expression="myRequestDAO.validate(serviceRequest)"/>
                  <evaluate expression="myRequestDAO.updateTransients(serviceRequest)"/>
                </transition>
        </view-state>

        <view-state id="review">
      <transition on="back" to="edit"/>
      <transition on="next" to="ready">
                  <evaluate expression="requestService.save(serviceRequest)"/>
                </transition>      
        </view-state>

    <view-state id="ready"/>

</flow>

But I feel that is not the right way. How can I put ConstraintViolation values to messages?


Last edited by pzoli on Thu May 03, 2012 5:03 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Validator vs. Spring
PostPosted: Thu May 03, 2012 4:58 am 
Newbie

Joined: Sun Apr 22, 2012 9:06 am
Posts: 10
I tired generate ConstraintViolationException that is displaied on consol but exception not shows error messages in browser.
Code:
        Set constraintViolations = validator.validate(request);
        if (!constraintViolations.isEmpty())
            throw new ConstraintViolationException(constraintViolations);


Top
 Profile  
 
 Post subject: Re: Validator vs. Spring
PostPosted: Tue May 08, 2012 5:50 am 
Newbie

Joined: Sun Apr 22, 2012 9:06 am
Posts: 10
Thanx, herrin. I visited VaLang homepage.

I'd like use Hibernate Validator, beacuse with interpolation it can assist simple ValidationMessages_xx_XX.properties files to display multi language error messages.

So, I search for simple and full annotation processing whit this advantages. I googled over the whole internet without reason.

I used FacesContext for message display like below.
Code:
        FacesContext.getCurrentInstance().getViewRoot().setLocale(localeBean.getLocale());
        Set constraintViolations = validator.validate(request);
       
        for(ConstraintViolation<Request> constraint : (Set<ConstraintViolation<Request>>)constraintViolations) {
            log.error(constraint.getMessage());
            FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR,constraint.getMessage(), "")); 
        }
        return constraintViolations.isEmpty();


Reason is visible, but only in default system language.
I made an xhtml with language parameters:
Code:
<f:view contentType="text/html" locale="#{localeBean.locale}">

I can use it for different languages (like hu_HU or en_GB at this site).
Code:
package com.integrity.i18n;

import java.io.Serializable;
import java.util.Locale;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.component.UIViewRoot;
import javax.faces.context.FacesContext;

@ManagedBean
@SessionScoped
public class LocaleBean implements Serializable {

    private static final long serialVersionUID = 5503640713110816880L;

    private Locale locale;

    public LocaleBean() {
        FacesContext context = FacesContext.getCurrentInstance();
        UIViewRoot root = context.getViewRoot();
        if (root != null) {
            locale = root.getLocale();
        } else {
            locale = new Locale("hu");
        }
    }

    public Locale getLocale() {
        return locale;
    }

    public String getLanguage() {
        return locale.getLanguage();
    }

    public void setLanguage(String language) {
        locale = new Locale(language);
        FacesContext.getCurrentInstance().getViewRoot().setLocale(locale);
    }

}

Without additional effort ValidationMessages are localized, too. But only default annotations found by validator. FacesContext made me dubious. Is this validation come from Hibernate? I think yes, because ValidationMessages is in HibernateValidator.


Top
 Profile  
 
 Post subject: Re: Validator vs. Spring
PostPosted: Wed May 09, 2012 4:30 am 
Newbie

Joined: Sun Apr 22, 2012 9:06 am
Posts: 10
I found a solution by myself combinating this with my code.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.