Of course it could be possible but if i have 10 classes, i would like to
avoid writing 10 wrappers..
I think the current implementation should be improved to take into
account Autoboxing feature. 

-----Original Message-----
From: Richard Yee [mailto:[EMAIL PROTECTED] 
Sent: samedi 12 janvier 2008 23:18
To: MyFaces Discussion
Subject: Re: [Trinidad] tr:<tr:selectOneChoice with value mapped to an
Integer

Can you write an adapter class to wrap you bean and do the necessary
conversion?

-R

VISTICOT FREDERIC wrote:
> I'm using <tr:selectOneChoice with value mapped to an attribute att1 
> of type Integer.
> The combo box is not rendered correctly. Only the value is displayed.
>
> The solution is to use setAtt1(int att1).
> But the pb is that my POJO containing the att1 attribute can not be 
> modified !!!
> What can i do ? Of course i'm using JDK1.5
>
> Method is:
> Int getAtt1()
>
> And setAtt1(Integer att1)
>
> Fred
>
>
>
>   

Reply via email to