Backing Bean:

package com.loomis.project;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import com.loomis.dao.PersonDAO;
import com.loomis.lookup.autoobject.Category;
import com.loomis.lookup.autoobject.Phase;
import com.loomis.lookup.autoobject.Status;
import com.loomis.person.PersonSummary;


@SuppressWarnings("serial")
public class ProjectSummary implements Serializable{
        private Integer id;
        private String name;
        private String description;
        
        private Timestamp dueDate;
        private Timestamp creationDate;
        private Integer creator;
        private Integer lastModifier;
        private Timestamp lastModified;
        protected PersonSummary leader;
        
        private Category category;
        private Phase phase;
        private Status status;
        
        public Integer getId() {
                return id;
        }

        public void setId(int id) {
                this.id = id;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public String getDescription() {
                return description;
        }

        public void setDescription(String description) {
                this.description = description;
        }
        

        public Phase getPhase() {
                if (null == phase) phase = new Phase();
                
                return phase;
        }

        public void setPhase(Phase phase) {
                this.phase = phase;
        }

        public Status getStatus() {
                if (null == status) status = new Status();
                
                return status;
        }

        public void setStatus(Status status) {
                this.status = status;
        }
        
        public void setCategory(Category category) {
                this.category = category;
        }
        
        public Category getCategory() {
                if (null == category) category = new Category();
                
                return category;
        }
        
        public Date getDueDate() {
                return dueDate;
        }

        public void setDueDate(Date dueDate) {
                this.dueDate = new Timestamp(dueDate.getTime());
        }

        public Timestamp getCreationDate() {
                return creationDate;
        }

        public void setCreationDate(Date creationDate) {
                this.creationDate = new Timestamp(creationDate.getTime());
        }

        public Timestamp getLastModified() {
                return lastModified;
        }

        public void setLastModified(Date lastModified) {
                this.lastModified = new Timestamp(lastModified.getTime());
        }

        public Integer getLastModifier() {
                return lastModifier;
        }


        public void setLastModifier(Integer lastModifier) {
                this.lastModifier = lastModifier;
        }

        public Integer getCreator() {
                return creator;
        }

        public void setCreator(Integer creator) {
                this.creator = creator;
        }

        public PersonSummary getLeader() {
                return leader;
        }

        public void setLeader(Integer leader) {
                if (null != leader) this.leader = (new
PersonDAO()).getPersonSummary(leader);
        }
}

-- 
View this message in context: 
http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5576166
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to