随笔分类 - 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);
}
阅读全文
摘要: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
阅读全文
摘要:传值使用 commandlink 组件中加 param标记
取值:FacesContext.getInstance().getExtentionInstance().getRequestParameterMap.get("id")
阅读全文
浙公网安备 33010602011771号