Develop and Download Open Source Software

Browse CVS Repository

Diff of /pal/s2helloworld/src/main/java/jp/sf/pal/s2helloworld/web/hello/TypeNamePage.java

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by shinsuke, Sun Nov 26 01:44:54 2006 UTC revision 1.2 by shinsuke, Mon Apr 2 01:01:03 2007 UTC
# Line 7  public class TypeNamePage Line 7  public class TypeNamePage
7    
8      private String yourName;      private String yourName;
9    
10        private FacesContext facesContext;
11    
12      public String getYourName()      public String getYourName()
13      {      {
14          return yourName;          return yourName;
# Line 17  public class TypeNamePage Line 19  public class TypeNamePage
19          this.yourName = yourName;          this.yourName = yourName;
20      }      }
21    
22      public String doTypeName()      /**
23         * @return the facesContext
24         */
25        public FacesContext getFacesContext()
26        {
27            return facesContext;
28        }
29    
30        /**
31         * @param facesContext the facesContext to set
32         */
33        public void setFacesContext(FacesContext facesContext)
34      {      {
35          FacesContext.getCurrentInstance().getExternalContext().getSessionMap()          this.facesContext = facesContext;
36                  .put("name", yourName);      }
37          return "hello_sayHello";  
38        public Class doTypeName()
39        {
40            facesContext.getExternalContext().getSessionMap().put("name", yourName);
41            return SayHelloPage.class;
42      }      }
43    
44      public String initialize()      public String initialize()
# Line 33  public class TypeNamePage Line 50  public class TypeNamePage
50      {      {
51          return null;          return null;
52      }      }
53        
54  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26