OpenXavaTest - Products management
  control alt P - Generate a PDF report with displayed data in list control alt X - Generate a Excel report with displayed data in list control N - Create a new entity control D - Delete the selected objects   Detail - List - Both  
 - Customize
Sample of Color 
Family 
F7 - Detail mode  - Delete record
MULTAS DE TRAFICO 
28.00 
NOCOLOR 
 
SOFTWARE 
ALICANTE CENTROX 
F7 - Detail mode  - Delete record
IBM ESERVER ISERIES 270 
20.00 
NOCOLOR 
 
HARDWARE 
CENTRAL VALENCIA 
F7 - Detail mode  - Delete record
XAVA 
0.00 
ERROR 
 
SOFTWARE 
VALENCIA NORTE 
F7 - Detail mode  - Delete record
CUATRE 
555.00 
RED 
CAR 
SOFTWARE 
MODIFIED WAREHOUSE 
F7 - Detail mode  - Delete record
PROVAX 
11.00 
BLACK 
 
SOFTWARE 
 
F7 - Detail mode  - Delete record
SEIS 
12.00 
BLACK 
 
SOFTWARE 
 
F7 - Detail mode  - Delete record
SIETE 
20.00 
NOCOLOR 
 
SOFTWARE 
 
F7 - Detail mode  - Delete record
PRUEBA 13 
12.00 
RED 
CAR 
HARDWARE 
ALMA 4 
1   rows per page There are 8 records in list ( Hide them)
Some code from Product

Dependent combos

In order that the combo elements depend on the value of another property (combo or not) is only needed to add some attributes to the @DescriptionsList annotation. In this way:

@ManyToOne(optional=false, fetch=FetchType.LAZY)
@DescriptionsList(depends="family", condition="${family.number} = ?")
private Subfamily subfamily;

When the family changes the subfamily combo is refilled. Try it in the above portlet.

Image gallery

Add a image gallery to an entity is as easy as add the next code:

@Stereotype("IMAGES_GALLERY")
private String photos;