Good catch, thanks!
Here is why it was so confusing. The exception we see is:
ognl.OgnlException: email [java.lang.ClassCastException: [Ljavax.mail.internet.InternetAddress;]
The thing that confused me was [] around the class name, but upon closer inspection the closing "]" is actually coming from OgnlException so it all makes sense now.
Thanks again, Gili
Eelco Hillenius wrote:
I just made a test that uses a BoundCompoundPropertyModel and a custom class (Address) with a custom converter, and it works like a charm.
After that, I tried your exact code, and found the problem at the first run:
InternetAddress.parse((String) value) returns InternetAddress[], while you set: InternetAddress (not an array).
So, fix that, and your code will work.
Eelco
Gili wrote:
If you look at my code (previous email) you will notice that I am using a BoundCompoundPropertyModel and binding the InternetAddress type to the email component. In other words, this should already be working.
Gili
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user