On 2/22/07, Gabor Szokoli <[EMAIL PROTECTED]> wrote:
Hi!
On 2/22/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> > > Will new Label("foo", fooModel.getFoo() + "bar")kind of hardcoding
conflict in some subtle way with the concept of detachable models?
[detachable model for concatenated string snipped]
> Can I assume that doing all this may not be worth it if you are only
trying
> to derive a simple String value to put into a label - so the
"hardcoding"
> may be okay for most scenarios?
Let's see if I understand wicket basics by now: My take is that each
such "hardcoded" string model remains in the session.
yep
so you think of the tradeoff. you can either serialize a string or a model
class. which one would be smaller? for short strings the string will
probably take up less space.
another thing to consider is whether or not you need this model to be
refreshable. if you put a string in the model never changes, it always
contains the string no matter how many times you repaint the page. this
might not matter when used inside repeaters that rebuild their component
hierarchy on every request.
-igor
Gabor Szokoli
new guy
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user