<HTML dir=ltr><HEAD><TITLE>Re: adding the Serializable interface to DataModel</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText51572 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT>I agree with Martin here, forcing Serializable on all DataModel implementations could have some strange results in some cases.</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>Regards,</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>~ Simon</DIV>
<DIV dir=ltr><BR>&nbsp;</DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> JSR 314 Open Mailing list on behalf of Martin Marinschek<BR><B>Sent:</B> Tue 4/28/2009 1:41 AM<BR><B>To:</B> JSR-314-OPEN@JCP.ORG<BR><B>Subject:</B> Re: adding the Serializable interface to DataModel<BR></FONT><BR></DIV></DIV>
<DIV>
<P><FONT size=2>I don't think the DataModel interface itself should be serializable<BR>(e.g. a ResultSetDataModel might not be serializable). But the<BR>implementations should be by default.<BR><BR>regards,<BR><BR>Martin<BR><BR>On 4/27/09, Kito Mann &lt;kito.mann@virtua.com&gt; wrote:<BR>&gt; +1 (I know it's past the stated deadline, but this should at least be moved<BR>&gt; to the 2.1 list)<BR>&gt;<BR>&gt; On Mon, Apr 27, 2009 at 4:33 PM, Dan Allen &lt;dan.j.allen@gmail.com&gt; wrote:<BR>&gt;<BR>&gt;&gt; Would it be possible to make DataModel serializable? Both Seam and Spring<BR>&gt;&gt; Faces have to override the built-in DataModel implementations just to add<BR>&gt;&gt; this interface, and it's really unnecessary.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; <A href="http://docs.jboss.org/seam/2.1.1.GA/api/org/jboss/seam/jsf/ListDataModel.html">http://docs.jboss.org/seam/2.1.1.GA/api/org/jboss/seam/jsf/ListDataModel.html</A><BR>&gt;&gt;<BR>&gt;&gt; <A href="http://static.springframework.org/spring-webflow/docs/2.0.x/javadoc-api/org/springframework/faces/model/SerializableListDataModel.html">http://static.springframework.org/spring-webflow/docs/2.0.x/javadoc-api/org/springframework/faces/model/SerializableListDataModel.html</A><BR>&gt;&gt;<BR>&gt;&gt; This seems like a pretty trivial change to make.<BR>&gt;&gt;<BR>&gt;&gt; -Dan<BR>&gt;&gt;<BR>&gt;&gt; --<BR>&gt;&gt; Dan Allen<BR>&gt;&gt; Senior Software Engineer, Red Hat | Author of Seam in Action<BR>&gt;&gt;<BR>&gt;&gt; <A href="http://mojavelinux.com/">http://mojavelinux.com</A><BR>&gt;&gt; <A href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</A><BR>&gt;&gt; <A href="http://in.relation.to/Bloggers/Dan">http://in.relation.to/Bloggers/Dan</A><BR>&gt;&gt;<BR>&gt;&gt; NOTE: While I make a strong effort to keep up with my email on a daily<BR>&gt;&gt; basis, personal or other work matters can sometimes keep me away<BR>&gt;&gt; from my email. If you contact me, but don't hear back for more than a<BR>&gt;&gt; week,<BR>&gt;&gt; it is very likely that I am excessively backlogged or the message was<BR>&gt;&gt; caught in the spam filters.&nbsp; Please don't hesitate to resend a message if<BR>&gt;&gt; you feel that it did not reach my attention.<BR>&gt;&gt;<BR>&gt;<BR><BR><BR>--<BR><BR><A href="http://www.irian.at/">http://www.irian.at</A><BR><BR>Your JSF powerhouse -<BR>JSF Consulting, Development and<BR>Courses in English and German<BR><BR>Professional Support for Apache MyFaces<BR></FONT></P></DIV></BODY></HTML>