Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ManagedBean(name = "bean")
- @ViewScoped
- public class TestBean {
- String selectCopyType = "Person";
- public String getSelectCopyType() {
- return selectCopyType;
- }
- public void setSelectCopyType(String selectCopyType) {
- this.selectCopyType = selectCopyType;
- }
- public String getNewCurrentOwner() {
- return newCurrentOwner;
- }
- public void setNewCurrentOwner(String newCurrentOwner) {
- this.newCurrentOwner = newCurrentOwner;
- }
- public String getPool_select() {
- return pool_select;
- }
- public void setPool_select(String pool_select) {
- this.pool_select = pool_select;
- }
- public List<String> getPools() {
- return pools;
- }
- public void setPools(List<String> pools) {
- this.pools = pools;
- }
- String newCurrentOwner;
- String pool_select;
- List<String> pools;
- @PostConstruct
- public void init() {
- pools = new ArrayList<String>();
- pools.add("String 1");
- pools.add("String 2");
- }
- public void onSelectButton() {
- System.out.println("Listener");
- }
- public List<String> complete(String s) {
- List<String> result = new ArrayList<String>();
- for (int i = 0; i < 10; i++)
- result.add(s + i);
- return result;
- }
- public void onSelectPool() {
- newCurrentOwner = null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement