1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 */ 19 package org.apache.myfaces.view.facelets.tag.jsf.core.reset; 20 21 import javax.faces.bean.ManagedBean; 22 import javax.faces.bean.SessionScoped; 23 import javax.faces.event.ActionEvent; 24 25 /** 26 * 27 * @author Leonardo Uribe 28 */ 29 @ManagedBean(name="bean") 30 @SessionScoped 31 public class ResetValuesBean 32 { 33 34 private String field1; 35 36 private Integer field2; 37 38 public void overrideField1(ActionEvent evt) 39 { 40 field1 = "overriden"; 41 } 42 43 /** 44 * @return the field1 45 */ 46 public String getField1() 47 { 48 return field1; 49 } 50 51 /** 52 * @param field1 the field1 to set 53 */ 54 public void setField1(String field1) 55 { 56 this.field1 = field1; 57 } 58 59 /** 60 * @return the field2 61 */ 62 public Integer getField2() 63 { 64 return field2; 65 } 66 67 /** 68 * @param field2 the field2 to set 69 */ 70 public void setField2(Integer field2) 71 { 72 this.field2 = field2; 73 } 74 75 }