Browse CVS Repository
Diff of /pal/s2helloworld/src/main/java/jp/sf/pal/s2helloworld/web/hello/SayHelloPage.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 |
|
/** |
| 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 |
|
this.facesContext = facesContext; |
| 36 |
|
} |
| 37 |
|
|
| 38 |
public String initialize() |
public String initialize() |
| 39 |
{ |
{ |
| 40 |
return null; |
return null; |
| 42 |
|
|
| 43 |
public String prerender() |
public String prerender() |
| 44 |
{ |
{ |
| 45 |
yourName = (String) FacesContext.getCurrentInstance() |
yourName = (String) facesContext.getExternalContext().getSessionMap() |
| 46 |
.getExternalContext().getSessionMap().get("name"); |
.get("name"); |
| 47 |
return null; |
return null; |
| 48 |
} |
} |
| 49 |
|
|
|
|
Legend:
| Removed from v.1.1 |
|
| changed lines |
| |
Added in v.1.2 |
|
|
|