1 Reply Latest reply on Oct 25, 2007 1:17 PM by Markus Heidt

    Clob and converter/validation

    Markus Heidt Newbie

      I am using 2.0.0CR2 and will test it against the latest nightly build once there is an error free version.

      @Table(name = "Components")
      public class Components implements java.io.Serializable {
      @Column(name = "ID", unique = true, nullable = false)
      public int getId() {
       return this.id;
      @ManyToOne(fetch = FetchType.LAZY)
      @JoinColumn(name = "VehicleFamilyID", nullable = false)
      public VehicleFamilies getVehicleFamilies() {
       return this.vehicleFamilies;
      @Column(name = "Name", nullable = false, length = 50)
      @Length(max = 50)
      public String getName() {
       return this.name;
      @Column(name = "Description")
      public Clob getDescription() {
       return this.description;
      public class ComponentsManagerBean implements ComponentsManager {
      @In(required=false, value="newComponent") @Out(required=false, value="newComponent")
      private Components newComponent;
      public void createNewComponent(){
       newComponent = new Components();
       <h:panelGrid columns="2">
       <s:span styleClass="label">#{messages['component.name']}</s:span>
       <s:decorate id="component_name">
       <h:inputText value="#{newComponent.name}" required="true" />
       <h:message for="component_name" />
       <s:span styleClass="label">#{messages['component.description']}</s:span>
       <s:decorate id="component_description">
       <h:inputTextarea value="#{newComponent.description}" />
       <h:message for="component_description" />
       <s:span styleClass="label">#{messages['vehicle_family']}</s:span>
       <s:decorate id="vehicle_family">
       itemValue="0" />
       <f:selectItems value="#{componentsManager.vehicleFamiliesList}" />
       <s:convertEntity />
       <h:message for="vehicle_family" />
       <f:facet name="footer">
       <h:commandLink styleClass="button" action="#{componentsManager.createComponent}" >
       <h:graphicImage url="/img/ok.gif"

      A submit throws a
      Conversion Error setting value 'user input' for 'null Converter'.

      The example works, when I erase the description row.
      The selectOneMenu was throwing one as well when not using
      <s:convertEntity />.

      But what do I have to do with Clobs?

      And what about my style?
      Can I get rid of the @Factory somehow?

      Thanx in advance