私はこのようなことをやろうとしています:
@ViewScoped
public class Bean2{
public void saveChanges(){
//saving changes...
FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("id",id);
FacesContext.getCurrentInstance().getExternalContext().redirect("page1");
}
}
そして Bean1 で requestMap からデータを取得します
@ViewScoped
public class Bean1{
public Bean1(){
String id = FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get(id);
}
}
しかし、id は常に NULL で、RequestMap は空です。getRequestParameterMap() を試してみましたが、これも空です... Bean のスコープを変更せずに、getSessionMap.put(parameters) を使用せずにこの問題を解決する方法を知っていますか? thnx