You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Robert, Brice" <Br...@alliancebernstein.com> on 2006/11/27 22:30:32 UTC

Mixin (Introduction Problem)

Somebody,

 

http://www.springframework.org/docs/api/org/springframework/aop/support/
DelegatingIntroductionInterceptor.html

 

I would like to use a Mixin to know when an object from a List has been
modified so I don't have to save the entire list.

 

I use Spring Introduction AOP advisor to add a new isModified field in a
config:TableView.

(See example from Ch7
http://www.apress.com/book/bookDisplay.html?bID=405)

 

The ProxyFactory.setOptimize(true); enables proxying via CGLIB (The
other one - Java doesn't work), it gives me a $Proxy86
classCassException.

 

Everything works great except when I start navigating using TablePager,
I got a Serialization exception. As a work around I can limit the data
to a single page and simulate the TablePager programmatically 

 

Has anyone faced the same problem, I just don't want to write all
setters manually to set an isModified flag. I have around 180 fields to
set.

 

Thanks for any hints

 

--The exception---------------------------------------

Unable to encode object
com.alliancebernstein.cfs.raa.domain.object.TransactionDetail@1ad067f:
java.lang.reflect.Method. This is sometimes caused when classes being
serialized to a stream dont implement java.io.Serializable. 

org.apache.hivemind.ApplicationRuntimeException

Unable to encode object
com.alliancebernstein.cfs.raa.domain.object.TransactionDetail@1ad067f:
java.lang.reflect.Method. This is sometimes caused when classes being
serialized to a stream dont implement java.io.Serializable.

  

[ +/- ] Exception: java.lang.reflect.Method 

java.io.NotSerializableException

java.lang.reflect.Method

 

 

 


-----------------------------------------
The information contained in this transmission may be privileged and
confidential and is intended only for the use of the person(s) named
above. If you are not the intended recipient, or an employee or agent responsible
for delivering this message to the intended recipient, any review, dissemination,
distribution or duplication of this communication is strictly prohibited. If you are
not the intended recipient, please contact the sender immediately by reply e-mail
and destroy all copies of the original message. Please note that we do not accept
account orders and/or instructions by e-mail, and therefore will not be responsible
for carrying out such orders and/or instructions.  If you, as the intended recipient
of this message, the purpose of which is to inform and update our clients, prospects
and consultants of developments relating to our services and products, would not
like to receive further e-mail correspondence from the sender, please "reply" to the
sender indicating your wishes.  In the U.S.: 1345 Avenue of the Americas, New York,
NY 10105.