Hello,

I've a textfield that accept an integer (it represents a foreign key). 

I would like it to be converted as an instance of MyClass before updating my
model.

But I don't know how to specifiy a custom converter for a field...

I would like to implement this converter like this:
<code>
Integer i = (Integer) myfield.getValue();
MyClass m = new MyClassDAO().findById(i);
return m;
</code>

Is it possible?
-- 
View this message in context: 
http://www.nabble.com/Use-a-custom-converter-%28IntegerToMyClass%29-tf4887609.html#a13989621
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to