日期:2014-05-16  浏览次数:20374 次

SEAM+AJAX4JSF 实现动态菜单
的确方便了很多!
xml 代码
  1. <tr>??
  2. ?<td>??
  3. ????????<s:decorate?template="/page/tiles/formFieldDecorate.xhtml">??
  4. ????????????<ui:define?name="label">分类1</ui:define>??
  5. ????????????<h:selectOneMenu?value="#{_catalog1}"?converter="#{entityConverter}">??
  6. ????<s:selectItems?value="#{appCache.catalog1List}"? ??
  7. ?????var="cata1"?label="#{cata1.name}"?noSelectionLabel="请选择"/>????????? ??
  8. ????<a4j:support?event="onchange"??
  9. ?????actionListener="#{courseMaintAction.loadCata2ByCata1}"??
  10. ?????reRender="cata2Area"?requestDelay="0"??ajaxSingle="true"?/>??
  11. ???</h:selectOneMenu>??
  12. ????????</s:decorate>??
  13. ???????</td>??
  14. </tr>??
  15. <tr>??
  16. ?<td>??