public boolean isPostBack() {
FacesContext context = FacesContext.getCurrentInstance();
if (context.getResponseWriter() == null)
return false;
else
return true;
}
public GoodsNewBean(){
goodsNewService=new GoodsNewServiceImpl();
if(isPostBack()){
init();
}
else{
goods=(Goods)this.getHttpSessionAttribute("goods");
}
}
FacesContext context = FacesContext.getCurrentInstance();
if (context.getResponseWriter() == null)
return false;
else
return true;
}
public GoodsNewBean(){
goodsNewService=new GoodsNewServiceImpl();
if(isPostBack()){
init();
}
else{
goods=(Goods)this.getHttpSessionAttribute("goods");
}
}