Show TOC

Syntax documentationEditProject JSP Source Code Locate this document in the navigation structure

Syntax Syntax

  1. <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@taglib
    	uri="http://java.sun.com/jsf/core" prefix="f"%><%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
    <!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=UTF-8">
    <title>Insert title here</title>
    </head>
    <body>
    
    Edit project form
    <f:view>
    	<h:form target="_self">
    		Title:	<h:inputText value="#{projectMB.currentProject.title}"></h:inputText><br>
    		Description: <h:inputText value="#{projectMB.currentProject.description}"></h:inputText><br>
    		Employees: 	
    		<h:commandLink action="#{projectMB.navigationSetEmployees}">
    			<h:outputText value="Set employees"></h:outputText>
    		</h:commandLink>
    
    		<h:dataTable border="0" value="#{projectMB.tempCurrProjEmployees}"
    		var="empl" rendered="#{projectMB.renderEmployees}">
    
    		<h:column></h:column>
    		<h:column id="lName">
    			<h:outputText value="#{empl.lastName}"></h:outputText>
    			<f:facet name="header">
    				<h:outputText value="Last name"></h:outputText>
    			</f:facet>
    		</h:column>
    		<h:column id="fName">
    			<h:outputText value="#{empl.firstName}"></h:outputText>
    			<f:facet name="header">
    				<h:outputText value="First name"></h:outputText>
    			</f:facet>
    		</h:column>
    	</h:dataTable>
    	<br>
    		StartDate: <h:inputText value="#{projectMB.currentProject.startDate}">
    			<f:convertDateTime type="date" dateStyle="short"/>
    		</h:inputText>
    
    		<br>
    		Status: <h:inputText value="#{projectMB.currentProject.status}"></h:inputText><br>
    		<h:commandButton value="Save" action="#{projectMB.createProject}"></h:commandButton>
    
    	</h:form>
    </f:view></body>
    </html>
End of the code.