jsf中怎样动态改变include的src地址
我想根据一个bean里的url,动态改变include中的src,试了几次都不行。
java 代码
?
- <body?style="margin:0;"?bgcolor="#f4f4ea">??
- ??
- <f:view>??
- <h:form?id="form">??
- ????????<div?>??
- ????????<e:include?id="moduleTree"?src="system/module_tree.jsp"/>??
- ??????</div>??
- ??????
- ??????
- ??????<div?>??
- ????????<e:include?id="mainPane"?src="#{controlBean.mainPanePath}"/>??
- ??????</div>??
- ?????
- </h:form>??
- </f:view>??
java 代码
?
- public?class?ControlBean?{??
- ????private?String?mainPanePath="org_manager/context.jsp";??
- ??
- ?????
- ?
- ??
- ????public?String?getMainPanePath()?{??
- ????????return?mainPanePath;??
- ????}??
- ??
- ?????
- ?
- ??
- ????ghter">
?
- <e:tree?id="tree-basic"?model="#{moduleTreeModelBean.treeModel}"???
- ????????????rootExpanded="false"??
- ????????????onselection="#{controlBean.setPath}"??
- ????????????cellStyle="normalTreeCell"??
- ????????????hoverStyle="blueTreeCell"??
- ????????????selectedStyle="whiteTreeCell"?preloadDepth="1">??
- ??
- ???????
- ????????<e:treecell?value="#{NODE.name}"??
- ????????????????????styleClass=