Browse CVS Repository
Diff of /pal/s2helloworld/src/main/java/jp/sf/pal/s2helloworld/web/hello/TypeNamePage.java
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 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; |
| 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() |
| 50 |
{ |
{ |
| 51 |
return null; |
return null; |
| 52 |
} |
} |
| 53 |
|
|
| 54 |
} |
} |
|
|
Legend:
| Removed from v.1.1 |
|
| changed lines |
| |
Added in v.1.2 |
|
|
|