Ralf Ebert wrote:
Hi,
this is not the case.
what kind of redirect strategy shouldn't influence in what state
onBeginRequest is called
It is called when the render() of the page is called not before.
The name is a bit wrong i think, it should be onBeginRespond()...
then I was wrong, I'm sorry. I checked this again and found the
reason for not seeing updates in my case. The business method I call
in the onclick listener changes the object, but this leaves the model
object untouched. I'm using LoadableDetachableModel in general, but
the object which was changed was (of course) attached already and
nothing refreshed the object after the change has occured. I fixed
this by calling model.detach() after doing the change although I
think this is a bit too explicit (and only works for the model of the
component which did the change). I think these problems will also go
away when working within an Hibernate transaction per request because
(I hope) Hibernate will refresh the state of all objects in session
after a change occurs.
Or is there something I miss? How do you handle these kind of "model
needs to be refreshed"-cases?
The reloading happens automatically each request. At the end of each
request, detach is called on all models, and in a new request the model
will be attached (i.e. reloaded) when you first access it. When you need
it to be reloaded/ attached again within that same request, calling
detach manually is the thing to do.
Eelco
Regards,
Ralf
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user