weixin_33674437 2016-06-16 22:25 采纳率: 0%
浏览 40

如何使用渲染

I am new to richfaces, ajax and analyzing code that contains: render="#{render}"

Any one can explain what render do in general and in this code in particular.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
 xmlns:h="http://java.sun.com/jsf/html"
 xmlns:f="http://java.sun.com/jsf/core"
 xmlns:ui="http://java.sun.com/jsf/facelets">
<body>
 <ui:composition>
  <div style="display: table;">
   <div style="display: table-row">
    <div style="display: table-cell; padding: 5px;">
     <ui:include src="/view/main/common/scans_selector.xhtml">
      <ui:Param name="prefix" value="individual_scan" />
      <ui:Param name="year" value="#{individualScanDetailsController.scans.year}" />
      <ui:Param name="month" value="#{individualScanDetailsController.scans.month}" />
      <ui:Param name="type" value="#{individualScanDetailsController.scans.type}" />
                        <ui:Param name="show_type" value="true" />
     </ui:include>
    </div>
    <div style="display: table-cell">
     <h:commandButton id="individual_scan_selector_submit"
      value="#{msg['LoadScans']}">
      <f:ajax listener="#{individualScanDetailsController.processIndividualScanScansSelectorEvent()}"
       execute="individual_scan_scans_year individual_scan_scans_month individual_scan_scans_type"
       render="#{render}" />
     </h:commandButton>
    </div>
   </div>
  </div>
 </ui:composition>
</body>
</html>
  • 写回答

1条回答 默认 最新

报告相同问题?