I agree with Martin here, forcing Serializable on all DataModel implementations could have some strange results in some cases.
 
Regards,
 
~ Simon

 

From: JSR 314 Open Mailing list on behalf of Martin Marinschek
Sent: Tue 4/28/2009 1:41 AM
To: JSR-314-OPEN@JCP.ORG
Subject: Re: adding the Serializable interface to DataModel

I don't think the DataModel interface itself should be serializable
(e.g. a ResultSetDataModel might not be serializable). But the
implementations should be by default.

regards,

Martin

On 4/27/09, Kito Mann <kito.mann@virtua.com> wrote:
> +1 (I know it's past the stated deadline, but this should at least be moved
> to the 2.1 list)
>
> On Mon, Apr 27, 2009 at 4:33 PM, Dan Allen <dan.j.allen@gmail.com> wrote:
>
>> Would it be possible to make DataModel serializable? Both Seam and Spring
>> Faces have to override the built-in DataModel implementations just to add
>> this interface, and it's really unnecessary.
>>
>>
>> http://docs.jboss.org/seam/2.1.1.GA/api/org/jboss/seam/jsf/ListDataModel.html
>>
>> http://static.springframework.org/spring-webflow/docs/2.0.x/javadoc-api/org/springframework/faces/model/SerializableListDataModel.html
>>
>> This seems like a pretty trivial change to make.
>>
>> -Dan
>>
>> --
>> Dan Allen
>> Senior Software Engineer, Red Hat | Author of Seam in Action
>>
>> http://mojavelinux.com
>> http://mojavelinux.com/seaminaction
>> http://in.relation.to/Bloggers/Dan
>>
>> NOTE: While I make a strong effort to keep up with my email on a daily
>> basis, personal or other work matters can sometimes keep me away
>> from my email. If you contact me, but don't hear back for more than a
>> week,
>> it is very likely that I am excessively backlogged or the message was
>> caught in the spam filters.  Please don't hesitate to resend a message if
>> you feel that it did not reach my attention.
>>
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces