Right, sorry its been a while, I had some horrible issues getting tomcat
working properly but I've managed to deploy the project on Tomcat. My
logging setup isn't working perfectly but I'm seeing the same issues with
the back button and a few NotSerializableException lines in tomcat.log. 

The CategoryDAO definition is quite long, is there anything in particular
you wanted to see or shall I just post the whole class?

Cheers
Alex


Jeremy Thomerson-5 wrote:
> 
> Right - don't make your DAO serializable - the proxy thing should work.
> Like Igor said, try a different container (run it up in Jetty with the
> quickstart if you can - that should be quick and easy).
> 
> Let us know the results.  If it still happens, let us see the code where
> you
> define the category dao.
> 
> 
> -- 
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> On Thu, Jan 8, 2009 at 9:58 AM, quizzical <quixop...@gmail.com> wrote:
> 
>>
>> But if I have understood the docs
>> http://cwiki.apache.org/WICKET/spring.html
>> here  on the spring - annot project then categoryDao should be injected
>> with
>> a serializable proxy which can get a categoryDao from spring when needed
>> and
>> drop it when serialized.
>>
>>
>>
>> Serkan Camurcuoglu-3 wrote:
>> >
>> > so categoryDao implements java.io.Serializable but it cannot be
>> > serialized?
>> >
>> >
>> > quizzical wrote:
>> >> Thanks, that seems to be the problem, I'm getting
>> >> NotSerializableException,
>> >> the offending objects are injected using @SpringBean, which I thought
>> >> injected a proxy. I've read the docs online for spring-annot and I
>> can't
>> >> see
>> >> why this should be happening.
>> >>
>> >> I'm running glassfish and the log has this to say about the error:
>> >>
>> >> 'Cannot serialize session attribute categoryDao for session'
>> >>
>> >> Where categoryDao is the injected variable.
>> >>
>> >> Any idea what I'm doing wrong?
>> >> Cheers
>> >>
>> >>
>> >>
>> >> Serkan Camurcuoglu-3 wrote:
>> >>
>> >>> did you check your logs, if you are getting NotSerializableExceptions
>> in
>> >>> the background you may get page expired errors with back button..
>> >>>
>> >>>
>> >>> quizzical wrote:
>> >>>
>> >>>> Hi everyone,
>> >>>>
>> >>>> I'm in the process of writing an example ecommerce app to get to
>> know
>> >>>> wicket
>> >>>> and am really enjoying the experience.. At the moment I'm working on
>> a
>> >>>> page
>> >>>> which allows you to browse through a list of items in a database.
>> >>>>
>> >>>> For the list of items I created a panel which uses a DataView with a
>> >>>> SortableDataProvider and some orderByLinks, I also created a panel
>> for
>> >>>> viewing the available categories which controls the data the
>> DataView
>> >>>> is
>> >>>> working on.
>> >>>>
>> >>>> Everything works fine going forwards, I'm running into problems with
>> >>>> the
>> >>>> back button. If I click on any of the links in these panels, then
>> click
>> >>>> the
>> >>>> back button, then try and click another link I get a 'page expired'
>> >>>> error
>> >>>> page.
>> >>>>
>> >>>> Do I need to addStateChange on one of my components? If so which
>> one,
>> I
>> >>>> can't find much info about Change and how it is meant to be used.
>> >>>>
>> >>>> If this is a simple problem and someone can answer my question
>> easily
>> >>>> then I
>> >>>> will be very happy :) I have had a look through the forums but I
>> >>>> couldn't
>> >>>> find anything that helped me, it is possible of course that I was
>> using
>> >>>> the
>> >>>> wrong terms. If there is not enough information here then let me
>> know
>> >>>> and
>> >>>> I
>> >>>> will write a test case and post that.
>> >>>>
>> >>>> Cheers very much
>> >>>> Alex
>> >>>>
>> >>>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >>> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Back-button-%2B-dataview-problem-tp21348923p21354606.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Back-button-%2B-dataview-problem-tp21348923p21469340.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to