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 吴碧宇 阅读(337) | 评论 (0) 编辑
摘要: Java 后能执行JS阅读全文
posted @ 2008-06-25 13:35 吴碧宇 阅读(216) | 评论 (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 吴碧宇 阅读(143) | 评论 (0) 编辑
摘要: 传值使用 commandlink 组件中加 param标记
取值:FacesContext.getInstance().getExtentionInstance().getRequestParameterMap.get("id")阅读全文
posted @ 2008-06-13 03:11 吴碧宇 阅读(1007) | 评论 (0) 编辑