随笔分类 -  JAVA JSF框架

摘要:方式一: HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(true); String rootpatch = session.getServletContext().getRealPath("/"); 方式二: public static String getRealPath(String path) { return ((ServletContext) FacesContext.getCurrentInstance() .getExternalContext().getContext()).getRealPath(path); } 阅读全文
posted @ 2008-07-02 11:39 吴碧宇 阅读(673) 评论(0) 推荐(0)
摘要:Java 后能执行JS 阅读全文
posted @ 2008-06-25 13:35 吴碧宇 阅读(433) 评论(0) 推荐(0)
摘要:Execute a managed bean method based on parameters provided for a link or button, or clicking on link/button on row to get to detail screen from master list 阅读全文
posted @ 2008-06-19 23:42 吴碧宇 阅读(342) 评论(0) 推荐(0)
摘要:传值使用 commandlink 组件中加 param标记 取值:FacesContext.getInstance().getExtentionInstance().getRequestParameterMap.get("id") 阅读全文
posted @ 2008-06-13 03:11 吴碧宇 阅读(2437) 评论(0) 推荐(0)