Results 1 to 2 of 2

Thread: Custom property editors and Spring RCP validation?

  1. #1
    Join Date
    Feb 2005
    Posts
    23

    Default Custom property editors and Spring RCP validation?

    I'm creating a property editor with a custom component, and I'm trying to figure out how to make it so that Spring RCP's built-in validation will work with it. The property editor is quite simple in that it is simply a JTextField that verifies that it can parse the text as a number and formats that number as currency on focus lost (which is why I think I need a custom component, so I can register the focus lost listener encapsulated inside the property editor itself).

    When I supply my custom property editor, I can see in the Spring RCP code that my required validation rule is registered, but for some reason when I tab out (I'm using a focus lost value setter), it doesn't seem to be validating the field.

    Any ideas?

    Thanks,
    Scott Wells

  2. #2
    Join Date
    Feb 2005
    Posts
    23

    Default

    Never mind. I got it to work. I was being an idiot. When focus shifted, I was firing a property change event, but I wasn't calling setValue() before I did so and Spring RCP was doing the right thing and short-circuiting any processing because it looked like the value hadn't changed.

    Thanks,
    Scott

Similar Threads

  1. Replies: 5
    Last Post: Aug 9th, 2008, 05:30 AM
  2. Gaijin Studio for Spring MVC 0.9.2 Released
    By dadams in forum Announcements
    Replies: 8
    Last Post: May 30th, 2007, 10:48 PM
  3. Replies: 2
    Last Post: Aug 2nd, 2006, 10:18 PM
  4. Replies: 1
    Last Post: Jan 17th, 2005, 04:17 AM
  5. Replies: 0
    Last Post: Oct 7th, 2004, 09:53 PM

Posting Permissions

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