01: package com.sun.portal.admin.console.sra;
02:
03: import com.sun.portal.admin.console.common.AMLocationBarBean;
04: import com.sun.portal.admin.console.sra.utils.Util;
05:
06: import javax.faces.event.ValueChangeEvent;
07: import javax.faces.context.FacesContext;
08: import java.util.List;
09:
10: /**
11: * author: Noble Paul
12: * Date: Jul 21, 2005, 3:48:03 PM
13: */
14: public class SraAMLocationBarBean extends AMLocationBarBean {
15: public void processLocationDNChange(ValueChangeEvent evt) {
16: super .processLocationDNChange(evt);
17: FacesContext fc = FacesContext.getCurrentInstance();
18: Util.setRequestAttribute("refresh-page", fc
19: .getExternalContext().getRequestContextPath()
20: + "/faces"
21: + fc.getViewRoot().getViewId()
22: + "?time="
23: + System.currentTimeMillis());
24: /*FacesContext fc = FacesContext.getCurrentInstance();
25: String currPage =fc.getExternalContext().getRequestContextPath()+"/faces"+fc.getViewRoot().getViewId()+"?time="+System.currentTimeMillis();
26: try {
27: fc.getExternalContext().redirect(currPage);
28: } catch (Exception e) {
29: e.printStackTrace();//TODO handle Exception properly
30: }*/
31:
32: /*List srabeans = (List) Util.getRequestAttribute(SraBaseBean.class.getName());
33: if(srabeans==null ){
34: return;
35: }
36: for (int i = 0; i < srabeans.size(); i++) {
37: SraBaseBean bean = (SraBaseBean) srabeans.get(i);
38: bean.reset();
39: }*/
40: }
41:
42: }
|