Hi,

i disagree. if you want to customize/localize the label, you'll change it. it's wicket's philosophy not to invent new solutions to problems that are already solved well enough. resource bundles can be suffixed with locale/style and already work wonderfully in wicket. i see no reason to re-invent this particular wheel.

Me too. Resource bundles have been very handly for us in situations like
this, because it is easy to handle such file (a finnish versio for example)
to professional translation who can translate it to another language.
It separates localization from application logic and user interface design.
So user interface designers work on html files, translators work (mostly) on
resource bundles and programmers work on java files. Isn't this what
wicket is all about ?


       Ari S.


Gili wrote:


Eek! My 2 cents: resource bundles are utterly useless here. We want to avoid ending up in a configuration nightmare like Hibernate has. You should create a new interface called "WicketBean" that guarantees that the bean has setStyle(), setLocale() and that's it and beyond that you construct the bean, set its locale, style and then query it for its property values. If the bean chooses to use resource bundles for its strings, fine, but that's its own business. Who the heck is going to need to change the <form-name>.<property-name> in a resource bundle? That's never going to happen. You'll set it once and never change it.


Gili

Ari Suutari wrote:


then the labels for the form components are the name of the property by default or you can override by specifying an entry for something like <form-name>.<property-name> in a resource bundle.



This would work very well. Our old system has this done just like this.


       Ari S.


Jonathan Locke wrote:



Eelco Hillenius wrote:

We could also consider making this a contrib component, or maybe even just a Wiki section. It's pretty specific, unless it is really good (full fledged java bean descriptor stuff).




i was thinking an extension. the power of having this done right might be really something... i'd hate to see that get lost in the shuffle...


A simple version is quite easy to implement. Might do it this weekend, or - if Ari wants to give it a shot, we can help him a bit by giving idea's. Or... now that I think of it, it might also be an example of how to construct custom components.


Eelco

Jonathan Locke wrote:


i wonder if we should have something like BeanEditForm that does just this...


<property-name> <form-component>
<property-name> <form-component>
   ...

let's make this an RFE for 1.1




-------------------------------------------------------
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-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
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-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
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-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





-------------------------------------------------------
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-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
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-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
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-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
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-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to