I have a form that has a few complex objects. I have a property editor that looks them up based on the input string just fine with the "setAsText()" methods in the property editor.
However, the "getAsText()" method in the property editor doesn't seem to work properly. Essentially the propertyeditor setAsText takes a string logical key of the object and returns it from the database. The getAsText returns the logical key field from the object.
This all works fine in the forward direction; I enter my string that's the key for the object, and it gets bound correctly. However, if there is a validation error on the page (or if I return to it upon navigation within the FormWizard), the nice, primary key string is replaced by the default toString() for that object (org.evilrob.blah.blah.blah@Af93bb). Certainly I could have the toString() method for my object return its primary key value, but I hate relying on toString() for real functionality within the application.
Should my property editor be working in the other direction? Is something going wrong that's preventing it from working, or will property editors not work that "direction"?