| 1 33 34 package com.icesoft.icefaces.samples.showcase.components.buttonsLinks; 35 36 import javax.faces.event.ActionEvent; 37 38 44 public class ButtonsAndLinksBean { 45 46 49 private String clicked; 50 private String inputText; 51 52 57 public String getClicked() { 58 return clicked; 59 } 60 61 66 public void setClicked(String newValue) { 67 clicked = newValue; 68 } 69 70 75 public String getInputText() { 76 return inputText; 77 } 78 79 public void setInputText(String newValue) { 80 inputText = newValue; 81 } 82 83 88 public void submitButtonListener(ActionEvent e) { 89 clicked = "Submit button"; 90 } 91 92 97 public void imageButtonListener(ActionEvent e) { 98 clicked = "Image button"; 99 } 100 101 106 public void commandLinkListener(ActionEvent e) { 107 clicked = "Command link"; 108 } 109 } 110 | Popular Tags |