JSF 抽象和实现例子 (函数和属性)

ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:dialogPerson="http://java.sun.com/jsf/composite/components/dialogPerson"
xmlns:components="http://java.sun.com/jsf/composite/components"
> <h:form id="form">
<p:growl id="growl" life="2000" />
<components:InputIdXmShowList action="#{rHAction.buttonAction}"
list="#{rHAction.queryList}" sfz="#{rHAction.SFZMHM}" xm="#{rHAction.XM}"> </components:InputIdXmShowList>
<dialogPerson:dialogPerson/> </h:form>
<composite:interface>
<composite:attribute name="list"/>
<composite:attribute name="action"
method-signature="void action(javax.faces.event.ActionEvent )"
/> <composite:attribute name="sfz" required=""/>
<composite:attribute name="xm" required=""/>
</composite:interface> <composite:implementation>
<p:commandButton actionListener="#{cc.attrs.action}" value="查询" ajax="false"
id="iconOnly" update="out @widgetVar(personDetail),form" icon="ui-icon-disk"
title="查询"/>
</p:column>

public void buttonAction(ActionEvent actionEvent) {

   query();

}
public void histBrow(ActionEvent actionEvent) { histBrowList=sysService.getHistBrow(XM,SFZMHM); }
上一篇:连接企业的人、事、物、知识--企业IM的第三类生存方式


下一篇:Linux操作系统下IPTables配置方法详解