Hi Warren,
It should not be called twice. Not within the same request that is.
Possible causes:
- you have 2 model instances instead of 1
- there is a bug in Wicket
If you are sure it the latter, please provide a quickstart and add it to
a new Jira issue.
Regards,
Erik.
Warren wrote:
I have a page that displays a lot of labels and two text field. It is
refreshed thru an AjaxFormSubmitBehavior that just refreshes the same page
with a new item using a LoadableDetachableModel. I need to update the item
displayed and retrieve a new one. I am doing this within the load method.
protected Object load()
{
// Update last Item
// Retrieve next Item
}
Everything works, but load() gets called twice. I understand why that
happens, but I only need it to be called once. I can use a flag to make the
body of load run once, but this does not seem very clean and I can see it
causing problems. Is there a better way to achieve what I am trying to do?
Thanks,
Warren Bell
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]