View Javadoc

1   /*
2    * Copyright 2013 The Apache Software Foundation.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.apache.myfaces.view.facelets.pss.acid.managed;
17  
18  import java.io.Serializable;
19  import javax.annotation.PostConstruct;
20  import javax.faces.bean.ManagedBean;
21  import javax.faces.bean.SessionScoped;
22  
23  /**
24   *
25   * @author lu4242
26   */
27  @ManagedBean(name="customSessionBean")
28  @SessionScoped
29  public class CustomSessionBean implements Serializable
30  {
31      
32      private boolean showSection1;
33  
34      @PostConstruct
35      public void init()
36      {
37          showSection1 = false;
38      }
39      
40      /**
41       * @return the showSection1
42       */
43      public boolean isShowSection1()
44      {
45          return showSection1;
46      }
47  
48      /**
49       * @param showSection1 the showSection1 to set
50       */
51      public void setShowSection1(boolean showSection1)
52      {
53          this.showSection1 = showSection1;
54      }
55      
56  }