On 7/7/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> two points:
>
> this is relatively new, i think it made it in just before 1.3-beta1 or
> somewhere there
I think it's been in there for quite a while. But as I never depended
on it, I wouldn't know.
> you didnt know about it, so of course you would be writing
> getters/setters
Heh. My point is that everyone did that on this project, including you
as far as I can see.
i havent done any real wicket coding on that for a while though. i have been
in the j2me land since this was introduced. on my other projects i use this
feature all the time and dont imagine coding wicket without it anymore :)
- its easier to let the ide do that then write an
> inner class :) so you see - not having this feature leads to bad OO as
> you tend to break encapsulation
Like I said before, I agree. Though calling having a few getters and
setters on component you'd only use for Wicket bad OO is a bit far
fetched imo.
the point isnt that they are wicket-specific. the point is that they are
reusable, so if i take a component you wrote and put it into a panel i am
writing i dont want to put it into an inconsistent state by calling some
setter i shouldnt. ive done that before and had to go look into the source
to see what was going on. that is why if you look at a lot of wicket code i
wrote i use a lot of inner class models instead of getters/setters. when
that got annoying i discussed this feature with johan and he put it in. i
think we did have an announcement about it, but maybe we forgot :|
-igor
Eelco
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user