they are created on every response (or not but that is depending on
youre list setting)
But that is not importand, you you get a request/action listener from a
user then youre model is used
that you created when that page was served (responded)
So if you hold an hibernate model with a pk of an object and that
hibernate object loads the real db object
on attach of its model then you the action is always on the right
object.
johan
Phil Kulak wrote:
Oh, I think I get it. I'm looking at the source right now and it looks
like items are not created on each request (which is what I assumed).
So, that Hibernate model that I return should stick around for as long
as the user is looking at it. Is that right?
-Phil
On 6/23/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
in youre own model that you create you can store a variable where you
can identify youre real object.
When you are creating youre listmodel in that getListItemModel() call
you take youre real object
from the list (by its index) and store in youre model the pk or unique
identifier of that object.
Then the next time after rendering you have youre own model with its own
unique identifier.
johan
Phil Kulak wrote:
Say I'm using a list view that's backed by a list that I assume will
change on every request. The JavaDocs suggest that I can deal with
this problem by overriding getListItemModel, but I'm not sure I know
how to do that since I still only have the list and the index
available to me. For example: if a user clicks on index 3 of the list
after index 2 has been deleted by another user, even if I override
getListItemModel, I'm still looking at a list where index 3 is no
longer the item that user thinks (s)he's looking at. Am I missing
something here?
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
|