Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
ppt
Corso JSF.ppt 783.9 kB 1 02-Sep-2010 07:52 m.sanfilippo
zip
SmeaCrud-src.zip 31.7 kB 1 31-Aug-2010 16:02 Administrator
war
SmeaCrud.war 30.9 kB 1 31-Aug-2010 16:02 Administrator
gif
jsf.gif 5.7 kB 1 23-Aug-2010 19:42 Administrator

This page (revision-70) was last changed on 02-Sep-2010 09:10 by m.sanfilippo  

This page was created on 23-Aug-2010 19:35 by Administrator

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 338 changed one line
<ui:composition
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
At line 676 added 2 lines
%%tab-Parte8
!!Parte 8
At line 679 added 19 lines
!camera.xhtml (porzione)
%%prettify
{{{
[...]
<h:outputLabel for="posti" value="posti letto"/>
<h:inputText id="posti" value="#{listController.camera.numeroPosti}"
validatorMessage="Il numero di posti deve essere compreso tra 1 e 5">
<f:validateLongRange minimum="1" maximum="5"/>
</h:inputText>
<h:outputLabel for="prezzo" value="prezzo"/>
<h:inputText id="prezzo" value="#{listController.camera.prezzo}"
validator="#{listController.validatePrezzo}"/>
[...]
}}}
/%
At line 699 added 17 lines
!ListController.java (porzione)
%%prettify
{{{
[...]
/*validator*/
public void validatePrezzo(FacesContext context, UIComponent component, Object enteredValue) throws ValidatorException {
BigDecimal prezzo=(BigDecimal)enteredValue;
if (prezzo.intValue()%2!=0){
throw new ValidatorException(
new FacesMessage("Errore di validazione: la parte intera del prezzo deve essere pari"));
}
}
[...]
}}}
At line 717 added 22 lines
%%tab-Parte9
!!Parte 9
!camera.xhtml (porzione)
%%prettify
{{{
[...]
<h:outputLabel for="posti" value="posti letto"/>
<h:inputText id="posti" value="#{listController.camera.numeroPosti}"
validatorMessage="Il numero di posti deve essere compreso tra 1 e 5">
<f:validateLongRange minimum="1" maximum="5"/>
</h:inputText>
<h:outputLabel for="prezzo" value="prezzo"/>
<h:inputText id="prezzo" value="#{listController.camera.prezzo}"
validator="#{listController.validatePrezzo}"/>
[...]
}}}
At line 741 added 24 lines
!ListController.java (porzione)
%%prettify
{{{
[...]
/*validator*/
public void validatePrezzo(FacesContext context, UIComponent component, Object enteredValue) throws ValidatorException {
BigDecimal prezzo=(BigDecimal)enteredValue;
if (prezzo.intValue()%2!=0){
throw new ValidatorException(
new FacesMessage("Errore di validazione: la parte intera del prezzo deve essere pari"));
}
}
[...]
}}}
/%
/%
/%
Version Date Modified Size Author Changes ... Change note
70 02-Sep-2010 09:10 23.707 kB m.sanfilippo to previous
69 02-Sep-2010 07:52 23.693 kB m.sanfilippo to previous | to last
68 02-Sep-2010 07:51 23.676 kB m.sanfilippo to previous | to last
67 01-Sep-2010 16:54 24.929 kB Administrator to previous | to last
66 01-Sep-2010 16:54 23.674 kB Administrator to previous | to last
65 01-Sep-2010 16:52 24.749 kB Administrator to previous | to last
64 01-Sep-2010 08:21 23.674 kB m.sanfilippo to previous | to last
63 01-Sep-2010 08:13 23.384 kB m.sanfilippo to previous | to last
62 31-Aug-2010 17:48 23.384 kB m.sanfilippo to previous | to last
61 31-Aug-2010 16:27 23.372 kB Administrator to previous | to last
« This page (revision-70) was last changed on 02-Sep-2010 09:10 by m.sanfilippo