ExpressBean.java
Dosyayı İndir
package com.godoro.jsf.el.faces;
import com.godoro.jsf.el.entity.Sample;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
@ManagedBean
@RequestScoped
public class ExpressBean {
private long expressId = 123;
private String expressName = "Godoro";
private double expressValue = 3.1416;
private Sample sample;
private List<Sample> sampleList;
public ExpressBean() {
sample = new Sample(901, "Örnek Adı", 2.7178);
sampleList = new ArrayList<Sample>();
sampleList.add(new Sample(301, "Öğe 1", 501));
sampleList.add(new Sample(302, "Öğe 2", 502));
sampleList.add(new Sample(303, "Öğe 3", 503));
}
public void myMethod() {
System.out.println("Yöntem Çağrıldı");
}
public void myMethod(double parameter) {
System.out.println("Yöntem Çağrıldı " + parameter);
}
public Sample getSample() {
return sample;
}
public List<Sample> getSampleList() {
return sampleList;
}
public long getExpressId() {
return expressId;
}
public void setExpressId(long expressId) {
this.expressId = expressId;
}
public String getExpressName() {
return expressName;
}
public void setExpressName(String expressName) {
this.expressName = expressName;
}
public double getExpressValue() {
return expressValue;
}
public void setExpressValue(double expressValue) {
this.expressValue = expressValue;
}
}
Dosyayı İndir