myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JS <jyotsnasu...@yahoo.co.uk>
Subject RE: t:dataTable input
Date Thu, 16 Nov 2006 22:06:00 GMT

No, I haven't got any validation errors.  I have initialised qtOfEffort(in
the datatable input ) in wkQtDetail  as 0.0. So in the backing bean I am
getting as 0.0 as well. I am not using the UIData object. I am not whether I
have written write code for that.Here is my backing bean method corrsponding
the above jsp:

public List getWorkQtDetail() throws ServiceException {                 
workQtDetail = new ArrayList();        WorkQuoteDetail workQt;        List
depts = WorkBasedQtFacade.getDeptByQtNo(qtDetail.getQuoteNo());               
for (int i=0;i<depts.size();i++) {             Object key = depts.get(i);            
//WorkQuoteDetail workQt = new WorkQuoteDetail();               Department
dept = DeptFacade.getById(Integer.parseInt(key.toString())); // getting from
db             List works =
WorkBasedQtFacade.getWorkByQtNo(qtDetail.getQuoteNo(),dept.getDeptId());//getting
from db                          for (int j=0;j<works.size();j++) {            
Object w = works.get(j);             Work work =
WorkFacade.getById(Integer.parseInt(w.toString()));             workQt = new
WorkQuoteDetail(dept.getDeptNm(),work.getWorkNm(),                    
Integer.parseInt(key.toString()),Integer.parseInt(w.toString()));            
workQtDetail.add(workQt);            
getSelectItems().put(dept.getDeptNm(),work.getWorkNm());             }       
}        return workQtDetail;    }
.....................................................................................................................................................................
public class WorkQuoteDetail implements Serializable{        private String
work = null;        private String deptSelected = null;    private double
qtOfEffort = 0.0;          private int deptId = 0;    private int workId =
0;        /** Creates a new instance of WorkQuoteDetail */    public
WorkQuoteDetail(String deptSelected,String work,int deptId,int workId) {       
this.deptSelected = deptSelected;        this.work = work;       
this.deptId = deptId;        this.workId = workId;    }     public String
getWork() {        return work;    }     public void setWork(String work) {       
this.work = work;    }     public String getDeptSelected() {        return
deptSelected;    }     public void setDeptSelected(String deptSelected) {       
this.deptSelected = deptSelected;    }    public double getQtOfEffort() {       
return qtOfEffort;    }     public void setQtOfEffort(double qtOfEffort) {       
this.qtOfEffort = qtOfEffort;    }         public int getDeptId() {       
return deptId;    }     public void setDeptId(int deptId) {       
this.deptId = deptId;    }     public int getWorkId() {        return
workId;    }     public void setWorkId(int workId) {        this.workId =
workId;    }}
....................................................................................................................................................................
Could you please tell me your thoughts on it. Please help me. 

Thanks,
JS.



Nebinger, David wrote:
> 
>> Sorry if I was unclear. Backing bean is not getting updated. 
> 
> The UIData object that is backing the <h:dataTable> would be updated upon
> submit, therefore the list itself (with each individual wkQtDetail
> instance) should also be updated.
> 
> Have you checked to see if you're getting any validation errors generated
> as part of the submit?
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/t%3AdataTable-input-tf2641794.html#a7389429
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message