
Originally Posted by
Wolfram
I think he's refering to
this post introducing his SelectionControl.
@InverseFalcon: Thanks, I tried that briefly before posting myself. I didn't work for me right away, but I guess, I will look into it again.
Did you have any issues with a "ConversionExecutorNotFoundException" using your solution?
I've fixed ConversionExecutorNotFoundException by adding custom data converters.
Here's the custom type converter. Maybe return null is the issue for me.
Code:
package com.eon.ibuy.forms;
import org.springframework.binding.convert.converters.StringToObject;
import com.eon.ibuy.persistence.Country;
public class CountryToString extends StringToObject {
public CountryToString(Class country) {
super(country);
System.out.println(">>>>countryBLA");
}
@Override
protected Object toObject(String countryId, Class country) throws Exception {
System.out.println(">>>>countryBLA1: " + countryId);
return null;
}
@Override
protected String toString(Object country) throws Exception {
System.out.println(">>>>countryBLA2: " + ((Country)country).getCountryId());
return ((Country)country).getCountryName();
}
}
How can I access hibernate dao from above code? (from toObject function)?