Results 1 to 4 of 4

Thread: non string properties in a form

  1. #1
    Join Date
    Mar 2010
    Posts
    13

    Default non string properties in a form

    Hello,
    I would like to display an instance of entity class in a form. Found out that form accept only properties in string, but I have another properties eg. int, char and so on and there comes the exception No converter registered to convert from sourceClass.

    Tried to find some examples on using convertors but there are a lot of classes and I am confused about them.

    Could someone give a link or a simple example on converting char properties to string to display them in a form?

    Thank you all

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    That should work by default, which means you configured something which breaks the defaults.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3

    Default

    For more complicated binding, you might need to set up a DataBinder.

  4. #4
    Join Date
    Mar 2010
    Posts
    13

    Default

    Thank you all for your answers. Marten, you were right about default working, works without problems with long, int, short. But when I have a Character property the same exception appears.

    Is this matter of spring rcp?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •