Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
ReflectivePropertyEditor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ReflectivePropertyEditor

    I have this problem. Im trying to use ReflectivePropertyEditor but the dataAccessMethod on my dataAccessObject looks like this

    public getCustomer(int idCustomer);

    and ReflectivePropertyEditor always use a String as the method parameter type.

    Any idea ????

    Thanks

    Ignacio

  • #2
    Originally posted by igalmarino View Post
    I have this problem. Im trying to use ReflectivePropertyEditor but the dataAccessMethod on my dataAccessObject looks like this

    public getCustomer(int idCustomer);

    and ReflectivePropertyEditor always use a String as the method parameter type.
    You can use a PropertyEditor for converting between the two.
    See :
    https://springmodules.dev.java.net/s...rtyEditor.html
    https://springmodules.dev.java.net/s...PropertyEditor

    Cheers,

    Sergio B.

    Comment


    • #3
      Ive tried this and i works perfect, the problems is that a need an int not an Integer ...

      Ignacio

      Originally posted by sbtourist View Post
      You can use a PropertyEditor for converting between the two.
      See :
      https://springmodules.dev.java.net/s...rtyEditor.html
      https://springmodules.dev.java.net/s...PropertyEditor

      Cheers,

      Sergio B.

      Comment


      • #4
        Originally posted by igalmarino View Post
        Ive tried this and i works perfect, the problems is that a need an int not an Integer ...
        Hi,

        sorry for the late response.

        You are right: you are currently forced to use the Integer wrapper class.
        You can open a Jira issue about that.

        Cheers,

        Sergio B.

        Comment

        Working...
        X