/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package house;
import com.sun.data.provider.impl.CachedRowSetDataProvider;
import com.sun.rave.faces.data.CachedRowSetDataModel;
import com.sun.rave.faces.data.DefaultTableDataModel;
import com.sun.rave.web.ui.appbase.AbstractPageBean;
import com.sun.webui.jsf.component.TextField;
import com.sun.webui.jsf.model.DefaultTableDataProvider;
import javax.faces.FacesException;
import javax.faces.event.ValueChangeEvent;
/**
* <p>Page bean that corresponds to a similarly named JSP page. This
* class contains component definitions (and initialization code) for
* all components that you have defined on this page, as well as
* lifecycle methods and event handlers where you may add behavior
* to respond to incoming events.</p>
*
* @version input.java
* @version Created on 2009-6-21, 23:31:42
* @author dux
*/
public class Input extends AbstractPageBean {
// <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
/**
* <p>Automatically managed component initialization. <strong>WARNING:</strong>
* This method is automatically generated, so any user-specified code inserted
* here is subject to being replaced.</p>
*/
private void _init() throws Exception {
usersDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{SessionBean1.usersRowSet}"));
cjbDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{SessionBean1.cjbRowSet}"));
housemedium_mainDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{SessionBean1.housemedium_mainRowSet}"));
housemedium_mainDataProvider1.setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{SessionBean1.housemedium_mainRowSet}"));
dataTable1Model.setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{SessionBean1.housemedium_mainRowSet}"));
}
private TextField txt_xh = new TextField();
public TextField getTxt_xh() {
return txt_xh;
}
public void setTxt_xh(TextField tf) {
this.txt_xh = tf;
}
private TextField txt_xm = new TextField();
public TextField getTxt_xm() {
return txt_xm;
}
public void setTxt_xm(TextField tf) {
this.txt_xm = tf;
}
private TextField txt_yw = new TextField();
public TextField getTxt_yw() {
return txt_yw;
}
public void setTxt_yw(TextField tf) {
this.txt_yw = tf;
}
private TextField txt_sx = new TextField();
public TextField getTxt_sx() {
return txt_sx;
}
public void setTxt_sx(TextField tf) {
this.txt_sx = tf;
}
private CachedRowSetDataProvider usersDataProvider = new CachedRowSetDataProvider();
public CachedRowSetDataProvider getUsersDataProvider() {
return usersDataProvider;
}
public void setUsersDataProvider(CachedRowSetDataProvider crsdp) {
this.usersDataProvider = crsdp;
}
private CachedRowSetDataProvider cjbDataProvider = new CachedRowSetDataProvider();
public CachedRowSetDataProvider getCjbDataProvider() {
return cjbDataProvider;
}
public void setCjbDataProvider(CachedRowSetDataProvider crsdp) {
this.cjbDataProvider = crsdp;
}
private DefaultTableDataModel dataTable1Model1 = new DefaultTableDataModel();
public DefaultTableDataModel getDataTable1Model1() {
return dataTable1Model1;
}
public void setDataTable1Model1(DefaultTableDataModel dtdm) {
this.dataTable1Model1 = dtdm;
}
private CachedRowSetDataProvider housemedium_mainDataProvider = new CachedRowSetDataProvider();
public CachedRowSetDataProvider getHousemedium_mainDataProvider() {
return housemedium_mainDataProvider;
}
public void setHousemedium_mainDataProvider(CachedRowSetDataProvider crsdp) {
this.housemedium_mainDataProvider = crsdp;
}
private TextField txt_mc = new TextField();
public TextField getTxt_mc() {
return txt_mc;
}
public void setTxt_mc(TextField tf) {
this.txt_mc = tf;
}
private TextField txt_tx = new TextField();
public TextField getTxt_tx() {
return txt_tx;
}
public void setTxt_tx(TextField tf) {
this.txt_tx = tf;
}
private TextField txt_lc = new TextField();
public TextField getTxt_lc() {
return txt_lc;
}
public void setTxt_lc(TextField tf) {
this.txt_lc = tf;
}
private TextField txt_mj = new TextField();
public TextField getTxt_mj() {
return txt_mj;
}
public void setTxt_mj(TextField tf) {
this.txt_mj = tf;
}
private TextField txt_sj = new TextField();
public TextField getTxt_sj() {
return txt_sj;
}
public void setTxt_sj(TextField tf) {
this.txt_sj = tf;
}
private TextField txt_jjr = new TextField();
public TextField getTxt_jjr() {
return txt_jjr;
}
public void setTxt_jjr(TextField tf) {
this.txt_jjr = tf;
}
private DefaultTableDataModel dataTable1Model2 = new DefaultTableDataModel();
public DefaultTableDataModel getDataTable1Model2() {
return dataTable1Model2;
}
public void setDataTable1Model2(DefaultTableDataModel dtdm) {
this.dataTable1Model2 = dtdm;
}
private CachedRowSetDataProvider housemedium_mainDataProvider1 = new CachedRowSetDataProvider();
public CachedRowSetDataProvider getHousemedium_mainDataProvider1() {
return housemedium_mainDataProvider1;
}
public void setHousemedium_mainDataProvider1(CachedRowSetDataProvider crsdp) {
this.housemedium_mainDataProvider1 = crsdp;
}
private CachedRowSetDataModel dataTable1Model = new CachedRowSetDataModel();
public CachedRowSetDataModel getDataTable1Model() {
return dataTable1Model;
}
public void setDataTable1Model(CachedRowSetDataModel crsdm) {
this.dataTable1Model = crsdm;
}
// </editor-fold>
/**
* <p>Construct a new Page bean instance.</p>
*/
public Input() {
}
/**
* <p>Callback method that is called whenever a page is navigated to,
* either directly via a URL, or indirectly via page navigation.
* Customize this method to acquire resources that will be needed
* for event handlers and lifecycle methods, whether or not this
* page is performing post back processing.</p>
*
* <p>Note that, if the current request is a postback, the property
* values of the components do <strong>not</strong> represent any
* values submitted with this request. Instead, they represent the
* property values that were saved for this view when it was rendered.</p>
*/
@Override
public void init() {
// Perform initializations inherited from our superclass
super.init();
// Perform application initialization that must complete
// *before* managed components are initialized
// TODO - add your own initialiation code here
// <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
// Initialize automatically managed components
// *Note* - this logic should NOT be modified
try {
_init();
} catch (Exception e) {
log("input Initialization Failure", e);
throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
}
// </editor-fold>
// Perform application initialization that must complete
// *after* managed components are initialized
// TODO - add your own initialization code here
}
/**
* <p>Callback method that is called after the component tree has been
* restored, but before any event processing takes place. This method
* will <strong>only</strong> be called on a postback request that
- 1
- 2
- 3
- 4
前往页