Ok, there's more options. I'll file a RFE then and we can discuss it
there. The point right now is whether we gave enough idea's to Ari to
have his own go at it. Let's not forget that we don't have to have a
solution (read: component) for every problem/idea we encounter, as long
as it's easy to create custom components. And with Wicket it *is* very
easy to create your own.
Eelco
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