我想根据一个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";??
- ??
- ????/**?
- ?????*?@return?the?mainPanePath?
- ?????*/??
- ????public?String?getMainPanePath()?{??
- ????????return?mainPanePath;??
- ????}??
- ??
- ????/**?
- ?????*?@param?mainPanePath?the?mainPanePath?to?set?
- ?????*/??
- ????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="treeCellBold"??
- ????????????????????icon="#{NODE.leaf?'/images/draft.jpg':'/images/trash.jpg'}"/>??
- ??????????
- ????</e:tree>??
1 楼
fourfire
2007-05-16
后台都看到加载页面了,但是网页上没有变化
2 楼
fourfire
2007-05-17
是个ecruiser的问题,需要把tree标记的ajax=false