calculator.jsp 988 B

12345678910111213141516171819202122
  1. <%@ include file="../../upper.jsp" %>
  2. <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
  3. <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
  4. <f:view>
  5. <h:form id="form_0">
  6. <h2><h:outputText value="Simple Calculator Test" /></h2><br>
  7. <h:panelGrid columns="3" border="0" cellpadding="0" cellspacing="0" id="panel">
  8. <h:outputText id="fristLabel" value="fristNumber" />
  9. <h:inputText id="firstInput" value="#{CalcBean.fristNumber}" />
  10. <h:message for="firstInput" id="firstMessage" errorStyle="color:red" />
  11. <h:outputText id="secondLabel" value="secondNumber" />
  12. <h:inputText id="secondInput" value="#{CalcBean.secondNumber}" />
  13. <h:message for="secondInput" id="secondMessage" errorStyle="color:red"/>
  14. </h:panelGrid><br><br>
  15. <h:commandButton value="add" id="commandAdd" action="#{CalcBean.add}" />
  16. <h:commandButton value="Multiply" id="commandMultiply" action="#{CalcBean.multiply}" />
  17. </h:form>
  18. </f:view>
  19. <%@ include file="../../footer.html" %>