Did we do removeAll with the code Cameron is using?

Besides that. if a component model isn't updated when it is not visible then this is a nice case for the back button :)
Didn't tested it but what happens if i have a form with a component that i fill in
then in the submit that component is made invisible then it goes back changes the value and does the post again...
Just something that pops in my head when reading this thread :)
Especially now when the backbutton works pretty well in all the cases i tried out :))


johan


Jonathan Locke wrote:


actually, i think the components are not invisible. they actually get removed as you change pages.


see ListView.internalOnBeginRequest(), which does removeAll() unless you tell it to optimize removal, in which case it tries to only remove components that are outside the view.

your problem seems quite odd.  i wonder what it is...

Cameron Braid wrote:

Does the paginated list view automatically make the non displayed form
components 'not visible' or does it just not render them because they are
not in the current page ?


Cameron.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:wicket-develop-
[EMAIL PROTECTED] On Behalf Of Jonathan Locke
Sent: Friday, 25 March 2005 12:37 AM
To: [email protected]
Subject: [Wicket-develop] [Fwd: [ wicket-Bugs-1166884 ] Model data is lost
when using a paginated list within a form]



i looked at the form code and i'm puzzled. only form components that are visible update their models... will be interesting to debug this. i can try to get it done tonight or tomorrow if you've got that repro case, cameron...

-------- Original Message --------
Subject:     [ wicket-Bugs-1166884 ] Model data is lost when using a
paginated list within a form
Date:     Thu, 24 Mar 2005 06:26:26 -0800
From:     SourceForge.net <[EMAIL PROTECTED]>
To:     [EMAIL PROTECTED]



Bugs item #1166884, was opened at 2005-03-20 19:59
Message generated for change (Comment added) made by cameronbraid
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1166884&group


_id=119783

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Cameron Braid (cameronbraid)
Assigned to: Nobody/Anonymous (nobody)
Summary: Model data is lost when using a paginated list within a form

Initial Comment:
I have a page with a form that contains a pagenated
list, with a grid like input form (i.e. a textfield per
list item)

The list model contains 6 elements.
The page size is 5.
It displays the first 5 elements fine, with values in
each text box.
If I then navigate to the second page, it shows the
last element's input box.
I then submit the form.
I then navigate back to the first page and all of the
text boxes are empty.

It appears that the submit process traverses all
components in the form (which means all list items in
the list) and gets them to update their model.  This is
setting null into my list item properties.




----------------------------------------------------------------------



Comment By: Cameron Braid (cameronbraid)

Date: 2005-03-25 00:26

Message:
Logged In: YES
user_id=196175

I'll create a small sample app that demonstrates this.

----------------------------------------------------------------------

Comment By: Jonathan Locke (jonathanlocke)
Date: 2005-03-24 23:14

Message:
Logged In: YES
user_id=486414

does this still repro against the current HEAD?  can you
send me the code or upload it here?  thanks!

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1166884&group


_id=119783



-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.
Register
by 3/29 & save $300 http://ads.osdn.com/?ad_idh83&alloc_id149&op=ick
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop




-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_idh83&alloc_id149&op�k
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop






-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_idh83&alloc_id149&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to