You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Igor Vaynberg <ig...@gmail.com> on 2009/11/25 22:56:06 UTC
PropertyModels *without* strings
http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
-igor
Re: PropertyModels *without* strings
Posted by Gerolf Seitz <ge...@gmail.com>.
On Thu, Nov 26, 2009 at 8:43 AM, Igor Vaynberg <ig...@gmail.com>wrote:
> i am actually somewhat shocked that someone can look at this and not
> see the value. this fills in a huge gap in java until methods and
> fields become first-class citizens. but, maybe im just weird.
>
>
i was like this > < close to enhancing lombok to automatically create at
least
java.reflect.Field/Method references and constants for property names.
but the bindgen(-wicket) solution is way better. thanks for that :)
> -igor
>
> On Wed, Nov 25, 2009 at 11:28 PM, Martin Makundi
> <ma...@koodaripalvelut.com> wrote:
> > If refactoring is not supported it is just easier to use string
> > constants, which do not break.
> >
> > **
> > Martin
> >
> > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
> >> as far as i have read, the binding "methods" aren't automatically
> refactored
> >> (eg. renamed),
> >> but you get compiler errors in the code where you use the "old names".
> so it
> >> should be
> >> fairly easy to fix your own code (in contrast to some strings)
> >>
> >> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
> >> Christian.Giambalvo@excelsisnet.com> wrote:
> >>
> >>> Is refactoring available for bindgen?
> >>>
> >>> -----Ursprüngliche Nachricht-----
> >>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> >>> Gesendet: Mittwoch, 25. November 2009 22:56
> >>> An: users@wicket.apache.org; dev@wicket.apache.org
> >>> Betreff: PropertyModels *without* strings
> >>>
> >>>
> >>>
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
> >>>
> >>> -igor
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: PropertyModels *without* strings
Posted by Gerolf Seitz <ge...@gmail.com>.
On Thu, Nov 26, 2009 at 8:54 AM, Martin Makundi <
martin.makundi@koodaripalvelut.com> wrote:
> I would say that refactoring calls for improvement in the bindgen
> approach. Is it theoretically possible to facilitate refactoring with
> bindgen? Is it practically possible to facilitate refactoring with
> bindgen?
>
i'm wondering whether it would be feasible to rewrite bindgen on top
of lombok, since they can generate code via APT and eclipse AST
modification.
also, since version 0.9.0, support for Refactor -> Rename is built in.
gerolf
Re: PropertyModels *without* strings
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
> suppose you rename Person.getName() to Person.getFullName(). now you
> have to find all places in your code where you have referenced "name"
> as part of a string property expression and change it to "fullName".
If you have a constant PERSON.NAME all you need to do is refactor the
constant and change the constant value. Instead of going through
hundreds of broken lines of code, which is a mess even just in
principle.
I would say that refactoring calls for improvement in the bindgen
approach. Is it theoretically possible to facilitate refactoring with
bindgen? Is it practically possible to facilitate refactoring with
bindgen?
> add(new TextField<Integer>("age", new PropertyModel(person, "age")));
>
> there is no way to verify that "age" expression is of type Integer and
> not a value object or a string, but bindgen bindings are typesafe and
> a non-Integer binding would cause a compilation error.
This is a great big plus.
> i am actually somewhat shocked that someone can look at this and not
> see the value. this fills in a huge gap in java until methods and
> fields become first-class citizens. but, maybe im just weird.
I'm just saying that it should be made even better.
**
Martin
>
> On Wed, Nov 25, 2009 at 11:28 PM, Martin Makundi
> <ma...@koodaripalvelut.com> wrote:
>> If refactoring is not supported it is just easier to use string
>> constants, which do not break.
>>
>> **
>> Martin
>>
>> 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
>>> as far as i have read, the binding "methods" aren't automatically refactored
>>> (eg. renamed),
>>> but you get compiler errors in the code where you use the "old names". so it
>>> should be
>>> fairly easy to fix your own code (in contrast to some strings)
>>>
>>> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
>>> Christian.Giambalvo@excelsisnet.com> wrote:
>>>
>>>> Is refactoring available for bindgen?
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
>>>> Gesendet: Mittwoch, 25. November 2009 22:56
>>>> An: users@wicket.apache.org; dev@wicket.apache.org
>>>> Betreff: PropertyModels *without* strings
>>>>
>>>>
>>>> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
>>>>
>>>> -igor
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
AW: PropertyModels *without* strings
Posted by "Giambalvo, Christian" <Ch...@excelsisnet.com>.
You're right, it's an improvment. And will use it.
I just wanted to know is refactoring is supported.
Anyway it's a nice thing.
Thanks for that :)
Greets
-----Ursprüngliche Nachricht-----
Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
Gesendet: Donnerstag, 26. November 2009 08:44
An: users@wicket.apache.org
Betreff: Re: PropertyModels *without* strings
the whole point is that strings brake, whether they are constants or not.
eg
add(new Label("parentName", new PropertyModel(person, "parent.name")));
suppose you rename Person.getName() to Person.getFullName(). now you
have to find all places in your code where you have referenced "name"
as part of a string property expression and change it to "fullName".
if you miss somewhere you wont know until runtime. in my projects a
lot of objects have a "name" field, so the process of identifying all
the places that need to be updated involves sifting through a bunch of
strings and figuring out if what is before the ".name" is of type
Person. tedious and error-prone.
although bindgen does not support refactoring, as soon as the change
is made all the places that need to be updated will be reported by the
compiler. that is an *enormous* improvement in non-trivial
applications.
another big advantage is that bindings carry type information, eg:
add(new TextField<Integer>("age", new PropertyModel(person, "age")));
there is no way to verify that "age" expression is of type Integer and
not a value object or a string, but bindgen bindings are typesafe and
a non-Integer binding would cause a compilation error.
i am actually somewhat shocked that someone can look at this and not
see the value. this fills in a huge gap in java until methods and
fields become first-class citizens. but, maybe im just weird.
-igor
On Wed, Nov 25, 2009 at 11:28 PM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> If refactoring is not supported it is just easier to use string
> constants, which do not break.
>
> **
> Martin
>
> 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
>> as far as i have read, the binding "methods" aren't automatically refactored
>> (eg. renamed),
>> but you get compiler errors in the code where you use the "old names". so it
>> should be
>> fairly easy to fix your own code (in contrast to some strings)
>>
>> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
>> Christian.Giambalvo@excelsisnet.com> wrote:
>>
>>> Is refactoring available for bindgen?
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
>>> Gesendet: Mittwoch, 25. November 2009 22:56
>>> An: users@wicket.apache.org; dev@wicket.apache.org
>>> Betreff: PropertyModels *without* strings
>>>
>>>
>>> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
>>>
>>> -igor
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PropertyModels *without* strings
Posted by Igor Vaynberg <ig...@gmail.com>.
the whole point is that strings brake, whether they are constants or not.
eg
add(new Label("parentName", new PropertyModel(person, "parent.name")));
suppose you rename Person.getName() to Person.getFullName(). now you
have to find all places in your code where you have referenced "name"
as part of a string property expression and change it to "fullName".
if you miss somewhere you wont know until runtime. in my projects a
lot of objects have a "name" field, so the process of identifying all
the places that need to be updated involves sifting through a bunch of
strings and figuring out if what is before the ".name" is of type
Person. tedious and error-prone.
although bindgen does not support refactoring, as soon as the change
is made all the places that need to be updated will be reported by the
compiler. that is an *enormous* improvement in non-trivial
applications.
another big advantage is that bindings carry type information, eg:
add(new TextField<Integer>("age", new PropertyModel(person, "age")));
there is no way to verify that "age" expression is of type Integer and
not a value object or a string, but bindgen bindings are typesafe and
a non-Integer binding would cause a compilation error.
i am actually somewhat shocked that someone can look at this and not
see the value. this fills in a huge gap in java until methods and
fields become first-class citizens. but, maybe im just weird.
-igor
On Wed, Nov 25, 2009 at 11:28 PM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> If refactoring is not supported it is just easier to use string
> constants, which do not break.
>
> **
> Martin
>
> 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
>> as far as i have read, the binding "methods" aren't automatically refactored
>> (eg. renamed),
>> but you get compiler errors in the code where you use the "old names". so it
>> should be
>> fairly easy to fix your own code (in contrast to some strings)
>>
>> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
>> Christian.Giambalvo@excelsisnet.com> wrote:
>>
>>> Is refactoring available for bindgen?
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
>>> Gesendet: Mittwoch, 25. November 2009 22:56
>>> An: users@wicket.apache.org; dev@wicket.apache.org
>>> Betreff: PropertyModels *without* strings
>>>
>>>
>>> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
>>>
>>> -igor
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PropertyModels *without* strings
Posted by James Carman <jc...@carmanconsulting.com>.
The proxy-based approach runs into problems when the return types of
the "getters" are final or non-proxyable in some way (at least for
nested properties). We discussed this idea of "recording" the
property expression (and I even wrote some code in Commons Proxy for
it). I even proposed an entirely new project (called Commons
Expression by me but others didn't like the name).
On Thu, Nov 26, 2009 at 4:23 PM, Pieter Degraeuwe
<pi...@systemworks.be> wrote:
> Some time ago I was experimenting with lambdaJ. It uses the proxy way to
> obtain the propertyName.
>
> This way, your code could look like
>
> new TextField<Long>("orderNumber", new SafePropertyModel(target,
> property(on(Order.class).getOrderNumber())));
>
> If there is interest in this thing, I'm willing to contribute...
>
> Just my 2 cents...
>
> On Thu, Nov 26, 2009 at 8:30 PM, Giambalvo, Christian <
> Christian.Giambalvo@excelsisnet.com> wrote:
>
>> Lombok looks preety cool.
>> I think i will use it cause it saves a lot of typing and holds equals and
>> hashcode in sync.
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Gerolf Seitz [mailto:gerolf.seitz@gmail.com]
>> Gesendet: Donnerstag, 26. November 2009 19:36
>> An: users@wicket.apache.org
>> Betreff: Re: PropertyModels *without* strings
>>
>> that's why i was wondering about a lombok based bindgen implementation,
>> since
>> lombok is available as apt processor and eclipse plugin :)
>>
>> On Thu, Nov 26, 2009 at 5:13 PM, Igor Vaynberg <igor.vaynberg@gmail.com
>> >wrote:
>>
>> > you guys are missing the point. Bindgen is a *standard apt processor*.
>> > it is not an eclipse plugin. all major IDEs have support for
>> > annotation processors baked in.
>> >
>> > refactoring support is definetely *possible*, but it would require an
>> > actual IDE pliugin.
>> >
>> > -igor
>> >
>> > On Thu, Nov 26, 2009 at 5:20 AM, Martin Makundi
>> > <ma...@koodaripalvelut.com> wrote:
>> > > Ah.. the next big thing, (in) refactoring (bindings?)!!! All glory to
>> > > the person that does it.
>> > >
>> > > **
>> > > Martin
>> > >
>> > > 2009/11/26 Johan Compagner <jc...@gmail.com>:
>> > >>
>> >
>> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html
>> > >>
>> > >> On Thu, Nov 26, 2009 at 13:52, James Carman <
>> > jcarman@carmanconsulting.com>wrote:
>> > >>
>> > >>> Refactoring could definitely be supported in IDEA. With the
>> Hibernate
>> > >>> support, when you change a property name it will change your mapping
>> > >>> hbm.xml (yes, we still use them) files for you automatically. Same
>> > >>> thing happens with the Spring support. The configuration files are
>> > >>> changed for you. I don't know how eclipse works with this kind of
>> > >>> stuff, but IDEA definitely has hooks for this kind of stuff.
>> > >>>
>> > >>> On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi
>> > >>> <ma...@koodaripalvelut.com> wrote:
>> > >>> > If refactoring is not supported it is just easier to use string
>> > >>> > constants, which do not break.
>> > >>> >
>> > >>> > **
>> > >>> > Martin
>> > >>> >
>> > >>> > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
>> > >>> >> as far as i have read, the binding "methods" aren't automatically
>> > >>> refactored
>> > >>> >> (eg. renamed),
>> > >>> >> but you get compiler errors in the code where you use the "old
>> > names".
>> > >>> so it
>> > >>> >> should be
>> > >>> >> fairly easy to fix your own code (in contrast to some strings)
>> > >>> >>
>> > >>> >> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
>> > >>> >> Christian.Giambalvo@excelsisnet.com> wrote:
>> > >>> >>
>> > >>> >>> Is refactoring available for bindgen?
>> > >>> >>>
>> > >>> >>> -----Ursprüngliche Nachricht-----
>> > >>> >>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
>> > >>> >>> Gesendet: Mittwoch, 25. November 2009 22:56
>> > >>> >>> An: users@wicket.apache.org; dev@wicket.apache.org
>> > >>> >>> Betreff: PropertyModels *without* strings
>> > >>> >>>
>> > >>> >>>
>> > >>> >>>
>> > >>>
>> >
>> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
>> > >>> >>>
>> > >>> >>> -igor
>> > >>> >>>
>> > >>> >>>
>> > ---------------------------------------------------------------------
>> > >>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > >>> >>> For additional commands, e-mail: users-help@wicket.apache.org
>> > >>> >>>
>> > >>> >>>
>> > >>> >>>
>> > ---------------------------------------------------------------------
>> > >>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > >>> >>> For additional commands, e-mail: users-help@wicket.apache.org
>> > >>> >>>
>> > >>> >>>
>> > >>> >>
>> > >>> >
>> > >>> >
>> ---------------------------------------------------------------------
>> > >>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > >>> > For additional commands, e-mail: users-help@wicket.apache.org
>> > >>> >
>> > >>> >
>> > >>>
>> > >>> ---------------------------------------------------------------------
>> > >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > >>> For additional commands, e-mail: users-help@wicket.apache.org
>> > >>>
>> > >>>
>> > >>
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > > For additional commands, e-mail: users-help@wicket.apache.org
>> > >
>> > >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>
>
>
> --
> Pieter Degraeuwe
> Systemworks bvba
> Belgiëlaan 61
> 9070 Destelbergen
> GSM: +32 (0)485/68.60.85
> Email: pieter.degraeuwe@systemworks.be
> visit us at http://www.systemworks.be
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PropertyModels *without* strings
Posted by Pieter Degraeuwe <pi...@systemworks.be>.
Some time ago I was experimenting with lambdaJ. It uses the proxy way to
obtain the propertyName.
This way, your code could look like
new TextField<Long>("orderNumber", new SafePropertyModel(target,
property(on(Order.class).getOrderNumber())));
If there is interest in this thing, I'm willing to contribute...
Just my 2 cents...
On Thu, Nov 26, 2009 at 8:30 PM, Giambalvo, Christian <
Christian.Giambalvo@excelsisnet.com> wrote:
> Lombok looks preety cool.
> I think i will use it cause it saves a lot of typing and holds equals and
> hashcode in sync.
>
>
> -----Ursprüngliche Nachricht-----
> Von: Gerolf Seitz [mailto:gerolf.seitz@gmail.com]
> Gesendet: Donnerstag, 26. November 2009 19:36
> An: users@wicket.apache.org
> Betreff: Re: PropertyModels *without* strings
>
> that's why i was wondering about a lombok based bindgen implementation,
> since
> lombok is available as apt processor and eclipse plugin :)
>
> On Thu, Nov 26, 2009 at 5:13 PM, Igor Vaynberg <igor.vaynberg@gmail.com
> >wrote:
>
> > you guys are missing the point. Bindgen is a *standard apt processor*.
> > it is not an eclipse plugin. all major IDEs have support for
> > annotation processors baked in.
> >
> > refactoring support is definetely *possible*, but it would require an
> > actual IDE pliugin.
> >
> > -igor
> >
> > On Thu, Nov 26, 2009 at 5:20 AM, Martin Makundi
> > <ma...@koodaripalvelut.com> wrote:
> > > Ah.. the next big thing, (in) refactoring (bindings?)!!! All glory to
> > > the person that does it.
> > >
> > > **
> > > Martin
> > >
> > > 2009/11/26 Johan Compagner <jc...@gmail.com>:
> > >>
> >
> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html
> > >>
> > >> On Thu, Nov 26, 2009 at 13:52, James Carman <
> > jcarman@carmanconsulting.com>wrote:
> > >>
> > >>> Refactoring could definitely be supported in IDEA. With the
> Hibernate
> > >>> support, when you change a property name it will change your mapping
> > >>> hbm.xml (yes, we still use them) files for you automatically. Same
> > >>> thing happens with the Spring support. The configuration files are
> > >>> changed for you. I don't know how eclipse works with this kind of
> > >>> stuff, but IDEA definitely has hooks for this kind of stuff.
> > >>>
> > >>> On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi
> > >>> <ma...@koodaripalvelut.com> wrote:
> > >>> > If refactoring is not supported it is just easier to use string
> > >>> > constants, which do not break.
> > >>> >
> > >>> > **
> > >>> > Martin
> > >>> >
> > >>> > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
> > >>> >> as far as i have read, the binding "methods" aren't automatically
> > >>> refactored
> > >>> >> (eg. renamed),
> > >>> >> but you get compiler errors in the code where you use the "old
> > names".
> > >>> so it
> > >>> >> should be
> > >>> >> fairly easy to fix your own code (in contrast to some strings)
> > >>> >>
> > >>> >> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
> > >>> >> Christian.Giambalvo@excelsisnet.com> wrote:
> > >>> >>
> > >>> >>> Is refactoring available for bindgen?
> > >>> >>>
> > >>> >>> -----Ursprüngliche Nachricht-----
> > >>> >>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> > >>> >>> Gesendet: Mittwoch, 25. November 2009 22:56
> > >>> >>> An: users@wicket.apache.org; dev@wicket.apache.org
> > >>> >>> Betreff: PropertyModels *without* strings
> > >>> >>>
> > >>> >>>
> > >>> >>>
> > >>>
> >
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
> > >>> >>>
> > >>> >>> -igor
> > >>> >>>
> > >>> >>>
> > ---------------------------------------------------------------------
> > >>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >>> >>> For additional commands, e-mail: users-help@wicket.apache.org
> > >>> >>>
> > >>> >>>
> > >>> >>>
> > ---------------------------------------------------------------------
> > >>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >>> >>> For additional commands, e-mail: users-help@wicket.apache.org
> > >>> >>>
> > >>> >>>
> > >>> >>
> > >>> >
> > >>> >
> ---------------------------------------------------------------------
> > >>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >>> > For additional commands, e-mail: users-help@wicket.apache.org
> > >>> >
> > >>> >
> > >>>
> > >>> ---------------------------------------------------------------------
> > >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >>> For additional commands, e-mail: users-help@wicket.apache.org
> > >>>
> > >>>
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
--
Pieter Degraeuwe
Systemworks bvba
Belgiëlaan 61
9070 Destelbergen
GSM: +32 (0)485/68.60.85
Email: pieter.degraeuwe@systemworks.be
visit us at http://www.systemworks.be
AW: PropertyModels *without* strings
Posted by "Giambalvo, Christian" <Ch...@excelsisnet.com>.
Lombok looks preety cool.
I think i will use it cause it saves a lot of typing and holds equals and hashcode in sync.
-----Ursprüngliche Nachricht-----
Von: Gerolf Seitz [mailto:gerolf.seitz@gmail.com]
Gesendet: Donnerstag, 26. November 2009 19:36
An: users@wicket.apache.org
Betreff: Re: PropertyModels *without* strings
that's why i was wondering about a lombok based bindgen implementation,
since
lombok is available as apt processor and eclipse plugin :)
On Thu, Nov 26, 2009 at 5:13 PM, Igor Vaynberg <ig...@gmail.com>wrote:
> you guys are missing the point. Bindgen is a *standard apt processor*.
> it is not an eclipse plugin. all major IDEs have support for
> annotation processors baked in.
>
> refactoring support is definetely *possible*, but it would require an
> actual IDE pliugin.
>
> -igor
>
> On Thu, Nov 26, 2009 at 5:20 AM, Martin Makundi
> <ma...@koodaripalvelut.com> wrote:
> > Ah.. the next big thing, (in) refactoring (bindings?)!!! All glory to
> > the person that does it.
> >
> > **
> > Martin
> >
> > 2009/11/26 Johan Compagner <jc...@gmail.com>:
> >>
> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html
> >>
> >> On Thu, Nov 26, 2009 at 13:52, James Carman <
> jcarman@carmanconsulting.com>wrote:
> >>
> >>> Refactoring could definitely be supported in IDEA. With the Hibernate
> >>> support, when you change a property name it will change your mapping
> >>> hbm.xml (yes, we still use them) files for you automatically. Same
> >>> thing happens with the Spring support. The configuration files are
> >>> changed for you. I don't know how eclipse works with this kind of
> >>> stuff, but IDEA definitely has hooks for this kind of stuff.
> >>>
> >>> On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi
> >>> <ma...@koodaripalvelut.com> wrote:
> >>> > If refactoring is not supported it is just easier to use string
> >>> > constants, which do not break.
> >>> >
> >>> > **
> >>> > Martin
> >>> >
> >>> > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
> >>> >> as far as i have read, the binding "methods" aren't automatically
> >>> refactored
> >>> >> (eg. renamed),
> >>> >> but you get compiler errors in the code where you use the "old
> names".
> >>> so it
> >>> >> should be
> >>> >> fairly easy to fix your own code (in contrast to some strings)
> >>> >>
> >>> >> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
> >>> >> Christian.Giambalvo@excelsisnet.com> wrote:
> >>> >>
> >>> >>> Is refactoring available for bindgen?
> >>> >>>
> >>> >>> -----Ursprüngliche Nachricht-----
> >>> >>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> >>> >>> Gesendet: Mittwoch, 25. November 2009 22:56
> >>> >>> An: users@wicket.apache.org; dev@wicket.apache.org
> >>> >>> Betreff: PropertyModels *without* strings
> >>> >>>
> >>> >>>
> >>> >>>
> >>>
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
> >>> >>>
> >>> >>> -igor
> >>> >>>
> >>> >>>
> ---------------------------------------------------------------------
> >>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>> >>>
> >>> >>>
> >>> >>>
> ---------------------------------------------------------------------
> >>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>> >>>
> >>> >>>
> >>> >>
> >>> >
> >>> > ---------------------------------------------------------------------
> >>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> > For additional commands, e-mail: users-help@wicket.apache.org
> >>> >
> >>> >
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: PropertyModels *without* strings
Posted by Gerolf Seitz <ge...@gmail.com>.
that's why i was wondering about a lombok based bindgen implementation,
since
lombok is available as apt processor and eclipse plugin :)
On Thu, Nov 26, 2009 at 5:13 PM, Igor Vaynberg <ig...@gmail.com>wrote:
> you guys are missing the point. Bindgen is a *standard apt processor*.
> it is not an eclipse plugin. all major IDEs have support for
> annotation processors baked in.
>
> refactoring support is definetely *possible*, but it would require an
> actual IDE pliugin.
>
> -igor
>
> On Thu, Nov 26, 2009 at 5:20 AM, Martin Makundi
> <ma...@koodaripalvelut.com> wrote:
> > Ah.. the next big thing, (in) refactoring (bindings?)!!! All glory to
> > the person that does it.
> >
> > **
> > Martin
> >
> > 2009/11/26 Johan Compagner <jc...@gmail.com>:
> >>
> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html
> >>
> >> On Thu, Nov 26, 2009 at 13:52, James Carman <
> jcarman@carmanconsulting.com>wrote:
> >>
> >>> Refactoring could definitely be supported in IDEA. With the Hibernate
> >>> support, when you change a property name it will change your mapping
> >>> hbm.xml (yes, we still use them) files for you automatically. Same
> >>> thing happens with the Spring support. The configuration files are
> >>> changed for you. I don't know how eclipse works with this kind of
> >>> stuff, but IDEA definitely has hooks for this kind of stuff.
> >>>
> >>> On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi
> >>> <ma...@koodaripalvelut.com> wrote:
> >>> > If refactoring is not supported it is just easier to use string
> >>> > constants, which do not break.
> >>> >
> >>> > **
> >>> > Martin
> >>> >
> >>> > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
> >>> >> as far as i have read, the binding "methods" aren't automatically
> >>> refactored
> >>> >> (eg. renamed),
> >>> >> but you get compiler errors in the code where you use the "old
> names".
> >>> so it
> >>> >> should be
> >>> >> fairly easy to fix your own code (in contrast to some strings)
> >>> >>
> >>> >> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
> >>> >> Christian.Giambalvo@excelsisnet.com> wrote:
> >>> >>
> >>> >>> Is refactoring available for bindgen?
> >>> >>>
> >>> >>> -----Ursprüngliche Nachricht-----
> >>> >>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> >>> >>> Gesendet: Mittwoch, 25. November 2009 22:56
> >>> >>> An: users@wicket.apache.org; dev@wicket.apache.org
> >>> >>> Betreff: PropertyModels *without* strings
> >>> >>>
> >>> >>>
> >>> >>>
> >>>
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
> >>> >>>
> >>> >>> -igor
> >>> >>>
> >>> >>>
> ---------------------------------------------------------------------
> >>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>> >>>
> >>> >>>
> >>> >>>
> ---------------------------------------------------------------------
> >>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>> >>>
> >>> >>>
> >>> >>
> >>> >
> >>> > ---------------------------------------------------------------------
> >>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> > For additional commands, e-mail: users-help@wicket.apache.org
> >>> >
> >>> >
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: PropertyModels *without* strings
Posted by Igor Vaynberg <ig...@gmail.com>.
you guys are missing the point. Bindgen is a *standard apt processor*.
it is not an eclipse plugin. all major IDEs have support for
annotation processors baked in.
refactoring support is definetely *possible*, but it would require an
actual IDE pliugin.
-igor
On Thu, Nov 26, 2009 at 5:20 AM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> Ah.. the next big thing, (in) refactoring (bindings?)!!! All glory to
> the person that does it.
>
> **
> Martin
>
> 2009/11/26 Johan Compagner <jc...@gmail.com>:
>> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html
>>
>> On Thu, Nov 26, 2009 at 13:52, James Carman <jc...@carmanconsulting.com>wrote:
>>
>>> Refactoring could definitely be supported in IDEA. With the Hibernate
>>> support, when you change a property name it will change your mapping
>>> hbm.xml (yes, we still use them) files for you automatically. Same
>>> thing happens with the Spring support. The configuration files are
>>> changed for you. I don't know how eclipse works with this kind of
>>> stuff, but IDEA definitely has hooks for this kind of stuff.
>>>
>>> On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi
>>> <ma...@koodaripalvelut.com> wrote:
>>> > If refactoring is not supported it is just easier to use string
>>> > constants, which do not break.
>>> >
>>> > **
>>> > Martin
>>> >
>>> > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
>>> >> as far as i have read, the binding "methods" aren't automatically
>>> refactored
>>> >> (eg. renamed),
>>> >> but you get compiler errors in the code where you use the "old names".
>>> so it
>>> >> should be
>>> >> fairly easy to fix your own code (in contrast to some strings)
>>> >>
>>> >> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
>>> >> Christian.Giambalvo@excelsisnet.com> wrote:
>>> >>
>>> >>> Is refactoring available for bindgen?
>>> >>>
>>> >>> -----Ursprüngliche Nachricht-----
>>> >>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
>>> >>> Gesendet: Mittwoch, 25. November 2009 22:56
>>> >>> An: users@wicket.apache.org; dev@wicket.apache.org
>>> >>> Betreff: PropertyModels *without* strings
>>> >>>
>>> >>>
>>> >>>
>>> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
>>> >>>
>>> >>> -igor
>>> >>>
>>> >>> ---------------------------------------------------------------------
>>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> >>> For additional commands, e-mail: users-help@wicket.apache.org
>>> >>>
>>> >>>
>>> >>> ---------------------------------------------------------------------
>>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> >>> For additional commands, e-mail: users-help@wicket.apache.org
>>> >>>
>>> >>>
>>> >>
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> > For additional commands, e-mail: users-help@wicket.apache.org
>>> >
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PropertyModels *without* strings
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Ah.. the next big thing, (in) refactoring (bindings?)!!! All glory to
the person that does it.
**
Martin
2009/11/26 Johan Compagner <jc...@gmail.com>:
> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html
>
> On Thu, Nov 26, 2009 at 13:52, James Carman <jc...@carmanconsulting.com>wrote:
>
>> Refactoring could definitely be supported in IDEA. With the Hibernate
>> support, when you change a property name it will change your mapping
>> hbm.xml (yes, we still use them) files for you automatically. Same
>> thing happens with the Spring support. The configuration files are
>> changed for you. I don't know how eclipse works with this kind of
>> stuff, but IDEA definitely has hooks for this kind of stuff.
>>
>> On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi
>> <ma...@koodaripalvelut.com> wrote:
>> > If refactoring is not supported it is just easier to use string
>> > constants, which do not break.
>> >
>> > **
>> > Martin
>> >
>> > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
>> >> as far as i have read, the binding "methods" aren't automatically
>> refactored
>> >> (eg. renamed),
>> >> but you get compiler errors in the code where you use the "old names".
>> so it
>> >> should be
>> >> fairly easy to fix your own code (in contrast to some strings)
>> >>
>> >> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
>> >> Christian.Giambalvo@excelsisnet.com> wrote:
>> >>
>> >>> Is refactoring available for bindgen?
>> >>>
>> >>> -----Ursprüngliche Nachricht-----
>> >>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
>> >>> Gesendet: Mittwoch, 25. November 2009 22:56
>> >>> An: users@wicket.apache.org; dev@wicket.apache.org
>> >>> Betreff: PropertyModels *without* strings
>> >>>
>> >>>
>> >>>
>> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
>> >>>
>> >>> -igor
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >>> For additional commands, e-mail: users-help@wicket.apache.org
>> >>>
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >>> For additional commands, e-mail: users-help@wicket.apache.org
>> >>>
>> >>>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PropertyModels *without* strings
Posted by Nicolas Melendez <nm...@getsense.com.ar>.
very cool, i like propertyModels more than Compounds :)
NM
On Thu, Nov 26, 2009 at 11:09 AM, James Carman <jcarman@carmanconsulting.com
> wrote:
> I figured there had to be support for that. Very cool
>
> On Thu, Nov 26, 2009 at 8:14 AM, Johan Compagner <jc...@gmail.com>
> wrote:
> >
> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html
> >
> > On Thu, Nov 26, 2009 at 13:52, James Carman <
> jcarman@carmanconsulting.com>wrote:
> >
> >> Refactoring could definitely be supported in IDEA. With the Hibernate
> >> support, when you change a property name it will change your mapping
> >> hbm.xml (yes, we still use them) files for you automatically. Same
> >> thing happens with the Spring support. The configuration files are
> >> changed for you. I don't know how eclipse works with this kind of
> >> stuff, but IDEA definitely has hooks for this kind of stuff.
> >>
> >> On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi
> >> <ma...@koodaripalvelut.com> wrote:
> >> > If refactoring is not supported it is just easier to use string
> >> > constants, which do not break.
> >> >
> >> > **
> >> > Martin
> >> >
> >> > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
> >> >> as far as i have read, the binding "methods" aren't automatically
> >> refactored
> >> >> (eg. renamed),
> >> >> but you get compiler errors in the code where you use the "old
> names".
> >> so it
> >> >> should be
> >> >> fairly easy to fix your own code (in contrast to some strings)
> >> >>
> >> >> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
> >> >> Christian.Giambalvo@excelsisnet.com> wrote:
> >> >>
> >> >>> Is refactoring available for bindgen?
> >> >>>
> >> >>> -----Ursprüngliche Nachricht-----
> >> >>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> >> >>> Gesendet: Mittwoch, 25. November 2009 22:56
> >> >>> An: users@wicket.apache.org; dev@wicket.apache.org
> >> >>> Betreff: PropertyModels *without* strings
> >> >>>
> >> >>>
> >> >>>
> >>
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
> >> >>>
> >> >>> -igor
> >> >>>
> >> >>>
> ---------------------------------------------------------------------
> >> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >> >>>
> >> >>>
> >> >>>
> ---------------------------------------------------------------------
> >> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >> >>>
> >> >>>
> >> >>
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> > For additional commands, e-mail: users-help@wicket.apache.org
> >> >
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: PropertyModels *without* strings
Posted by James Carman <jc...@carmanconsulting.com>.
I figured there had to be support for that. Very cool
On Thu, Nov 26, 2009 at 8:14 AM, Johan Compagner <jc...@gmail.com> wrote:
> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html
>
> On Thu, Nov 26, 2009 at 13:52, James Carman <jc...@carmanconsulting.com>wrote:
>
>> Refactoring could definitely be supported in IDEA. With the Hibernate
>> support, when you change a property name it will change your mapping
>> hbm.xml (yes, we still use them) files for you automatically. Same
>> thing happens with the Spring support. The configuration files are
>> changed for you. I don't know how eclipse works with this kind of
>> stuff, but IDEA definitely has hooks for this kind of stuff.
>>
>> On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi
>> <ma...@koodaripalvelut.com> wrote:
>> > If refactoring is not supported it is just easier to use string
>> > constants, which do not break.
>> >
>> > **
>> > Martin
>> >
>> > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
>> >> as far as i have read, the binding "methods" aren't automatically
>> refactored
>> >> (eg. renamed),
>> >> but you get compiler errors in the code where you use the "old names".
>> so it
>> >> should be
>> >> fairly easy to fix your own code (in contrast to some strings)
>> >>
>> >> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
>> >> Christian.Giambalvo@excelsisnet.com> wrote:
>> >>
>> >>> Is refactoring available for bindgen?
>> >>>
>> >>> -----Ursprüngliche Nachricht-----
>> >>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
>> >>> Gesendet: Mittwoch, 25. November 2009 22:56
>> >>> An: users@wicket.apache.org; dev@wicket.apache.org
>> >>> Betreff: PropertyModels *without* strings
>> >>>
>> >>>
>> >>>
>> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
>> >>>
>> >>> -igor
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >>> For additional commands, e-mail: users-help@wicket.apache.org
>> >>>
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >>> For additional commands, e-mail: users-help@wicket.apache.org
>> >>>
>> >>>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PropertyModels *without* strings
Posted by Johan Compagner <jc...@gmail.com>.
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ltk/core/refactoring/participants/package-summary.html
On Thu, Nov 26, 2009 at 13:52, James Carman <jc...@carmanconsulting.com>wrote:
> Refactoring could definitely be supported in IDEA. With the Hibernate
> support, when you change a property name it will change your mapping
> hbm.xml (yes, we still use them) files for you automatically. Same
> thing happens with the Spring support. The configuration files are
> changed for you. I don't know how eclipse works with this kind of
> stuff, but IDEA definitely has hooks for this kind of stuff.
>
> On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi
> <ma...@koodaripalvelut.com> wrote:
> > If refactoring is not supported it is just easier to use string
> > constants, which do not break.
> >
> > **
> > Martin
> >
> > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
> >> as far as i have read, the binding "methods" aren't automatically
> refactored
> >> (eg. renamed),
> >> but you get compiler errors in the code where you use the "old names".
> so it
> >> should be
> >> fairly easy to fix your own code (in contrast to some strings)
> >>
> >> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
> >> Christian.Giambalvo@excelsisnet.com> wrote:
> >>
> >>> Is refactoring available for bindgen?
> >>>
> >>> -----Ursprüngliche Nachricht-----
> >>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> >>> Gesendet: Mittwoch, 25. November 2009 22:56
> >>> An: users@wicket.apache.org; dev@wicket.apache.org
> >>> Betreff: PropertyModels *without* strings
> >>>
> >>>
> >>>
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
> >>>
> >>> -igor
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: PropertyModels *without* strings
Posted by Gerolf Seitz <ge...@gmail.com>.
On Thu, Nov 26, 2009 at 1:52 PM, James Carman
<jc...@carmanconsulting.com>wrote:
> The configuration files are changed for you. I don't know how eclipse
> works with this kind of
> stuff, but IDEA definitely has hooks for this kind of stuff.
>
> if you refactor->rename a class, you can have eclipse look for the FQCN in
comments, strings, non-java files
and change that accordingly. not sure if that also works for fields,
methods,...
> On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi
> <ma...@koodaripalvelut.com> wrote:
> > If refactoring is not supported it is just easier to use string
> > constants, which do not break.
> >
> > **
> > Martin
> >
> > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
> >> as far as i have read, the binding "methods" aren't automatically
> refactored
> >> (eg. renamed),
> >> but you get compiler errors in the code where you use the "old names".
> so it
> >> should be
> >> fairly easy to fix your own code (in contrast to some strings)
> >>
> >> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
> >> Christian.Giambalvo@excelsisnet.com> wrote:
> >>
> >>> Is refactoring available for bindgen?
> >>>
> >>> -----Ursprüngliche Nachricht-----
> >>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> >>> Gesendet: Mittwoch, 25. November 2009 22:56
> >>> An: users@wicket.apache.org; dev@wicket.apache.org
> >>> Betreff: PropertyModels *without* strings
> >>>
> >>>
> >>>
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
> >>>
> >>> -igor
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: PropertyModels *without* strings
Posted by James Carman <jc...@carmanconsulting.com>.
Refactoring could definitely be supported in IDEA. With the Hibernate
support, when you change a property name it will change your mapping
hbm.xml (yes, we still use them) files for you automatically. Same
thing happens with the Spring support. The configuration files are
changed for you. I don't know how eclipse works with this kind of
stuff, but IDEA definitely has hooks for this kind of stuff.
On Thu, Nov 26, 2009 at 2:28 AM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> If refactoring is not supported it is just easier to use string
> constants, which do not break.
>
> **
> Martin
>
> 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
>> as far as i have read, the binding "methods" aren't automatically refactored
>> (eg. renamed),
>> but you get compiler errors in the code where you use the "old names". so it
>> should be
>> fairly easy to fix your own code (in contrast to some strings)
>>
>> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
>> Christian.Giambalvo@excelsisnet.com> wrote:
>>
>>> Is refactoring available for bindgen?
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
>>> Gesendet: Mittwoch, 25. November 2009 22:56
>>> An: users@wicket.apache.org; dev@wicket.apache.org
>>> Betreff: PropertyModels *without* strings
>>>
>>>
>>> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
>>>
>>> -igor
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: PropertyModels *without* strings
Posted by Johan Compagner <jc...@gmail.com>.
the pro's of this compared to the SafeProperty is that the safe property
needs to generate proxies at runtime so you need CGLIB and you could have
issues with final classes
this is more a develop environment solution which is because of that a bit
nicer.
On Thu, Nov 26, 2009 at 10:53, Maarten Bosteels <mb...@gmail.com>wrote:
> Igor,
>
> Very interesting stuff.
> What are the pro's and con's when compared with the SafePropertyModel from
> https://issues.apache.org/jira/browse/WICKET-1327 ?
>
> Maarten
>
>
> On Thu, Nov 26, 2009 at 10:04 AM, Jeremy Thomerson <
> jeremy@wickettraining.com> wrote:
>
> > Strings do break. Silently. They're the silent app killer.
> >
> > Wouldn't you rather know at compile-time that something is broken?
> That's
> > the point of using Java over PHP.
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> >
> >
> > On Thu, Nov 26, 2009 at 1:28 AM, Martin Makundi <
> > martin.makundi@koodaripalvelut.com> wrote:
> >
> > > If refactoring is not supported it is just easier to use string
> > > constants, which do not break.
> > >
> > > **
> > > Martin
> > >
> > > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
> > > > as far as i have read, the binding "methods" aren't automatically
> > > refactored
> > > > (eg. renamed),
> > > > but you get compiler errors in the code where you use the "old
> names".
> > so
> > > it
> > > > should be
> > > > fairly easy to fix your own code (in contrast to some strings)
> > > >
> > > > On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
> > > > Christian.Giambalvo@excelsisnet.com> wrote:
> > > >
> > > >> Is refactoring available for bindgen?
> > > >>
> > > >> -----Ursprüngliche Nachricht-----
> > > >> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> > > >> Gesendet: Mittwoch, 25. November 2009 22:56
> > > >> An: users@wicket.apache.org; dev@wicket.apache.org
> > > >> Betreff: PropertyModels *without* strings
> > > >>
> > > >>
> > > >>
> > >
> >
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
> > > >>
> > > >> -igor
> > > >>
> > > >>
> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > >> For additional commands, e-mail: users-help@wicket.apache.org
> > > >>
> > > >>
> > > >>
> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > >> For additional commands, e-mail: users-help@wicket.apache.org
> > > >>
> > > >>
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
>
Re: PropertyModels *without* strings
Posted by Maarten Bosteels <mb...@gmail.com>.
Igor,
Very interesting stuff.
What are the pro's and con's when compared with the SafePropertyModel from
https://issues.apache.org/jira/browse/WICKET-1327 ?
Maarten
On Thu, Nov 26, 2009 at 10:04 AM, Jeremy Thomerson <
jeremy@wickettraining.com> wrote:
> Strings do break. Silently. They're the silent app killer.
>
> Wouldn't you rather know at compile-time that something is broken? That's
> the point of using Java over PHP.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Thu, Nov 26, 2009 at 1:28 AM, Martin Makundi <
> martin.makundi@koodaripalvelut.com> wrote:
>
> > If refactoring is not supported it is just easier to use string
> > constants, which do not break.
> >
> > **
> > Martin
> >
> > 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
> > > as far as i have read, the binding "methods" aren't automatically
> > refactored
> > > (eg. renamed),
> > > but you get compiler errors in the code where you use the "old names".
> so
> > it
> > > should be
> > > fairly easy to fix your own code (in contrast to some strings)
> > >
> > > On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
> > > Christian.Giambalvo@excelsisnet.com> wrote:
> > >
> > >> Is refactoring available for bindgen?
> > >>
> > >> -----Ursprüngliche Nachricht-----
> > >> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> > >> Gesendet: Mittwoch, 25. November 2009 22:56
> > >> An: users@wicket.apache.org; dev@wicket.apache.org
> > >> Betreff: PropertyModels *without* strings
> > >>
> > >>
> > >>
> >
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
> > >>
> > >> -igor
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >> For additional commands, e-mail: users-help@wicket.apache.org
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >> For additional commands, e-mail: users-help@wicket.apache.org
> > >>
> > >>
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
Re: PropertyModels *without* strings
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Strings do break. Silently. They're the silent app killer.
Wouldn't you rather know at compile-time that something is broken? That's
the point of using Java over PHP.
--
Jeremy Thomerson
http://www.wickettraining.com
On Thu, Nov 26, 2009 at 1:28 AM, Martin Makundi <
martin.makundi@koodaripalvelut.com> wrote:
> If refactoring is not supported it is just easier to use string
> constants, which do not break.
>
> **
> Martin
>
> 2009/11/26 Gerolf Seitz <ge...@gmail.com>:
> > as far as i have read, the binding "methods" aren't automatically
> refactored
> > (eg. renamed),
> > but you get compiler errors in the code where you use the "old names". so
> it
> > should be
> > fairly easy to fix your own code (in contrast to some strings)
> >
> > On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
> > Christian.Giambalvo@excelsisnet.com> wrote:
> >
> >> Is refactoring available for bindgen?
> >>
> >> -----Ursprüngliche Nachricht-----
> >> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> >> Gesendet: Mittwoch, 25. November 2009 22:56
> >> An: users@wicket.apache.org; dev@wicket.apache.org
> >> Betreff: PropertyModels *without* strings
> >>
> >>
> >>
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
> >>
> >> -igor
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: PropertyModels *without* strings
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
If refactoring is not supported it is just easier to use string
constants, which do not break.
**
Martin
2009/11/26 Gerolf Seitz <ge...@gmail.com>:
> as far as i have read, the binding "methods" aren't automatically refactored
> (eg. renamed),
> but you get compiler errors in the code where you use the "old names". so it
> should be
> fairly easy to fix your own code (in contrast to some strings)
>
> On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
> Christian.Giambalvo@excelsisnet.com> wrote:
>
>> Is refactoring available for bindgen?
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
>> Gesendet: Mittwoch, 25. November 2009 22:56
>> An: users@wicket.apache.org; dev@wicket.apache.org
>> Betreff: PropertyModels *without* strings
>>
>>
>> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
>>
>> -igor
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
AW: PropertyModels *without* strings
Posted by "Giambalvo, Christian" <Ch...@excelsisnet.com>.
Ok thanks.
-----Ursprüngliche Nachricht-----
Von: Gerolf Seitz [mailto:gerolf.seitz@gmail.com]
Gesendet: Donnerstag, 26. November 2009 08:19
An: users@wicket.apache.org
Betreff: Re: PropertyModels *without* strings
as far as i have read, the binding "methods" aren't automatically refactored
(eg. renamed),
but you get compiler errors in the code where you use the "old names". so it
should be
fairly easy to fix your own code (in contrast to some strings)
On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
Christian.Giambalvo@excelsisnet.com> wrote:
> Is refactoring available for bindgen?
>
> -----Ursprüngliche Nachricht-----
> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> Gesendet: Mittwoch, 25. November 2009 22:56
> An: users@wicket.apache.org; dev@wicket.apache.org
> Betreff: PropertyModels *without* strings
>
>
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
>
> -igor
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: PropertyModels *without* strings
Posted by Gerolf Seitz <ge...@gmail.com>.
as far as i have read, the binding "methods" aren't automatically refactored
(eg. renamed),
but you get compiler errors in the code where you use the "old names". so it
should be
fairly easy to fix your own code (in contrast to some strings)
On Thu, Nov 26, 2009 at 8:04 AM, Giambalvo, Christian <
Christian.Giambalvo@excelsisnet.com> wrote:
> Is refactoring available for bindgen?
>
> -----Ursprüngliche Nachricht-----
> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> Gesendet: Mittwoch, 25. November 2009 22:56
> An: users@wicket.apache.org; dev@wicket.apache.org
> Betreff: PropertyModels *without* strings
>
>
> http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
>
> -igor
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
AW: PropertyModels *without* strings
Posted by "Giambalvo, Christian" <Ch...@excelsisnet.com>.
Is refactoring available for bindgen?
-----Ursprüngliche Nachricht-----
Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
Gesendet: Mittwoch, 25. November 2009 22:56
An: users@wicket.apache.org; dev@wicket.apache.org
Betreff: PropertyModels *without* strings
http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/
-igor
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org