i'm trying to mentally walk the line here between giving up on what johan wants and sharing the same worries you do. the only compromise i can see so far is this:

1. try to improve staleness detection, if possible. consider limiting staleness detection to forms with affected mutator components.


I really like to see youre implementation for this :))

me too! ;-)

it's a hard problem, but not one i'm convinced is unsolvable yet.


2. restrict cloning to uses of replace() only, ensuring that only then is cloning ever done.


removeAll really has exactly the same affect.

not /exactly/ the same. and we don't have to clone pages when removeAll() is called. that can be handled with staleness detection (whether automatic or manual).



3. put a warning on any component that uses replace() that the component will cause the page to be cloned and have a lengthy discussion in the same javadoc of what that will mean to the user


i agree. And i still say, feature is not enabled by default....

that's a good point. we could make documentation of this more foolproof if it was disabled by default. when replace() is called, if the user hasn't enabled replace-cloning in their application settings, an exception would be thrown with a serious warning with good details and a link to documentation on the subject. that way someone can't use your tab component and not know that cloning will happen to pages using it.



i've got to say that even though i'm looking for compromise (especially because that has been so productive on wicket to date!), my gut instinct is still that we should remove replace() and never clone anything. frankly cloning scares me anytime i see it.


Then how are tabpanels handled nicely.. Especially the nested onces (we send you a picture)
Almost all our webapps work that way. Everythings is tabs in tabs in tabs.


I agree that the highest tab is not a problem. The problem arises in nested tabs.
setVisible i really don't like because then we get one big HUGE (and i mean really HUGE) page.

no i get it. you've identified a real problem. i'm just saying as a designed i hate replace() instinctually. ;-)



johan



-------------------------------------------------------
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_id=6595&alloc_id=14396&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_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to