title: Display two or more properties at ComboBox?
body: <p>I'm trying display two properties at a ComboBox. I tried <code>setItemCaptionPropertyId()</code> but this displays only <code>nome</code> and I want to display <code>nome</code> and <code>sobreNome</code> or more properties.</p>
  
  <p>I'm trying this.</p>
  
  <pre><code>//jpacontainer aluno
  private CustomJPAContainer&lt;Aluno&gt; dsAluno = new CustomJPAContainer&lt;Aluno&gt;(Aluno.class);
  
  //combobox aluno
          ComboBox cbxAluno = (ComboBox)field;
          cbxAluno.setItemCaptionMode(ItemCaptionMode.PROPERTY);
          cbxAluno.setConverter(new SingleSelectConverter&lt;Aluno&gt;(cbxAluno));
          cbxAluno.setImmediate(true);
          cbxAluno.setContainerDataSource(dsAluno);
          cbxAluno.setItemCaptionPropertyId("nome");
          cbxAluno.setItemCaptionPropertyId("sobreNome");
          cbxAluno.setWidth("10cm");
          cbxAluno.addValueChangeListener(this);
          tabAluno.addComponent(cbxAluno);
  
  //bean
  @Entity
  public class Aluno implements Serializable{ 
      private static final long serialVersionUID = 1L;
  
      @Id 
      @GeneratedValue(strategy=GenerationType.IDENTITY)
      private Long id;
  
      @NotNull @NotEmpty @Size(min=3, max=50) 
      private String nome;
  
      @NotNull @NotEmpty @Size(min=3, max=50)
      private String sobreNome;   
  
  }
  </code></pre>
  
  <p>How to I do that ? </p>
  
  <p>** I Solved the problem **</p>
  
  <p>I created a new attribute with name <code>caption</code>, and concatenated Strings that I want. 
  After create a getCaption() that return caption value;</p>
  
  <p>The solution.</p>
  
  <pre><code>@Transient
  private String caption;
  
  public String getCaption(){
     caption = nome + " " + sobreNome;
     return caption;
  }
  
  cbxAluno.setItemCaptionPropertyId("caption");
  </code></pre>
  
  <p>now works.!</p>