| At line 1 changed one line |
| !!Sorgenti del corso |
| !!Risorse del Corso JSF 2.0 Base |
| At line 3 removed one line |
|
| At line 4 added 6 lines |
| %%tab-Requisiti |
| !!Requisiti |
| ;IDE:__Netbeans 6.9__ versione Java Web oppure __Eclipse 3.5.2__ con Server Adapter "Glassfish v3 JavaEE6" |
| ;Application Server: Glassfish v3 (Java EE6) |
|
| /% |
| At line 6 changed one line |
| !!Step 1 |
| !!Step 1: La navigazione |
|
| At line 51 changed one line |
| !!Step 2 |
| !!Step 2: Facelets templating |
|
| !Logo per l'header |
| At line 61 added one line |
| [salva con nome... |../cartella/sottocartella/header_logo.gif] |
| At line 142 changed one line |
| !!Step 3 |
| !!Step 3: i Managed Baen e lo scope |
| At line 197 changed one line |
| !!Step 4 |
| !!Step 4: inclusione con facelets e i componenti tabella |
| At line 245 changed one line |
| private Date dataFIne; |
| private Date dataFine; |
| At line 260 changed 2 lines |
| public Date getDataFIne() { |
| return dataFIne; |
| public Date getDataFine() { |
| return dataFine; |
| At line 263 changed 2 lines |
| public void setDataFIne(Date dataFIne) { |
| this.dataFIne = dataFIne; |
| public void setDataFine(Date dataFine) { |
| this.dataFine = dataFine; |
| At line 286 added 55 lines |
|
| !ListController.java |
| %%prettify |
| {{{ |
| /* |
| * To change this template, choose Tools | Templates |
| * and open the template in the editor. |
| */ |
| package corsojsf.managedbeans; |
|
| import corsojsf.model.Camera; |
| import corsojsf.model.Prenotazione; |
| import java.util.LinkedList; |
| import java.util.List; |
| import javax.faces.bean.ManagedBean; |
| import javax.faces.bean.SessionScoped; |
|
| @ManagedBean |
| @SessionScoped |
| public class ListController { |
|
| private List<Camera> camere = new LinkedList<Camera>(); |
| private List<Prenotazione> prenotazioni = new LinkedList<Prenotazione>(); |
| private Camera camera = new Camera(); |
| private Prenotazione prenotazione = new Prenotazione(); |
|
| public List<Camera> getCamere() { |
| return camere; |
| } |
|
| public List<Prenotazione> getPrenotazioni() { |
| return prenotazioni; |
| } |
|
| public Camera getCamera() { |
| return camera; |
| } |
|
| public void setCamera(Camera camera) { |
| this.camera = camera; |
| } |
|
| public Prenotazione getPrenotazione() { |
| return prenotazione; |
| } |
|
| public void setPrenotazione(Prenotazione prenotazione) { |
| this.prenotazione = prenotazione; |
| } |
| } |
|
| }}} |
| /% |
|
|
| At line 380 changed one line |
| !!Step 5 |
| !!Step 5: form di inserimento, componenti I/O e metodi action. |
| At line 442 changed one line |
| !!Step 6 |
| !!Step 6: metodi action con parametro |
| At line 476 changed one line |
| !!Step 7 |
| !!Step 7: i convertitori e i componenti "select" |
| At line 677 changed one line |
| !!Step 8 |
| !!Step 8: validazione standard e metodi di validazione |
| At line 720 changed one line |
| !!Step 9 |
| !!Step 9: messaggi, validazione "domain-level" e classi Validator |
| At line 819 removed 4 lines |
| /** |
| * |
| * @author mauro |
| */ |
| At line 832 changed one line |
| if (camera.getNumeroPosti()>2 && camera.getPrezzo().intValue() < 50); |
| if (camera.getNumeroPosti()>2 && camera.getPrezzo().intValue() < 50) |
| At line 851 changed one line |
| __<f:validator validatorId="cameraValidator"/>__ |
| <f:validator validatorId="cameraValidator"/> |
| At line 920 added 10 lines |
| %%tab-Downloads |
| !!Downloads |
|
| ||Descrizione||File |
| | Sorgenti dell'esempio completo | [SmeaCrud-src.zip] |
| | War dell'applicazione web | [SmeaCrud.war] |
| | Slide del corso | [Corso JSF.ppt] |
|
|
|
| At line 932 added 3 lines |
| /% |
|
| [appoggio] |