| At line 194 added 2 lines |
| /% |
| %%tab-Parte4 |
| At line 197 added 35 lines |
| !!Parte 4 |
| !Camera.java |
| %%prettify |
| {{{ |
| package corsojsf.model; |
|
| import java.math.BigDecimal; |
|
| public class Camera { |
|
| private String nome; |
| private Integer numeroPosti; |
| private BigDecimal prezzo; |
| |
| public String getNome() { |
| return nome; |
| } |
| public void setNome(String nome) { |
| this.nome = nome; |
| } |
| public Integer getNumeroPosti() { |
| return numeroPosti; |
| } |
| public void setNumeroPosti(Integer numeroPosti) { |
| this.numeroPosti = numeroPosti; |
| } |
| public BigDecimal getPrezzo() { |
| return prezzo; |
| } |
| public void setPrezzo(BigDecimal prezzo) { |
| this.prezzo = prezzo; |
| } |
|
| } |
| }}} |
| At line 233 added 42 lines |
|
| !Prenotazione.java |
| %%prettify |
| {{{ |
| package corsojsf.model; |
|
| import java.util.Date; |
|
| public class Prenotazione { |
|
| private String cliente; |
| private Date dataInizio; |
| private Date dataFIne; |
| private Camera camera; |
|
| public Camera getCamera() { |
| return camera; |
| } |
| public void setCamera(Camera camera) { |
| this.camera = camera; |
| } |
| public String getCliente() { |
| return cliente; |
| } |
| public void setCliente(String cliente) { |
| this.cliente = cliente; |
| } |
| public Date getDataFIne() { |
| return dataFIne; |
| } |
| public void setDataFIne(Date dataFIne) { |
| this.dataFIne = dataFIne; |
| } |
| public Date getDataInizio() { |
| return dataInizio; |
| } |
| public void setDataInizio(Date dataInizio) { |
| this.dataInizio = dataInizio; |
| } |
| } |
|
| }}} |
| At line 277 added 76 lines |
| !list.xhtml |
| %%prettify |
| {{{ |
| <ui:composition |
| xmlns:ui="http://java.sun.com/jsf/facelets" |
| xmlns:h="http://java.sun.com/jsf/html" |
| template="/template/masterLayout.xhtml" |
| xmlns:f="http://java.sun.com/jsf/core"> |
| |
| <ui:define name="content"> |
| <ui:include src="/sections/list/intestazioneCamere.xhtml"/> |
| <ui:include src="/sections/list/tabellaCamere.xhtml"/> |
| </ui:define> |
|
| </ui:composition> |
| }}} |
| /% |
|
| !tabellaCamere.xhtml |
| %%prettify |
| {{{ |
| <ui:composition |
| xmlns:ui="http://java.sun.com/jsf/facelets" |
| xmlns:h="http://java.sun.com/jsf/html" |
| xmlns:f="http://java.sun.com/jsf/core"> |
|
| <h:dataTable styleClass="lista" value="#{listController.camere}" var="camera"> |
| <h:column> |
| <f:facet name="header"> |
| <h:outputText value="nome"/> |
| </f:facet> |
| <h:outputText value="#{camera.nome}"/> |
| </h:column> |
| <h:column> |
| <f:facet name="header"> |
| <h:outputText value="n.posti"/> |
| </f:facet> |
| <h:outputText value="#{camera.numeroPosti}"/> |
| </h:column> |
| <h:column> |
| <f:facet name="header"> |
| <h:outputText value="prezzo"/> |
| </f:facet> |
| <h:outputText value="#{camera.prezzo}"/> |
| </h:column> |
| <h:column> |
| <h:outputLink value="Edit"/> |
| #160; |
| <h:outputLink value="Del"/> |
| </h:column> |
| </h:dataTable> |
|
| </ui:composition> |
| }}} |
| /% |
|
| !intestazioneCamere.xhtml |
| %%prettify |
| {{{ |
| <ui:composition |
| xmlns:ui="http://java.sun.com/jsf/facelets" |
| xmlns:h="http://java.sun.com/jsf/html" |
| xmlns:f="http://java.sun.com/jsf/core"> |
| <h3> |
| <h:outputText value="Lista Camere"/> |
| </h3> |
| <h:commandLink action="#{listController.nuovaCamera}" value="Nuova"/> |
| </ui:composition> |
| }}} |
| /% |
|
|
|
| /% |
| /% |
|