Hello,
I'm trying to figure out on how to force wicket to re-render requested page.
On a first try it fails when it deserialises it from disk due to changes in
classfile (introduction of serialversionuid is not a solution for us,
unfortunately). 
Please have a look at the following code snippet, I've been trying to get
.class from mounted pages and then invoke "return new
RenderPageRequestHandler"...but this doesn't seem to work.

... extends AbstractRequestCycleListener {

public IRequestHandler onException(RequestCycle cycle, Exception ex) {

                if (ex instanceof RuntimeException && ex.getMessage() != null &&
ex.getMessage().contains("Could not deserialize object from byte[]")) {
                        IPageRequestHandler handler = 
cycle.find(IPageRequestHandler.class);
                        if (handler == null) {
                                for (Iterator<IRequestMapper> it =
Application.get().getRootRequestMapperAsCompound().iterator(); it.hasNext();
) {
                                        IRequestMapper mapper = it.next();
                                        if (mapper instanceof MountedMapper) {
                                                MountedMapper mm = 
(MountedMapper) mapper;


--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to