blob: 37985724d0f5801642bff7e76bef9b993cec55e5 (
plain)
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
|
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
uri="http://java.sun.com/jsf/html" prefix="h"%><%@ page language="java"
contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
<h:form>
<h:inputText value="#{calculator.number1}" size="5"></h:inputText>
<h:selectOneMenu value="#{calculator.operation}">
<f:selectItem itemValue="+" />
<f:selectItem itemValue="-" />
<f:selectItem itemValue="*" />
<f:selectItem itemValue="/" />
</h:selectOneMenu>
<h:inputText value="#{calculator.number2}" size="5"></h:inputText>
<h:commandButton value="=" action="#{calculator.callService}"></h:commandButton>
<h:outputText value="#{calculator.result}"></h:outputText>
</h:form>
</f:view>
</body>
</html>
|