1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <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:ui="http://java.sun.com/jsf/facelets"> <h:form id="choices"> <h:panelGrid columns="2"> <h:selectOneRadio value="#{questions[wizard.cursor].answer}" layout="pageDirection"> <f:selectItems value="#{questions[wizard.cursor].choices}"/> <f:ajax render=":buttons"/> </h:selectOneRadio> </h:panelGrid> </h:form> </ui:composition> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <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:ui="http://java.sun.com/jsf/facelets"> <h:form id="buttons"> <h:panelGrid columns="4" styleClass="wizardControls"> <f:ajax render=":question :choices buttons"> <h:commandButton id="next" styleClass="wizardButton" value="#{msgs.nextButtonText}" disabled="#{not wizard.nextButtonEnabled}"/> actionListener="#{wizard.nextButtonClicked}"/> <h:commandButton id="previous" styleClass="wizardButton" value="#{msgs.previousButtonText}" disabled="#{not wizard.previousButtonEnabled}" actionListener="#{wizard.previousButtonClicked}"/> </f:ajax> <h:commandButton id="finish" styleClass="wizardButton" value="#{msgs.finishButtonText}" disabled="#{not wizard.finishButtonEnabled}" action="#{wizard.end}"/> </h:panelGrid> </h:form> </ui:composition> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |