Custom @RequestParam type handler?

Yes, you should just register a custom property editor.

Yes, you should just register a custom property editor: @InitBinder public void initBinder(WebDataBinder binder) { binder. RegisterCustomEditor(CustomType. Class, new CustomTypePropertyEditor()); } Update: Since you need to access the DAO, you need the property editor as a spring bean.

Something like: @Component public class AccountPropertyEditor extends PropertyEditorSupport { @Inject private AccountDAO accountDao; @Override public void setAsText(String text) throws IllegalArgumentException { setValue(accountDao. GetById(Integer. ParseInt(text))); } @Override public String getAsText() { return String.

ValueOf(((Account) getValue()).getId()); } } And then, when registering the editor, get the editor via injection rather than instantiating it.

I updated my post. FYI – Erik Apr 18 at 8:38 @Erik see updated – Bozho Apr 18 at 8:43 Great solution. Thanks!

– Erik Apr 18 at 9:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send