📄 scriptcollector.java
字号:
/**
*
*/
package pagecode.scriptCollector;
import pagecode.PageCodeBase;
import javax.faces.context.FacesContext;
import com.ibm.faces.component.html.HtmlScriptCollector;
import javax.faces.component.html.HtmlForm;
import javax.faces.component.html.HtmlOutputText;
import javax.faces.component.html.HtmlInputText;
import javax.faces.component.html.HtmlSelectBooleanCheckbox;
import com.ibm.faces.component.html.HtmlCommandExButton;
/**
* @author nan
*
*/
public class ScriptCollector extends PageCodeBase {
protected HtmlScriptCollector scriptCollector1;
protected HtmlForm form1;
protected HtmlOutputText text7;
protected HtmlOutputText text8;
protected HtmlInputText text1;
protected HtmlInputText text9;
protected HtmlSelectBooleanCheckbox checkbox1;
protected HtmlSelectBooleanCheckbox checkbox2;
protected HtmlCommandExButton button1;
protected HtmlOutputText text10;
protected HtmlOutputText text11;
protected HtmlOutputText text12;
protected HtmlOutputText text13;
protected HtmlOutputText text6;
protected HtmlScriptCollector getScriptCollector1() {
if (scriptCollector1 == null) {
scriptCollector1 = (HtmlScriptCollector) findComponentInRoot("scriptCollector1");
}
return scriptCollector1;
}
protected HtmlForm getForm1() {
if (form1 == null) {
form1 = (HtmlForm) findComponentInRoot("form1");
}
return form1;
}
protected HtmlOutputText getText7() {
if (text7 == null) {
text7 = (HtmlOutputText) findComponentInRoot("text7");
}
return text7;
}
protected HtmlOutputText getText8() {
if (text8 == null) {
text8 = (HtmlOutputText) findComponentInRoot("text8");
}
return text8;
}
protected HtmlInputText getText1() {
if (text1 == null) {
text1 = (HtmlInputText) findComponentInRoot("text1");
}
return text1;
}
protected HtmlInputText getText9() {
if (text9 == null) {
text9 = (HtmlInputText) findComponentInRoot("text9");
}
return text9;
}
protected HtmlSelectBooleanCheckbox getCheckbox1() {
if (checkbox1 == null) {
checkbox1 = (HtmlSelectBooleanCheckbox) findComponentInRoot("checkbox1");
}
return checkbox1;
}
protected HtmlSelectBooleanCheckbox getCheckbox2() {
if (checkbox2 == null) {
checkbox2 = (HtmlSelectBooleanCheckbox) findComponentInRoot("checkbox2");
}
return checkbox2;
}
protected HtmlCommandExButton getButton1() {
if (button1 == null) {
button1 = (HtmlCommandExButton) findComponentInRoot("button1");
}
return button1;
}
protected HtmlOutputText getText10() {
if (text10 == null) {
text10 = (HtmlOutputText) findComponentInRoot("text10");
}
return text10;
}
protected HtmlOutputText getText11() {
if (text11 == null) {
text11 = (HtmlOutputText) findComponentInRoot("text11");
}
return text11;
}
protected HtmlOutputText getText12() {
if (text12 == null) {
text12 = (HtmlOutputText) findComponentInRoot("text12");
}
return text12;
}
protected HtmlOutputText getText13() {
if (text13 == null) {
text13 = (HtmlOutputText) findComponentInRoot("text13");
}
return text13;
}
protected HtmlOutputText getText6() {
if (text6 == null) {
text6 = (HtmlOutputText) findComponentInRoot("text6");
}
return text6;
}
/*
* The Page Load Being Event
*/
public void onPageLoadBegin1(FacesContext facescontext) {
// Type Java code to handle page load begin event here
// If the value of the Request Scope variable "name" is null the value is set.
if( getRequestScope().get("name") == null ) {
getRequestScope().put("name", "Page Load Begin");
}
// If the value of the Request Scope variable "yesno" is null the value is set.
if( getRequestScope().get("yesno") == null ) {
getRequestScope().put("yesno", "true");
}
}
/*
* The Page Post Event
*/
public void onPagePost(FacesContext facescontext) {
// Type Java code to handle page post event here
// If the value of the Request Scope variable "updown" is null the value is set.
if( getRequestScope().get("updown") == null ) {
getRequestScope().put("updown", "Page Post Method Run");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -