2 Replies Latest reply on Oct 30, 2007 6:50 AM by morten Matras

    Type Conversion not supported

    morten Matras Newbie

      This could be a hsql problem, but since I'm using default settings used in seam-gen I'm probably not the only one having this problem:

      I've added a List of addresses to my User class:

      @OneToMany(mappedBy="user", cascade = CascadeType.ALL)
       public List<Address> getAddresses() {
       return addresses;
       }
      


      I try to display the list of addresses in the view page of the user (user.xhtml). This is done using the following snippet:
      <rich:simpleTogglePanel switchType="client" label="Adresser"
       opened="false" rendered="#{not empty userHome.instance.addresses}">
       <f:facet name="header">Addresses</f:facet>
       <h:dataTable id="addressList" var="address"
       value="#{userHome.instance.addresses}"
       rendered="#{not empty userHome.instance.addresses}">
       <h:column>
       <f:facet name="header">Name</f:facet>
       #{address.name}
       </h:column>
       </h:dataTable>
      </rich:simpleTogglePanel>
      


      When I try viewing the page I get the Type Conversion not supported error.

      Should I change database?
      Should I modify the code?